Submitted by jahlewis on Wed, 12/16/2009 - 21:44
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
Submitted by jahlewis on Wed, 12/16/2009 - 21:44 Comment #1
subscribing to this post
Submitted by JamieCameron on Wed, 12/16/2009 - 23:45 Comment #2
Which PHP execution mode are you using for this domain? You can see this at Server Configuration -> Website Options.
Submitted by jahlewis on Thu, 12/17/2009 - 06:53 Comment #3
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?
Submitted by andreychek on Thu, 12/17/2009 - 09:14 Comment #4
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 :-)
Submitted by JamieCameron on Thu, 12/17/2009 - 12:13 Comment #5
Also, is anything logged to the logs/error_log file under the domain's home directory when you try to access the Drupal site?
Submitted by jahlewis on Thu, 12/17/2009 - 15:30 Comment #6
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 'ccp_drupal.drupal_access' doesn't exist
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] query: SELECT 1 FROM drupal_access WHERE type = 'host' AND LOWER('216.12.89.52') 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 'ccp_drupal.drupal_users' doesn'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 = 'l23era1ga854kva2pt1u3e38o2' 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 'ccp_drupal.drupal_cache' doesn'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 = 'variables' 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 'ccp_drupal.drupal_variable' doesn'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 'ccp_drupal.drupal_cache' doesn't exist
[Thu Dec 17 16:18:21 2009] [error] [client 216.12.89.52] query: UPDATE drupal_cache SET data = '', created = 1261084701, expire = 0, headers = '', serialized = 0 WHERE cid = 'variables' 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 'ccp_drupal.drupal_system' doesn'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 = 'module' 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 'ccp_drupal.drupal_url_alias' doesn'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
Submitted by JamieCameron on Thu, 12/17/2009 - 15:33 Comment #7
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.