drupal script install to virtual server problem

I've used the drupal install script to install drupal in a virtual server. The drupal db and directory were created with what looks like the right files. The sites/default/settings.php has the right DB connect info.

WHen I go to http://ccp.avenue.org/drupal I get a blank page when I go to http://ccp.avenue.org/drupal/install.php, I get a lot of garbled flat text

it is as though apache is not processing the files as php. Where do I check to make sure PHP files are being recognized and processed as such for the site?

I'm not seeing any errors in the sites apache logs. Are there other places I should look for clues?

Thanks.

Status: 
Active

Comments

subscribing to this post

Which PHP execution mode are you using for this domain? You can see this at Server Configuration -> Website Options.

FCGid

The directives for the public_html folder are:

<Directory "/home/ccp/public_html">
Options -Indexes Includes FollowSymLinks ExecCGI        /etc/httpd/conf/httpd.conf (2429)
allow from all                                          /etc/httpd/conf/httpd.conf (2430)
AllowOverride All                                       /etc/httpd/conf/httpd.conf (2431)
AddHandler fcgid-script .php                            /etc/httpd/conf/httpd.conf (2432)
AddHandler fcgid-script .php5                           /etc/httpd/conf/httpd.conf (2433)
FCGIWrapper /home/ccp/fcgi-bin/php5.fcgi .php           /etc/httpd/conf/httpd.conf (2434)
FCGIWrapper /home/ccp/fcgi-bin/php5.fcgi .php5          /etc/httpd/conf/httpd.conf (2435)
</Directory>

I also did the following: php_value register_globals On

Still no luck. What else should I be looking for?

Howdy -- if you change the PHP execution mode from FCGID to regular CGI, does that happen to clear up the issue you're seeing?

I notice that you don't have any suexec parameters setup for this Virtual Server -- you may want to verify that suexec is enabled in the templates by going into System Settings -> Server Templates -> Default -> Apache Website, and enabling "Automatically add appropriate SuExec directive".

That doesn't change existing Virtual Servers though. To do that, you could use Virtualmin on the command line, and run something like:

virtualmin modify-web --domain name example.com --suexec

Also, using options such as "php_value" won't work if you aren't using mod_php, and that'll just generate Internal Server Errors once things actually are working :-)

Also, is anything logged to the logs/error_log file under the domain's home directory when you try to access the Drupal site?

I changed to CGI and now see this in the apache error log:

[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] PHP Warning:  Table &#039;ccp_drupal.drupal_access&#039; doesn&#039;t exist
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] query: SELECT 1 FROM drupal_access WHERE type = &#039;host&#039; AND LOWER(&#039;216.12.89.52&#039;) LIKE LOWER(mask) AND status = 0 LIMIT 0, 1 in /home/ccp/public_html/drupal/includes/database.mysql.inc on line 128
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] PHP Warning:  Table &#039;ccp_drupal.drupal_users&#039; doesn&#039;t exist
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] query: SELECT u.*, s.* FROM drupal_users u INNER JOIN drupal_sessions s ON u.uid = s.uid WHERE s.sid = &#039;l23era1ga854kva2pt1u3e38o2&#039; in /home/ccp/public_html/drupal/includes/database.mysql.inc on line 128
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] PHP Warning:  Table &#039;ccp_drupal.drupal_cache&#039; doesn&#039;t exist
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] query: SELECT data, created, headers, expire, serialized FROM drupal_cache WHERE cid = &#039;variables&#039; in /home/ccp/public_html/drupal/includes/database.mysql.inc on line 128
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] PHP Warning:  Table &#039;ccp_drupal.drupal_variable&#039; doesn&#039;t exist
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] query: SELECT * FROM drupal_variable in /home/ccp/public_html/drupal/includes/database.mysql.inc on line 128
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] PHP Notice:  Undefined variable: variables in /home/ccp/public_html/drupal/includes/bootstrap.inc on line 480
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] PHP Warning:  Table &#039;ccp_drupal.drupal_cache&#039; doesn&#039;t exist
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] query: UPDATE drupal_cache SET data = &#039;&#039;, created = 1261084701, expire = 0, headers = &#039;&#039;, serialized = 0 WHERE cid = &#039;variables&#039; in /home/ccp/public_html/drupal/includes/database.mysql.inc on line 128
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] PHP Notice:  Undefined variable: variables in /home/ccp/public_html/drupal/includes/bootstrap.inc on line 487
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] PHP Warning:  Table &#039;ccp_drupal.drupal_system&#039; doesn&#039;t exist
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] query: SELECT name, filename, throttle FROM drupal_system WHERE type = &#039;module&#039; AND status = 1 AND bootstrap = 1 ORDER BY weight ASC, filename ASC in /home/ccp/public_html/drupal/includes/database.mysql.inc on line 128
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] PHP Warning:  Table &#039;ccp_drupal.drupal_url_alias&#039; doesn&#039;t exist
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] query: SELECT COUNT(pid) FROM drupal_url_alias in /home/ccp/public_html/drupal/includes/database.mysql.inc on line 128

adding the --suexec has not changed anything.

Now I am getting blank pages for http://ccp.avenue.org/drupal/ and http://ccp.avenue.org/drupal/setup.php

Looks like drupal didn't install properly.

You should try un-installing it, then re-installing with CGI mode enabled. Make sure that you following the link provided by Virtualmin on the install form afterwards, to perform the initial Drupal account setup.