I am with a hosting company, HostNine, and I installed Drupal 5.x on the root public_html directory. It seemed to work fine, until, I put in the info to run php5. The hosting company has php4 and php5 loaded, and to get php5 running, I have put in the following in an htaccess file:
AddHandler application/x-httpd-php5 .php
In fact, I have also added the following as well to get more memory and upload size:
php_value memory_limit 32M
php_value upload_max_filesize 10M
When I loaded Drupal, it had its own htaccess file. So I went in and at the top, I added those lines. Then I got the White Screen upon going to admin areas, then the whole site. Since it was still really early in the dev process, I blasted the DB and reinstalled thinking I corrupted something. So, I did the same thing, because I want to use php5 for some of the modules I am creating. Same thing. Then I thought maybe it is the hosting and I need to put Drupal in a sub directory. Which is fine, because I can point the TLD to the sub dir. So I did that. It worked fine in the sub directory /site. Then I noticed it was still on PHP4, so I added a htaccess file on the public_html root dir. Then I got the White Screen again. I noticed that if I have a htaccess file with those params it does not work. OK, fine, so I went to /site, and updated that with those lines. It gave me the white screen again. When I commented out those lines, it worked fine again.
So it seems that Drupal 5.x, or at least the install I have now, does not like additions to the htaccess file.
Is there anything I can do to fix this issue? I want to use PHP5 not 4, and this is the way I can do it, by adding that line to enable php5.
Any help here would be great.
Comments
Is there anyone who can help
Is there anyone who can help with this?
Did you ever get this figured out?
I'm also using hostnine and haven't had any problems using php5 with Drupal. I noticed that cpanel shows php4.4.6, but running phpinfo shows I'm using php5.2.1.
Since cpanel appears to be wrong, maybe you should verify the php version you are using with phpinfo. Your problem may actually be caused by something else entirely.
I'm having the same problem with Hostnine
Strange that one domain I setup with Hostnine, I used fantastico, I can get php5 to work. On another domain, I uploaded an existing drupal installation, and I cannot get php5 to work at all.
Figured it out
After spending a couple days trying different things, I discover the problem was not with Hostnine. It had to do with something in the cache tables that caused a problem when switching from php4 to php5. Truncating the cache tables did not help. I had to install a new drupal site (I used fantastico) with php5 enabled, then I slowly imported my old data into the new db, skipping the cache tables. It was a real pain, but it gave me the opportunity to clean out old unused tables. I also imported the variable table a little data at a time.
Overall Hostnine has been great! Their php5 lacked curl support and one support email had it installed within an hour.
---
Brian
http://www.bfoley.net/
Thank You
Yes, I kind of abandoned this whole thing and started working with cakephp, but came back to revisit this to see if anything had changed. I did see that I was using php5 and I was trying to avoid using Fantisco. Maybe that is what I will have to do. I installed a manual again and tried it again, and I have no idea why I did that (maybe forgot about this). But I think I will blast the DB completely since it is a fresh install, and do the whole php5 settings, then go to Fantisco to have the initial install of Drupal done. I like HostNine and I love Drupal (especially when adding in the Drake module), so I am really hoping this works. Thank you for the help.
Still having problems
OK, I am still having problems here. I have tried both a manual install and a Fantastico install. Here is what I did (hosting at HostNine which can only use php5 by an AddHandler)
Manual Install:
Created DB, user, passwd
updated to the root (public_html) .htaccess file with "AddHandler application/x-httpd-php5 .php"
Created a sub dir named "web"
Uploaded all of the recent Drupal package install to public_html/web
Went to site.com/web/install.php to input the DB name, username, passwd
Clicked continue and got the White Screen
Went to site.com/web and created first acct, and went to Admin screen, got White Screen.
---- Appears any attempts to read logs and it white screens
FAILED INSTALL
Delete contents of "web", deleted DB, and user acct, deleted subdir "web"
Fantastico Install:
** root directory .htaccess file left intact with php5 enabled
Went to Fantisco
Selected Drupal from the list (5.1)
Input root directory to install to "web" (this sub dir was deleted previously as noted above)
Input admin user name and password
Clicked Continue
Fantastico reports Drupal install complete and successful
Browsed to site.com/web
Logged in , and went to Admin section
Got White Screen upon entering admin
Went to the Clean URLs section, was able to see that
Enabled Clean URLs
Browsed to Log main page (site.com/web/admin/logs)
Selected Status Report
Got White Screen
FAILED INSTALL
So I am not sure why this is happening, but this is obviously a very trying thing to get over. I have tried to work my way thru the code to see why this is happening, and it should not be. I still need help with this, and can not believe that I am the only one with this same recurring problem.
I set it up to display errors and got this when going to the admin section:
Fatal error: Out of memory (allocated 6029312) (tried to allocate 4864 bytes) in /home/hirdfam/public_html/web/modules/system/system.install on line 3440
I have it set to
php_value memory_limit 64M
php_value upload_max_filesize 10M
No modules other than the core installed.