php5 migration problem

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
wmasterj
Forum Commoner
Posts: 40
Joined: Mon Aug 18, 2003 5:52 pm
Location: Stockholm, Sweden

php5 migration problem

Post 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,
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

What is it running under? IIS, Apache?
User avatar
wmasterj
Forum Commoner
Posts: 40
Joined: Mon Aug 18, 2003 5:52 pm
Location: Stockholm, Sweden

Post by wmasterj »

sorry forgot...

Apache/2.0.52 (Win32)
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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...
User avatar
wmasterj
Forum Commoner
Posts: 40
Joined: Mon Aug 18, 2003 5:52 pm
Location: Stockholm, Sweden

Post by wmasterj »

Thank you i'll try.
Post Reply