Php 5 is not working

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
dogma_spelled_backwards
Forum Newbie
Posts: 2
Joined: Sun May 08, 2005 3:41 am

Php 5 is not working

Post by dogma_spelled_backwards »

Hi,
I've unzipped and installed php 5 into my root/home directory.
Im using FedoraCore4 and Apache2. When I make a php page all I get is the php code along with the html. The php.ini text is also completely white in the terminal window.
I must be missing some obvious setup procedure but this is the first time I've set up my own linux server. And yes I've searched the forum and read patricks post.
Also there are 2 php.ini files: php.ini-dist and php.ini-recommended. ??? which one do I use to config php once I get it working?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

:arrow: Moved to servers
dogma_spelled_backwards
Forum Newbie
Posts: 2
Joined: Sun May 08, 2005 3:41 am

Post by dogma_spelled_backwards »

So how do I enable php? Anyone home? Hello? I can't even get a phpinfo page to run. A website somewhere to explain this? Do I need psyhic powers?
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

dogma_spelled_backwards wrote:So how do I enable php? Anyone home? Hello? I can't even get a phpinfo page to run. A website somewhere to explain this? Do I need psyhic powers?
and you expect people to answer you?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Have you made any changes to your httpd.conf file?

You'll need to load a PHP5 module for Apache...
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

have you read the install file or readme text, it is pretty good about explaing how to set php.

If you had you would have noticed it says to use php.ini-recommended

also you would have read how to add the modules to your http.conf file.

after you have done this and are still having problems then ask agian.
nawhaley
Forum Commoner
Posts: 85
Joined: Wed May 18, 2005 11:43 am

Post by nawhaley »

I'm having the same issue. I set up my httpd.conf for apache 1.3 and downloaded the binaries for php5. I then alterd the php reccomended file to php.ini and put in the diectorys for my rootdiectory as well as putting all the configuration for Apache to recognize it and all I get is an html page coming up reading of my php script its not interpreting it. Its becoming very very frustrating can someone assist me please?
Post Reply