Okay, I give up. I just installed Drupal 5.1 on a fresh FC6 install with: MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions : - change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
- create an empty database, - set browser to the base URL
All I get is a blank page. If I go to http://www.mydomain.com/install.php, Firefox tries to download it. If I let it download, it is just an empty file.
I think Apache, MySQL and PHP are all installed correctly, but i don't know how to get to the Drupal install script.
I would be happy to provide more information at anyone's request.
Thanks! Ron
- AddType test/html .shtml php
that is text/html
On 2/1/07, Ron Siven r.siven@mchsi.com wrote:
Okay, I give up. I just installed Drupal 5.1 on a fresh FC6 install with: MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to http://www.mydomain.com/install.php, Firefox tries to download it. If I let it download, it is just an empty file.
I think Apache, MySQL and PHP are all installed correctly, but i don't know how to get to the Drupal install script.
I would be happy to provide more information at anyone's request.
Thanks! Ron -- [ Drupal support list | http://lists.drupal.org/ ]
On Thursday 01 February 2007 4:49 am, Victor Kane wrote:
- AddType test/html .shtml php
that is text/html
On 2/1/07, Ron Siven r.siven@mchsi.com wrote:
Okay, I give up. I just installed Drupal 5.1 on a fresh FC6 install with: MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to http://www.mydomain.com/install.php, Firefox tries to download it. If I let it download, it is just an empty file.
I think Apache, MySQL and PHP are all installed correctly, but i don't know how to get to the Drupal install script.
I would be happy to provide more information at anyone's request.
Thanks! Ron -- [ Drupal support list | http://lists.drupal.org/ ]
Oops. Sorry, that was just a typo. The code actually is
AddType text/html .shtml php
After you modified httpd.conf, did you restart Apache?
Ron Siven wrote:
Okay, I give up. I just installed Drupal 5.1 on a fresh FC6 install with: MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to http://www.mydomain.com/install.php, Firefox tries to download it. If I let it download, it is just an empty file.
I think Apache, MySQL and PHP are all installed correctly, but i don't know how to get to the Drupal install script.
I would be happy to provide more information at anyone's request.
Thanks! Ron -- [ Drupal support list | http://lists.drupal.org/ ]
On 02/02/07, Ron Siven r.siven@mchsi.com wrote:
AddType text/html .shtml php
I think php needs to be .php (notice the dot)
And I don't know what Fedora needs, but on my Debian install the line is:
AddType application/x-httpd-php .php .phtml .php3
On Thursday 01 February 2007 4:02 pm, Anton wrote:
On 02/02/07, Ron Siven r.siven@mchsi.com wrote:
AddType text/html .shtml php
I think php needs to be .php (notice the dot)
And I don't know what Fedora needs, but on my Debian install the line is:
AddType application/x-httpd-php .php .phtml .php3
-- Cheers Anton
Thanks Anton!
I tried the dot, and restarted Apache. It didn't work. The application type didn't work either. :(
Hi Have upgraded my web site to the latest Drupal version.
The pictures on the web site does not show and the upper menu and the comment text only says Array
What do I need to do ?
Gina
----- Original Message ----- From: Gina Rydland To: support@drupal.org Sent: Sunday, February 01, 2004 7:08 PM Subject: Re: [support] Array
Hi Have upgraded my web site to the latest Drupal version.
The pictures on the web site does not show and the upper menu and the comment text only says Array
What do I need to do ?
Gina
------------------------------------------------------------------------------
-- [ Drupal support list | http://lists.drupal.org/ ]
I see there should be an attatchment with these e-mail but it is not coming through so I can´t read your answer.
Gina ----- Original Message ----- From: Gina Rydland To: support@drupal.org Sent: Monday, February 02, 2004 9:46 AM Subject: [support] Array
----- Original Message ----- From: Gina Rydland To: support@drupal.org Sent: Sunday, February 01, 2004 7:08 PM Subject: Re: [support] Array
Hi Have upgraded my web site to the latest Drupal version.
The pictures on the web site does not show and the upper menu and the comment text only says Array
What do I need to do ?
Gina
----------------------------------------------------------------------------
-- [ Drupal support list | http://lists.drupal.org/ ]
------------------------------------------------------------------------------
-- [ Drupal support list | http://lists.drupal.org/ ]
Hi
How do I fix the array on the updated drupal web site (updated to drupal 5)
Best, Gina
Hi Gina,
When asking a question like that, it is best to include the following information (and anything else you think could be relevant):
- Host operating system (or type of hosting) - MySQL version - PHP version - Previous Drupal Version - Modules installed - Theme being used (very important, as pointed out by someone here).
1. Always backup your old site completely (directories and database); if you have a hosting and are unsure about how to do a complete backup, get a complete backup of your hosting site. 2. Log in as user #1. 3. Did you try disabling all the modules first? And changing the theme to bluemarine? If you do that, and the update works, then you can gradually update the theme you use, and/or the modules, and find out what the problem is!
With more information, the good folks here on the support list (mucha experiencia!) can try to guess what is wrong.
saludos,
Victor Kane http://awebfactory.com.ar
On 2/3/04, Gina Rydland girydlan@online.no wrote:
Hi
How do I fix the array on the updated drupal web site (updated to drupal 5)
Best, Gina
-- [ Drupal support list | http://lists.drupal.org/ ]
Hi
How do I fix the array on the updated drupal web site (updated to drupal 5)
Best, Gina
On Tue, Feb 03, 2004 at 01:02:07PM +0100, Gina Rydland wrote:
Hi Gina,
When asking a question like that, it is best to include the following information (and anything else you think could be relevant):
a.. Host operating system (or type of hosting)
Debian 4.0 etch
b.. MySQL version
Mysql 5.0.32
c.. PHP version
PHP 5.2.0
d.. Previous Drupal Version
4.7.4
e.. Modules installed
Aggregator, blog, blog api, comment, help, menu, path, profile, tracker, upload
(and block,filter,node,system,user og watchdog)
f.. Theme being used (very important, as pointed out by someone here).
My own version of Interlaced. ----- Original Message ----- From: Victor Kane To: support@drupal.org Sent: Saturday, February 03, 2007 12:46 PM Subject: Re: [support] Array
Hi Gina,
When asking a question like that, it is best to include the following information (and anything else you think could be relevant):
a.. Host operating system (or type of hosting) b.. MySQL version c.. PHP version d.. Previous Drupal Version e.. Modules installed f.. Theme being used (very important, as pointed out by someone here). 1.. Always backup your old site completely (directories and database); if you have a hosting and are unsure about how to do a complete backup, get a complete backup of your hosting site. 2.. Log in as user #1. 3.. Did you try disabling all the modules first? And changing the theme to bluemarine? If you do that, and the update works, then you can gradually update the theme you use, and/or the modules, and find out what the problem is! With more information, the good folks here on the support list (mucha experiencia!) can try to guess what is wrong.
saludos,
Victor Kane http://awebfactory.com.ar
On 2/3/04, Gina Rydland girydlan@online.no wrote: Hi
How do I fix the array on the updated drupal web site (updated to drupal 5)
Best, Gina
-- [ Drupal support list | http://lists.drupal.org/ ]
------------------------------------------------------------------------------
-- [ Drupal support list | http://lists.drupal.org/ ]
Hi Gina,
f.. Theme being used (very important, as pointed out by someone here).
My own version of Interlaced.
I suspect it's mostly related to your theme code. I've seen this happen with themes that haven't been updated to Drupal 5. A number of the php variables changed to arrays.
the upper menu and the comment text only says Array
I've encounter the menu problem myself. In my case in template.php the theme used: $links = menu_primary_links(); if ($links) { $output .= '<ul>'; foreach ($links as $link) { $output .= '<li>' . $link . '</li>'; // In 4.7 $link is string }; $output .= '</ul>'; } return $output;
which I changed to:
$links = menu_primary_links(); if ($links) { $output .= '<ul>'; foreach ($links as $link) { // In 5 $link is an array, so use l() function to make into a HTML link $output .= '<li>' . l($link['title'], $link['href']) . '</li>'; }; $output .= '</ul>'; } return $output;
If this kind of thing is the cause of your problem you'll need to track down how the variables have changed and update accordingly, or wait until Interlaced is updated for Drupal 5.
. . . Dale
hi Geena,
have you upgraded the theme you're using too? what is that theme you're using?
thanks. ----- Original Message ----- From: Gina Rydland To: support@drupal.org Sent: Sunday, February 01, 2004 8:08 PM Subject: Re: [support] Install script does not appear
Hi Have upgraded my web site to the latest Drupal version.
The pictures on the web site does not show and the upper menu and the comment text only says Array
What do I need to do ?
Gina
------------------------------------------------------------------------------
-- [ Drupal support list | http://lists.drupal.org/ ]
On 01/02/07, Ron Siven r.siven@mchsi.com wrote:
I think Apache, MySQL and PHP are all installed correctly
This is something you need to confirm.
create a web page on your server called test.php that does has this in it:
<?php phpinfo(); ?>
If the page doesn't load or you just see that source code in your browser you still haven't configured PHP properly.
On Thursday 01 February 2007 4:07 pm, Anton wrote:
On 01/02/07, Ron Siven r.siven@mchsi.com wrote:
I think Apache, MySQL and PHP are all installed correctly
This is something you need to confirm.
create a web page on your server called test.php that does has this in it:
<?php phpinfo(); ?>
If the page doesn't load or you just see that source code in your browser you still haven't configured PHP properly.
-- Cheers Anton
Okay, done...and it loads. I can see a big long page with a ton of info about php.
That confirms that php is working, right?
So, I guess we've determined that Apache and php are working. Any thoughts on MySQL? Could it be something to do with MySQL 5.0?
I just looked in the /var/log/httpd/error_log, and I see a whole lot of errors like:
PHP Warning: Table 'drupal.access' doesn't exist\nquery: SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM access WHERE type = 'host' AND LOWER('192.168.2.102') LIKE LOWER(mask) ORDER BY status DESC LIMIT 0, 1 in /var/www/html/includes/database.mysql.inc on line 172 [Fri Feb 02 00:49:56 2007] [error] [client 192.168.2.102] PHP Warning: session_start() [<ahref='function.session-start'>function.session-start</a>]: Cannot find save handler user in /var/www/html/includes/bootstrap.inc on line 811
and a whole lot more...
Based on this, I'm betting the AllowOverrides All directive is not set for your drupal directory in the apache vhosts.conf or httpd.conf. It looks like you've got some pretty odd PHP.ini settings going on, much of it with things like magic quotes, etc. Drupal sets some of these via the .htaccess file, but AllowOverrides All needs to be set in order for these to work.
Dave -----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Ron Siven Sent: Thursday, February 01, 2007 10:56 PM To: support@drupal.org Cc: Anton Subject: Re: [support] Install script does not appear
On Thursday 01 February 2007 4:07 pm, Anton wrote:
On 01/02/07, Ron Siven r.siven@mchsi.com wrote:
I think Apache, MySQL and PHP are all installed correctly
This is something you need to confirm.
create a web page on your server called test.php that does has this in
it:
<?php phpinfo(); ?>
If the page doesn't load or you just see that source code in your browser you still haven't configured PHP properly.
-- Cheers Anton
Okay, done...and it loads. I can see a big long page with a ton of info about php.
That confirms that php is working, right?
So, I guess we've determined that Apache and php are working. Any thoughts on MySQL? Could it be something to do with MySQL 5.0?
I just looked in the /var/log/httpd/error_log, and I see a whole lot of errors like:
PHP Warning: Table 'drupal.access' doesn't exist\nquery:
SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM access WHERE type = 'host' AND LOWER('192.168.2.102') LIKE LOWER(mask) ORDER BY status DESC LIMIT 0, 1 in /var/www/html/includes/database.mysql.inc on line 172 [Fri Feb 02 00:49:56 2007] [error] [client 192.168.2.102] PHP Warning: session_start() [<ahref='function.session-start'>function.session-start</a>]: Cannot find save handler user in /var/www/html/includes/bootstrap.inc on line 811
and a whole lot more...
On Friday 02 February 2007 10:07 am, Metzler, David wrote:
Based on this, I'm betting the AllowOverrides All directive is not set for your drupal directory in the apache vhosts.conf or httpd.conf. It looks like you've got some pretty odd PHP.ini settings going on, much of it with things like magic quotes, etc. Drupal sets some of these via the .htaccess file, but AllowOverrides All needs to be set in order for these to work.
Dave -----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Ron Siven Sent: Thursday, February 01, 2007 10:56 PM To: support@drupal.org Cc: Anton Subject: Re: [support] Install script does not appear
On Thursday 01 February 2007 4:07 pm, Anton wrote:
On 01/02/07, Ron Siven r.siven@mchsi.com wrote:
I think Apache, MySQL and PHP are all installed correctly
This is something you need to confirm.
create a web page on your server called test.php that does has this in
it:
<?php phpinfo(); ?>
If the page doesn't load or you just see that source code in your browser you still haven't configured PHP properly.
-- Cheers Anton
Okay, done...and it loads. I can see a big long page with a ton of info about php.
That confirms that php is working, right?
So, I guess we've determined that Apache and php are working. Any thoughts on MySQL? Could it be something to do with MySQL 5.0?
I just looked in the /var/log/httpd/error_log, and I see a whole lot of errors like:
PHP Warning: Table 'drupal.access' doesn't exist\nquery:
SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM access WHERE type = 'host' AND LOWER('192.168.2.102') LIKE LOWER(mask) ORDER BY status DESC LIMIT 0, 1 in /var/www/html/includes/database.mysql.inc on line 172 [Fri Feb 02 00:49:56 2007] [error] [client 192.168.2.102] PHP Warning: session_start() [<ahref='function.session-start'>function.session-start</a>]: Cannot find save handler user in /var/www/html/includes/bootstrap.inc on line 811
and a whole lot more...
[ Drupal support list | http://lists.drupal.org/ ]
Dave,
You were right. It was set to None. I changed it to All, restarted httpd, and still no joy.
Here's a snippet from the http.conf:
# # This should be changed to whatever you set DocumentRoot to. # <Directory "/var/www/html">
# # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks
# # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All
# # Controls who can get stuff from this server. # Order allow,deny Allow from all
</Directory>
Here's my .htaccess from /var/www/html/:
# # Apache/PHP/Drupal settings: #
# Protect files and directories from prying eyes. <FilesMatch "(.(engine|inc|info|install|module|profile|po|sh|.*sql|theme| tpl(.php)?|xtmpl)|code-style.pl|Entries.*|Repository|Root|Tag|Template)$"> Order allow,deny </FilesMatch>
# Don't show directory listings for URLs which map to a directory. Options -Indexes
# Follow symbolic links in this directory. Options +FollowSymLinks
# Customized error messages. ErrorDocument 404 /index.php
# Set the default handler. DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php # but the following cannot be changed at runtime.
# PHP 4, Apache 1. <IfModule mod_php4.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
# PHP 4, Apache 2. <IfModule sapi_apache2.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
# PHP 5, Apache 1 and 2. <IfModule mod_php5.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
# Requires mod_expires to be enabled. <IfModule mod_expires.c> # Enable expirations. ExpiresActive On # Cache all files for 2 weeks after access (A). ExpiresDefault A1209600 # Do not cache dynamically generated pages. ExpiresByType text/html A1 </IfModule>
# Various rewrite rules. <IfModule mod_rewrite.c> RewriteEngine on
# If your site can be accessed both with and without the prefix www. you # can use one of the following settings to force user to use only one option: # # If you want the site to be accessed WITH the www. only, adapt and # uncomment the following: # RewriteCond %{HTTP_HOST} ^example.com$ [NC] # RewriteRule .* http://www.example.com/ [L,R=301] # # If you want the site to be accessed only WITHOUT the www. prefix, adapt # and uncomment the following: # RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] # and uncomment the following: # RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] # RewriteRule .* http://example.com/ [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory and # the rewrite rules are not working properly. #RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'. #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{QUERY_STRING} ^id=([^&]+)$ #RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'. #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$ #RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] </IfModule>
# $Id: .htaccess,v 1.81 2007/01/09 09:27:10 dries Exp $
Does anyone have any more thoughts on this? I could really use some help.
If not, could you recommend the best way to get support from the drupal organization directly?
Thanks everyone! Ron
On Friday 02 February 2007 6:35 pm, Ron Siven wrote:
On Friday 02 February 2007 10:07 am, Metzler, David wrote:
Based on this, I'm betting the AllowOverrides All directive is not set for your drupal directory in the apache vhosts.conf or httpd.conf. It looks like you've got some pretty odd PHP.ini settings going on, much of it with things like magic quotes, etc. Drupal sets some of these via the .htaccess file, but AllowOverrides All needs to be set in order for these to work.
Dave -----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Ron Siven Sent: Thursday, February 01, 2007 10:56 PM To: support@drupal.org Cc: Anton Subject: Re: [support] Install script does not appear
On Thursday 01 February 2007 4:07 pm, Anton wrote:
On 01/02/07, Ron Siven r.siven@mchsi.com wrote:
I think Apache, MySQL and PHP are all installed correctly
This is something you need to confirm.
create a web page on your server called test.php that does has this in
it:
<?php phpinfo(); ?>
If the page doesn't load or you just see that source code in your browser you still haven't configured PHP properly.
-- Cheers Anton
Okay, done...and it loads. I can see a big long page with a ton of info about php.
That confirms that php is working, right?
So, I guess we've determined that Apache and php are working. Any thoughts on MySQL? Could it be something to do with MySQL 5.0?
I just looked in the /var/log/httpd/error_log, and I see a whole lot of errors like:
PHP Warning: Table 'drupal.access' doesn't exist\nquery:
SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM access WHERE type = 'host' AND LOWER('192.168.2.102') LIKE LOWER(mask) ORDER BY status DESC LIMIT 0, 1 in /var/www/html/includes/database.mysql.inc on line 172 [Fri Feb 02 00:49:56 2007] [error] [client 192.168.2.102] PHP Warning: session_start() [<ahref='function.session-start'>function.session-start</a>]: Cannot find save handler user in /var/www/html/includes/bootstrap.inc on line 811
and a whole lot more...
[ Drupal support list | http://lists.drupal.org/ ]
Dave,
You were right. It was set to None. I changed it to All, restarted httpd, and still no joy.
Here's a snippet from the http.conf:
# # This should be changed to whatever you set DocumentRoot to. # <Directory "/var/www/html">
# # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks
# # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All
# # Controls who can get stuff from this server. # Order allow,deny Allow from all
</Directory>
Here's my .htaccess from /var/www/html/:
# # Apache/PHP/Drupal settings: #
# Protect files and directories from prying eyes. <FilesMatch "(.(engine|inc|info|install|module|profile|po|sh|.*sql|theme| tpl(.php)?|xtmpl)|code-style.pl|Entries.*|Repository|Root|Tag|Template)$"
Order allow,deny
</FilesMatch>
# Don't show directory listings for URLs which map to a directory. Options -Indexes
# Follow symbolic links in this directory. Options +FollowSymLinks
# Customized error messages. ErrorDocument 404 /index.php
# Set the default handler. DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php # but the following cannot be changed at runtime.
# PHP 4, Apache 1.
<IfModule mod_php4.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
# PHP 4, Apache 2.
<IfModule sapi_apache2.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
# Requires mod_expires to be enabled.
<IfModule mod_expires.c> # Enable expirations. ExpiresActive On # Cache all files for 2 weeks after access (A). ExpiresDefault A1209600 # Do not cache dynamically generated pages. ExpiresByType text/html A1 </IfModule>
# Various rewrite rules.
<IfModule mod_rewrite.c> RewriteEngine on
# If your site can be accessed both with and without the prefix www. you # can use one of the following settings to force user to use only one option: # # If you want the site to be accessed WITH the www. only, adapt and # uncomment the following: # RewriteCond %{HTTP_HOST} ^example.com$ [NC] # RewriteRule .* http://www.example.com/ [L,R=301] # # If you want the site to be accessed only WITHOUT the www. prefix, adapt # and uncomment the following: # RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] # and uncomment the following: # RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] # RewriteRule .* http://example.com/ [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory and # the rewrite rules are not working properly. #RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'. #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{QUERY_STRING} ^id=([^&]+)$ #RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'. #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$ #RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
# $Id: .htaccess,v 1.81 2007/01/09 09:27:10 dries Exp $
Make certain your file permissions and ownership are set correctly. Are you using FTP to upload the drupal files, or are you getting them from shell? If FTP, are you uploading in ASCII or binary? Also if you are using FTP, try creating the phpinfo file locally and using the same method to upload it; then see if the phpinfo file works. Is "<?php" on the first line of install.php, or is there content or blank space above it?
Ron Siven wrote:
Does anyone have any more thoughts on this? I could really use some help.
If not, could you recommend the best way to get support from the drupal organization directly?
Thanks everyone! Ron
On Friday 02 February 2007 6:35 pm, Ron Siven wrote:
On Friday 02 February 2007 10:07 am, Metzler, David wrote:
Based on this, I'm betting the AllowOverrides All directive is not set for your drupal directory in the apache vhosts.conf or httpd.conf. It looks like you've got some pretty odd PHP.ini settings going on, much of it with things like magic quotes, etc. Drupal sets some of these via the .htaccess file, but AllowOverrides All needs to be set in order for these to work.
Dave -----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Ron Siven Sent: Thursday, February 01, 2007 10:56 PM To: support@drupal.org Cc: Anton Subject: Re: [support] Install script does not appear
On Thursday 01 February 2007 4:07 pm, Anton wrote:
On 01/02/07, Ron Siven r.siven@mchsi.com wrote:
I think Apache, MySQL and PHP are all installed correctly
This is something you need to confirm.
create a web page on your server called test.php that does has this in
it:
<?php phpinfo(); ?>
If the page doesn't load or you just see that source code in your browser you still haven't configured PHP properly.
-- Cheers Anton
Okay, done...and it loads. I can see a big long page with a ton of info about php.
That confirms that php is working, right?
So, I guess we've determined that Apache and php are working. Any thoughts on MySQL? Could it be something to do with MySQL 5.0?
I just looked in the /var/log/httpd/error_log, and I see a whole lot of errors like:
PHP Warning: Table 'drupal.access' doesn't exist\nquery:
SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM access WHERE type = 'host' AND LOWER('192.168.2.102') LIKE LOWER(mask) ORDER BY status DESC LIMIT 0, 1 in /var/www/html/includes/database.mysql.inc on line 172 [Fri Feb 02 00:49:56 2007] [error] [client 192.168.2.102] PHP Warning: session_start() [<ahref='function.session-start'>function.session-start</a>]: Cannot find save handler user in /var/www/html/includes/bootstrap.inc on line 811
and a whole lot more...
[ Drupal support list | http://lists.drupal.org/ ]
Dave,
You were right. It was set to None. I changed it to All, restarted httpd, and still no joy.
Here's a snippet from the http.conf:
# # This should be changed to whatever you set DocumentRoot to. # <Directory "/var/www/html">
# # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks
# # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All
# # Controls who can get stuff from this server. # Order allow,deny Allow from all
</Directory>
Here's my .htaccess from /var/www/html/:
# # Apache/PHP/Drupal settings: #
# Protect files and directories from prying eyes. <FilesMatch "(.(engine|inc|info|install|module|profile|po|sh|.*sql|theme| tpl(.php)?|xtmpl)|code-style.pl|Entries.*|Repository|Root|Tag|Template)$"
Order allow,deny
</FilesMatch>
# Don't show directory listings for URLs which map to a directory. Options -Indexes
# Follow symbolic links in this directory. Options +FollowSymLinks
# Customized error messages. ErrorDocument 404 /index.php
# Set the default handler. DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php # but the following cannot be changed at runtime.
# PHP 4, Apache 1.
<IfModule mod_php4.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
# PHP 4, Apache 2.
<IfModule sapi_apache2.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
# Requires mod_expires to be enabled.
<IfModule mod_expires.c> # Enable expirations. ExpiresActive On # Cache all files for 2 weeks after access (A). ExpiresDefault A1209600 # Do not cache dynamically generated pages. ExpiresByType text/html A1 </IfModule>
# Various rewrite rules.
<IfModule mod_rewrite.c> RewriteEngine on
# If your site can be accessed both with and without the prefix www. you # can use one of the following settings to force user to use only one option: # # If you want the site to be accessed WITH the www. only, adapt and # uncomment the following: # RewriteCond %{HTTP_HOST} ^example.com$ [NC] # RewriteRule .* http://www.example.com/ [L,R=301] # # If you want the site to be accessed only WITHOUT the www. prefix, adapt # and uncomment the following: # RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] # and uncomment the following: # RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] # RewriteRule .* http://example.com/ [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory and # the rewrite rules are not working properly. #RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'. #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{QUERY_STRING} ^id=([^&]+)$ #RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'. #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$ #RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
# $Id: .htaccess,v 1.81 2007/01/09 09:27:10 dries Exp $
On Saturday 03 February 2007 7:29:37 pm Simon Swegles wrote:
Make certain your file permissions and ownership are set correctly. Are you using FTP to upload the drupal files, or are you getting them from shell? If FTP, are you uploading in ASCII or binary? Also if you are using FTP, try creating the phpinfo file locally and using the same method to upload it; then see if the phpinfo file works. Is "<?php" on the first line of install.php, or is there content or blank space above it?
Thanks, Simon.
I went through all of the files, and even went so far as to open up all permissions (777) on all files with no luck. I also found something about MySQL 5 and sql mode setting it to MYSQL40, restart MySQL server, and recreate database. No luck.
I am running drupal on my local server running Fedora Core 6. So, no FTP. phpinfo() works fine.
Install script: first line is <?php
To recap some other information that may have dropped off the original post: Drupal 5.1 MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions : - change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
- create an empty database, - set browser to the base URL
All I get is a blank page. If I go to http://www.mydomain.com/install.php, Firefox tries to download it. If I let it download, it is just an empty file.
Thanks to everyone for their help so far.
Ron
- AddType test/html .shtml php
This probably should be both text/html as well as .php (missing the .).
Though, what I have is actually (YMMV) :
AddType application/x-httpd-php .php .phtml .php3
Find your server's error logs and look to see if you're getting a PHP error.
An example of what you MIGHT see (but probably not for this file):
[Thu Feb 1 12:33:14 2007] [error] PHP Fatal error: ...
If you see this, what is the error? Memory related? Syntax error?
If that doesn't turn up anything, see if you can an error output to the browser. Add this to the top of the install.php, after the <?php
ini_set('error_reporting', E_ALL);
then reload the page. What do you get?
Kitt.
Quoting Ron Siven r.siven@mchsi.com:
On Saturday 03 February 2007 7:29:37 pm Simon Swegles wrote:
Make certain your file permissions and ownership are set correctly. Are you using FTP to upload the drupal files, or are you getting them from shell? If FTP, are you uploading in ASCII or binary? Also if you are using FTP, try creating the phpinfo file locally and using the same method to upload it; then see if the phpinfo file works. Is "<?php" on the first line of install.php, or is there content or blank space above
it?
Thanks, Simon.
I went through all of the files, and even went so far as to open up all permissions (777) on all files with no luck. I also found something about MySQL 5 and sql mode setting it to MYSQL40, restart MySQL server, and recreate database. No luck.
I am running drupal on my local server running Fedora Core 6. So, no FTP.
phpinfo() works fine.
Install script: first line is <?php
To recap some other information that may have dropped off the original post: Drupal 5.1 MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to http://www.mydomain.com/install.php,
Firefox tries to download it. If I let it download, it is just an empty file.
Thanks to everyone for their help so far.
Ron
-- [ Drupal support list | http://lists.drupal.org/ ]
Does Fedora Core 6 install php-extensions when you install, MySQL 5.0, PHP 5.1.6 and Apache 2.2.3? On the "php info" page look to see if the php-extensions are installed.
I use FreeBsd and "extensions" is a separate port for me.
----- Original Message ----- From: "Kitt Hodsden" kitt-drupal@hodsden.org To: support@drupal.org Sent: Sunday, February 04, 2007 6:47 PM Subject: Re: [support] Install script does not appear
- AddType test/html .shtml phpThis probably should be both text/html as well as .php (missing the .).
Though, what I have is actually (YMMV) :
AddType application/x-httpd-php .php .phtml .php3
Find your server's error logs and look to see if you're getting a PHP
error.
An example of what you MIGHT see (but probably not for this file):
[Thu Feb 1 12:33:14 2007] [error] PHP Fatal error: ...
If you see this, what is the error? Memory related? Syntax error?
If that doesn't turn up anything, see if you can an error output to the
browser.
Add this to the top of the install.php, after the <?php
ini_set('error_reporting', E_ALL);
then reload the page. What do you get?
Kitt.
Quoting Ron Siven r.siven@mchsi.com:
On Saturday 03 February 2007 7:29:37 pm Simon Swegles wrote:
Make certain your file permissions and ownership are set correctly. Are you using FTP to upload the drupal files, or are you getting them from shell? If FTP, are you uploading in ASCII or binary? Also if you are using FTP, try creating the phpinfo file locally and using the
same
method to upload it; then see if the phpinfo file works. Is "<?php" on the first line of install.php, or is there content or blank space
above
it?
Thanks, Simon.
I went through all of the files, and even went so far as to open up all permissions (777) on all files with no luck. I also found something
about
MySQL 5 and sql mode setting it to MYSQL40, restart MySQL server, and recreate database. No luck.
I am running drupal on my local server running Fedora Core 6. So, no
FTP.
phpinfo() works fine.
Install script: first line is <?php
To recap some other information that may have dropped off the original post: Drupal 5.1 MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to
http://www.mydomain.com/install.php,
Firefox tries to download it. If I let it download, it is just an empty file.
Thanks to everyone for their help so far.
Ron
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
On Sunday 04 February 2007 7:21:24 pm RJ wrote:
Does Fedora Core 6 install php-extensions when you install, MySQL 5.0, PHP 5.1.6 and Apache 2.2.3? On the "php info" page look to see if the php-extensions are installed.
I use FreeBsd and "extensions" is a separate port for me.
----- Original Message ----- From: "Kitt Hodsden" kitt-drupal@hodsden.org To: support@drupal.org Sent: Sunday, February 04, 2007 6:47 PM Subject: Re: [support] Install script does not appear
- AddType test/html .shtml phpThis probably should be both text/html as well as .php (missing the .).
Though, what I have is actually (YMMV) :
AddType application/x-httpd-php .php .phtml .php3
Find your server's error logs and look to see if you're getting a PHP
error.
An example of what you MIGHT see (but probably not for this file):
[Thu Feb 1 12:33:14 2007] [error] PHP Fatal error: ...
If you see this, what is the error? Memory related? Syntax error?
If that doesn't turn up anything, see if you can an error output to the
browser.
Add this to the top of the install.php, after the <?php
ini_set('error_reporting', E_ALL);
then reload the page. What do you get?
Kitt.
Quoting Ron Siven r.siven@mchsi.com:
On Saturday 03 February 2007 7:29:37 pm Simon Swegles wrote:
Make certain your file permissions and ownership are set correctly. Are you using FTP to upload the drupal files, or are you getting them from shell? If FTP, are you uploading in ASCII or binary? Also if you are using FTP, try creating the phpinfo file locally and using the
same
method to upload it; then see if the phpinfo file works. Is "<?php" on the first line of install.php, or is there content or blank space
above
it?
Thanks, Simon.
I went through all of the files, and even went so far as to open up all permissions (777) on all files with no luck. I also found something
about
MySQL 5 and sql mode setting it to MYSQL40, restart MySQL server, and recreate database. No luck.
I am running drupal on my local server running Fedora Core 6. So, no
FTP.
phpinfo() works fine.
Install script: first line is <?php
To recap some other information that may have dropped off the original post: Drupal 5.1 MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to
http://www.mydomain.com/install.php,
Firefox tries to download it. If I let it download, it is just an empty file.
Thanks to everyone for their help so far.
Ron
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Yes, I believe it is.
PHP Extension => 20050922
For anyone that's interested, here is the php info from my server. Remember, this is a fresh install right from the Fedora rpms. I have not changed anything...well not much.
Let's find out if you can connect to the database using php. Make a new page and put only the following in it: <?php /* Connecting, selecting database */ $link = mysql_connect("mysql_host", "mysql_user", "mysql_password") or die("Could not connect : " . mysql_error()); echo "Connected successfully"; mysql_select_db("my_database") or die("Could not select database");
/* Performing SQL query */ $query = "SELECT * FROM my_table"; $result = mysql_query($query) or die("Query failed : " . mysql_error());
/* Printing results in HTML */ echo "<table>\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n"; } echo "</table>\n";
/* Free resultset */ mysql_free_result($result);
/* Closing connection */ mysql_close($link); ?> ----- Original Message ----- From: "Ron Siven" r.siven@mchsi.com To: support@drupal.org Sent: Monday, February 05, 2007 7:25 PM Subject: Re: [support] Install script does not appear
On Sunday 04 February 2007 7:21:24 pm RJ wrote:
Does Fedora Core 6 install php-extensions when you install, MySQL 5.0, PHP 5.1.6 and Apache 2.2.3? On the "php info" page look to see if the php-extensions are installed.
I use FreeBsd and "extensions" is a separate port for me.
----- Original Message ----- From: "Kitt Hodsden" kitt-drupal@hodsden.org To: support@drupal.org Sent: Sunday, February 04, 2007 6:47 PM Subject: Re: [support] Install script does not appear
- AddType test/html .shtml phpThis probably should be both text/html as well as .php (missing the
.).
Though, what I have is actually (YMMV) :
AddType application/x-httpd-php .php .phtml .php3
Find your server's error logs and look to see if you're getting a PHP
error.
An example of what you MIGHT see (but probably not for this file):
[Thu Feb 1 12:33:14 2007] [error] PHP Fatal error: ...
If you see this, what is the error? Memory related? Syntax error?
If that doesn't turn up anything, see if you can an error output to
the
browser.
Add this to the top of the install.php, after the <?php
ini_set('error_reporting', E_ALL);
then reload the page. What do you get?
Kitt.
Quoting Ron Siven r.siven@mchsi.com:
On Saturday 03 February 2007 7:29:37 pm Simon Swegles wrote:
Make certain your file permissions and ownership are set
correctly.
Are you using FTP to upload the drupal files, or are you getting
them
from shell? If FTP, are you uploading in ASCII or binary? Also if
you
are using FTP, try creating the phpinfo file locally and using the
same
method to upload it; then see if the phpinfo file works. Is
"<?php"
on the first line of install.php, or is there content or blank
space
above
it?
Thanks, Simon.
I went through all of the files, and even went so far as to open up
all
permissions (777) on all files with no luck. I also found something
about
MySQL 5 and sql mode setting it to MYSQL40, restart MySQL server,
and
recreate database. No luck.
I am running drupal on my local server running Fedora Core 6. So,
no
FTP.
phpinfo() works fine.
Install script: first line is <?php
To recap some other information that may have dropped off the
original
post: Drupal 5.1 MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to
http://www.mydomain.com/install.php,
Firefox tries to download it. If I let it download, it is just an empty file.
Thanks to everyone for their help so far.
Ron
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Yes, I believe it is.
PHP Extension => 20050922
For anyone that's interested, here is the php info from my server.
Remember,
this is a fresh install right from the Fedora rpms. I have not changed anything...well not much.
---------------------------------------------------------------------------- ----
-- [ Drupal support list | http://lists.drupal.org/ ]
This worked fine. I was able to list any table in any database.
On Monday 05 February 2007 6:59:04 pm RJ wrote:
Let's find out if you can connect to the database using php. Make a new page and put only the following in it:
<?php /* Connecting, selecting database */ $link = mysql_connect("mysql_host", "mysql_user", "mysql_password") or die("Could not connect : " . mysql_error()); echo "Connected successfully"; mysql_select_db("my_database") or die("Could not select database"); /* Performing SQL query */ $query = "SELECT * FROM my_table"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); /* Printing results in HTML */ echo "<table>\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n"; } echo "</table>\n"; /* Free resultset */ mysql_free_result($result); /* Closing connection */ mysql_close($link); ?>
----- Original Message ----- From: "Ron Siven" r.siven@mchsi.com To: support@drupal.org Sent: Monday, February 05, 2007 7:25 PM Subject: Re: [support] Install script does not appear
On Sunday 04 February 2007 7:21:24 pm RJ wrote:
Does Fedora Core 6 install php-extensions when you install, MySQL 5.0, PHP 5.1.6 and Apache 2.2.3? On the "php info" page look to see if the php-extensions are installed.
I use FreeBsd and "extensions" is a separate port for me.
----- Original Message ----- From: "Kitt Hodsden" kitt-drupal@hodsden.org To: support@drupal.org Sent: Sunday, February 04, 2007 6:47 PM Subject: Re: [support] Install script does not appear
- AddType test/html .shtml phpThis probably should be both text/html as well as .php (missing the
.).
Though, what I have is actually (YMMV) :
AddType application/x-httpd-php .php .phtml .php3
Find your server's error logs and look to see if you're getting a PHP
error.
An example of what you MIGHT see (but probably not for this file):
[Thu Feb 1 12:33:14 2007] [error] PHP Fatal error: ...
If you see this, what is the error? Memory related? Syntax error?
If that doesn't turn up anything, see if you can an error output to
the
browser.
Add this to the top of the install.php, after the <?php
ini_set('error_reporting', E_ALL);
then reload the page. What do you get?
Kitt.
Quoting Ron Siven r.siven@mchsi.com:
On Saturday 03 February 2007 7:29:37 pm Simon Swegles wrote:
Make certain your file permissions and ownership are set
correctly.
Are you using FTP to upload the drupal files, or are you getting
them
from shell? If FTP, are you uploading in ASCII or binary? Also if
you
are using FTP, try creating the phpinfo file locally and using the
same
method to upload it; then see if the phpinfo file works. Is
"<?php"
on the first line of install.php, or is there content or blank
space
above
it?
Thanks, Simon.
I went through all of the files, and even went so far as to open up
all
permissions (777) on all files with no luck. I also found something
about
MySQL 5 and sql mode setting it to MYSQL40, restart MySQL server,
and
recreate database. No luck.
I am running drupal on my local server running Fedora Core 6. So,
no
FTP.
phpinfo() works fine.
Install script: first line is <?php
To recap some other information that may have dropped off the
original
post: Drupal 5.1 MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to
http://www.mydomain.com/install.php,
Firefox tries to download it. If I let it download, it is just an empty file.
Thanks to everyone for their help so far.
Ron
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Yes, I believe it is.
PHP Extension => 20050922
For anyone that's interested, here is the php info from my server.
Remember,
this is a fresh install right from the Fedora rpms. I have not changed anything...well not much.
-- [ Drupal support list | http://lists.drupal.org/ ]
You're not going to believe this. I just cleared my browser's cache, and the install script ran. My site is up and running.
For what it's worth, here is a list of changes of note that I made along the way:
In httpd.conf: AddType text/html .shtml .php AllowOverrides All
In /etc/my.cnf: sql-mode="MYSQL40"
file pernissions were set to some funky number (like 27443, or something). I changed them all to an actual user name.
Thanks to everyone for their help!!!
Sincerely, Ron Siven
On Monday 05 February 2007 11:12:04 pm Ron Siven wrote:
This worked fine. I was able to list any table in any database.
On Monday 05 February 2007 6:59:04 pm RJ wrote:
Let's find out if you can connect to the database using php. Make a new page and put only the following in it:
<?php /* Connecting, selecting database */ $link = mysql_connect("mysql_host", "mysql_user", "mysql_password") or die("Could not connect : " . mysql_error()); echo "Connected successfully"; mysql_select_db("my_database") or die("Could not select database"); /* Performing SQL query */ $query = "SELECT * FROM my_table"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); /* Printing results in HTML */ echo "<table>\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n"; } echo "</table>\n"; /* Free resultset */ mysql_free_result($result); /* Closing connection */ mysql_close($link); ?>
----- Original Message ----- From: "Ron Siven" r.siven@mchsi.com To: support@drupal.org Sent: Monday, February 05, 2007 7:25 PM Subject: Re: [support] Install script does not appear
On Sunday 04 February 2007 7:21:24 pm RJ wrote:
Does Fedora Core 6 install php-extensions when you install, MySQL 5.0, PHP 5.1.6 and Apache 2.2.3? On the "php info" page look to see if the php-extensions are installed.
I use FreeBsd and "extensions" is a separate port for me.
----- Original Message ----- From: "Kitt Hodsden" kitt-drupal@hodsden.org To: support@drupal.org Sent: Sunday, February 04, 2007 6:47 PM Subject: Re: [support] Install script does not appear
- AddType test/html .shtml phpThis probably should be both text/html as well as .php (missing the
.).
Though, what I have is actually (YMMV) :
AddType application/x-httpd-php .php .phtml .php3
Find your server's error logs and look to see if you're getting a PHP
error.
An example of what you MIGHT see (but probably not for this file):
[Thu Feb 1 12:33:14 2007] [error] PHP Fatal error: ...
If you see this, what is the error? Memory related? Syntax error?
If that doesn't turn up anything, see if you can an error output to
the
browser.
Add this to the top of the install.php, after the <?php
ini_set('error_reporting', E_ALL);
then reload the page. What do you get?
Kitt.
Quoting Ron Siven r.siven@mchsi.com:
On Saturday 03 February 2007 7:29:37 pm Simon Swegles wrote: > Make certain your file permissions and ownership are set
correctly.
> Are you using FTP to upload the drupal files, or are you > getting
them
> from shell? If FTP, are you uploading in ASCII or binary? Also > if
you
> are using FTP, try creating the phpinfo file locally and using > the
same
> method to upload it; then see if the phpinfo file works. Is
"<?php"
> on the first line of install.php, or is there content or blank
space
above
it?
Thanks, Simon.
I went through all of the files, and even went so far as to open up
all
permissions (777) on all files with no luck. I also found something
about
MySQL 5 and sql mode setting it to MYSQL40, restart MySQL server,
and
recreate database. No luck.
I am running drupal on my local server running Fedora Core 6. So,
no
FTP.
phpinfo() works fine.
Install script: first line is <?php
To recap some other information that may have dropped off the
original
post: Drupal 5.1 MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to
http://www.mydomain.com/install.php,
Firefox tries to download it. If I let it download, it is just an empty file.
Thanks to everyone for their help so far.
Ron
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Yes, I believe it is.
PHP Extension => 20050922
For anyone that's interested, here is the php info from my server.
Remember,
this is a fresh install right from the Fedora rpms. I have not changed anything...well not much.
-- [ Drupal support list | http://lists.drupal.org/ ]
Yes, I get a bunch of PHP Warnings and Notices about files not existing, etc.
At the very end of the error log, I see this: [Sun Feb 04 22:06:47 2007] [error] [client 192.168.2.102] PHP Fatal error: Call to undefined function block_list() in /var/www/html/includes/theme.inc on line 1013 [Sun Feb 04 22:06:47 2007] [error] [client 192.168.2.102] PHP Fatal error: Unknown: Cannot find save handler users in Unknown on line 0
I got rid of the second one by changing session.save_handler = users to session.save_handler = files
the block_list() one still eludes me, though.
Regarding the AddType line, I have to apologize because I cut and pasted from teh original email, and someone had already pointed that out. So, it's actually AddType text/html .shtml .php
I also tried your variation as well.
When I add the error_reporting code to install.php, nothing happens. Firefox still tries to download the file rather than display it. If I add it to index.php, nothing happens either, although firefox does not try to download it.
Here it is, did I do it right?
*snip*
<?php // $Id: install.php,v 1.34 2007/01/10 10:15:07 unconed Exp $ ini_set('error_reporting', E_ALL); require_once './includes/install.inc';
/** * The Drupal installation happens in a series of steps. We begin by verifying * that the current environment meets our minimum requirements. We then go * on to verify that settings.php is properly configured. From there we * connect to the configured database and verify that it meets our minimum * requirements. Finally we can allow the user to select an installation * profile and complete the installation process. * * @param $phase * The installation phase we should proceed to. */ function install_main() { global $profile, $install_locale; require_once './includes/bootstrap.inc';
*end snip*
One more thing, when I go to the base url, and get a blank page, I go to view the source for the page, and it's blank as well.
I'm thinking that this is all caused by messed up settings in php.ini. You?
On Sunday 04 February 2007 5:47:46 pm Kitt Hodsden wrote:
- AddType test/html .shtml phpThis probably should be both text/html as well as .php (missing the .).
Though, what I have is actually (YMMV) :
AddType application/x-httpd-php .php .phtml .php3
Find your server's error logs and look to see if you're getting a PHP error.
An example of what you MIGHT see (but probably not for this file):
[Thu Feb 1 12:33:14 2007] [error] PHP Fatal error: ...
If you see this, what is the error? Memory related? Syntax error?
If that doesn't turn up anything, see if you can an error output to the browser. Add this to the top of the install.php, after the <?php
ini_set('error_reporting', E_ALL);
then reload the page. What do you get?
Kitt.
Quoting Ron Siven r.siven@mchsi.com:
On Saturday 03 February 2007 7:29:37 pm Simon Swegles wrote:
Make certain your file permissions and ownership are set correctly. Are you using FTP to upload the drupal files, or are you getting them from shell? If FTP, are you uploading in ASCII or binary? Also if you are using FTP, try creating the phpinfo file locally and using the same method to upload it; then see if the phpinfo file works. Is "<?php" on the first line of install.php, or is there content or blank space above
it?
Thanks, Simon.
I went through all of the files, and even went so far as to open up all permissions (777) on all files with no luck. I also found something about MySQL 5 and sql mode setting it to MYSQL40, restart MySQL server, and recreate database. No luck.
I am running drupal on my local server running Fedora Core 6. So, no FTP.
phpinfo() works fine.
Install script: first line is <?php
To recap some other information that may have dropped off the original post: Drupal 5.1 MySQL 5.0 PHP 5.1.6 Apache 2.2.3
I followed the instructions :
change httpd.conf: - DocumentIndex index.php index.html - AddType test/html .shtml php
create an empty database,
set browser to the base URL
All I get is a blank page. If I go to http://www.mydomain.com/install.php,
Firefox tries to download it. If I let it download, it is just an empty file.
Thanks to everyone for their help so far.
Ron
-- [ Drupal support list | http://lists.drupal.org/ ]