Page 1 of 1

php5 migration problem

Posted: Mon May 22, 2006 8:11 am
by wmasterj
Hi,

i just migrated to php5.1.2 from php-4.3.9 and i reconfigured all closly by the instructions, but when i load my files after this it just said .... nothing. I didnt even get any source code from the browser! It seemed to work somehow because when i wrote faulty syntax on purpuse into the php-code it gave an error notice. But even when i did the most simple thing namly:

Code: Select all

echo "hello world";
it gave no output!

I have now change back to the php4 abd it works but does anybody know what my problem with php5 is?

thanks,

Posted: Mon May 22, 2006 8:25 am
by neophyte
What is it running under? IIS, Apache?

Posted: Mon May 22, 2006 7:52 pm
by wmasterj
sorry forgot...

Apache/2.0.52 (Win32)

Posted: Tue May 23, 2006 3:15 am
by Maugrim_The_Reaper
Does testing Apache config under Windows spring any errors? If you're not sure what I mean - navigate to C:\path\to\apache\bin and run httpd.exe from MS-DOS. Note any errors. Also ensure the PHP5 directory is included in Windows PATH (some extensions need libraries from this directory and having them in the path make them easier to find).

If there are no errors whatsoever - well, I'd consider backing up everything and starting an install from scratch. Apache 2.2 + PHP5.1 following the minimum recommended steps, testing all the way, and adding php, apache/bin directories to your system path. Use the recommended php.ini without changing any settings - except extensions directory. That leaves you with exactly 3 lines to add to add to the Apache httpd.conf file to use PHP. If that fails...

Also, don't use the Windows PHP installer if by chance you did...

Posted: Thu May 25, 2006 6:16 am
by wmasterj
Thank you i'll try.