Howdy,
at Site5 they are going to stop supporting PHP4 by end of February 2008, so i took the step and moved my sites to PHP5. This is easily done by appending (uncommenting in 5.x) the following line in the .htaccess file: AddHandler application/x-httpd-php5 .php and things start running on Site5 PHP 5.2.0.
Now, the problem is that when on PHP5, i keep getting a 500 Internal Server Error on the Drupal 4.7.x sites and on a site that was upgraded from 4.7.3 to 5.x
Tryed really almost *all* the possible: installed a fresh 5.5 Drupal, linked it to the db and removed all other files from the server (no other applications or htaccess nowhere, everything absolutely clean) but the error is still there, so guess must be something in the data base (some data got corrupted someway?)
Started cleaning some tables, then uploaded a different system table: at this point at least i managed to access the front page and the /user/login page, but as soon as i log in i fall back to the 500 Internal Server Error again...
On my localhost (PHP 5.2.3) things do work, but not on Site5 Oannes (PHP 5.2.0)... there could be a slight connection to others having Login problems with PHP5.2 at Site5: see thread here and issue here.
Hmmm....any hint anyone? Any help greatly appreciated, pretty clueless on this one...
Comments
Have you tried a complete
Have you tried a complete fresh copy of Drupal 5.6 without re-using the old DB??? I'm hosted on Site5 as well (on the Druga server) and everything is running smoothly.
NOTE from downlaod page:
Note: Drupal works with PHP 4 & 5. If you need support for the newest PHP 5.2, however, you must use Drupal 5.1 (and higher) or Drupal 4.7.5 (and higher).
Maybe your upgrade went wrong somewhere ???
Also, not sure if it was a good idea to start a new post and not follow on from the other post that you linked since it deals with the same issues.
thanks,
PHP 5.2 support
soundsational, thanks for pointing that out,
actually login works fine on 5.5 (suppose 5.6 too) on a clean install. Unfortunately i keep getting the Internal Server Error as soon as i connect to my site's database (that's why i opened this new thread, to avoid confusion between the other login issue at site5).
still scratching my itch by the way...will try some more later today...thx for help
Personal space|CV
Clean URLs
Do you have clean urls enabled? If you do, comment out the AddHandler application/x-httpd-php5 .php, log back in and turn off clean urls. uncomment the the php5 line and see if you still have the problem.
I have a site on site5 that has that problem. Of note, it is a domain pointer pointing to a folder a couple folders deep in my site structure. If I leave clean urls off it works fine. I just set it up a while back and haven't taken the time to go in and troubleshoot the issue as it is just a test site.
Did you email support about the issue?
Eric Lawrence
Developer/UX Designer
http://squaretone.com
suquaretone, thanks for
suquaretone, thanks for dropping by,
just tryed disabling Clean Urls and cleaning caches (Drupal and browser's) and logs just to be sure, but the Internal Server Error is still there...
wrote to site5 support some days ago, but basically what they sad was:
1. check your .htaccess file
2. check your chmod permissions (755 for directories, 644 for files)
if this does not solve the 500 Error, then sorry but it's Drupal fault.
Also asked a friend on Site5 too to install my website on his server (Limitbreaker) and seems things worked there. Checked the php.ini of couple of Site5 servers and they have different PHP versions and settings..
will dedicate some more time to this later today, will post updates here if any
Personal space|CV
I have 15 sites or more on site5 on different servers
And they are all a-ok on php5. I have never had a problem on either of 2 different servers.
Sounds to me like you have
1. A server (which one is yours???) which doesn't have php5????
2. A corrupted table (watchdog, sessions (especially after what you say about login), etc.).
Did you try a fresh install on a new subdomain? (Create a subdomain with cpanel, then install drupal into it).
My .htaccess:
Victor Kane
http://awebfactory.com.ar
Victor Kane
http://awebfactory.com
Site5 - ewww
I used site5 for about a year then was forced off - they cap your memory and also deny you from your sites because you, as an admin, look like a DOS or something. I moved to servint and haven't had a problem since. Granted I went from $12/mo to $50/mo - the piece of mind was worth it.
Another Site5 PHP5 500 error
I spent the last two days chasing the same error on a Site5 site before I found this post. Once I disabled the AddHandler for php5 my site worked again!
FWIW, the site is living in a subdirectory, along with the drupal codebase - and I tried the AddHandler in the root .htaccess, as well as every other .htaccess down to drupal site level. - Also, the site was upgraded from 4.7 and php4 to the current drupal 5.7 and php5.
Somewhat curiously, the same Site5 configuration with AddHandler enabled for php5 worked with a previous restoration of my database. I thought the problem was with one of subsequently enabled modules (xmlsitemap, blockcache, global redirect), and/or a variant of caching mode used,, but now I'm not so sure - especially since disabling the suspect modules and restoring the database to Site5 gave the same 500 errors.
I'll follow up if I can figure something out.
P.S. - Turning off clean urls and reattempting with php5 enabled caused the same 500 errors
PS#2 - With PHP5 enabled, I get a core dump with each error - Called from php5.bin and error of Program terminated with signal 11, Segmentation fault. #0 0x00d86aab in ?? ()
PS#3 - Changing the website from a subdirectory to a root installation makes no difference. Still get the 500 error with php5 on the "latest" database, yet using a 3 weeks older version works fine with php5. The current version works perfectly with php5 on a local server.
The same here
"Nice" the see that I am not the only one with a 500 error on site5.
My sites are working, my cron script to the domain drupal cron gives the 500 error. I need cron to start a short script every 5 minutes. It al was working perfect for about 6 months. I have (and had) php5 turned on in .htaccess.
It startet 3 days ago, at the same time there is some activity (changes) in the root of my domain. I even have information from other domains in my /tmp folder....? And I have 2 ip numbers, I can use to connect to my domain..?
I asked site 5, after 1 reaction - they changed the firewall - there is sillence.
I asked them if this problem is related to the apache/php update: I still have no answer.
I have no sollution for it, when it doesn't work in a few day's I am forced to go to another provider.
Smile or laugh?
guys, believe it or not, everything i needed to solve that damn 500 Internal Error was 1 line in my php.ini:
memory_limit = 32M
it hurts considering the loads of time i spent on this, but hey, it's over.
Drupal 5 requires more memory than D4, so while browsing the site as an anonymous user things were working fine (Drupal cache in action), but as soon as i was logging in the Error was shooting out (the cache does not work for registered users).
ok. *thank you* all for helping out. let's go drink something strong now ;)
----------------------------------
Drupal Services