Page 1 of 1
Troubleshooting PHP on Linux
Posted: Sun Feb 01, 2004 4:46 pm
by ianmurphy
Hi all,
I'm new to both Linux and PHP. I've got RHL Enterprise Server 3 and am running Apache 2.0.
I believe that PHP is installed by default and have found a 'PHP' file that, once run, then appears in the ps -A list (therefore, I'm assuming this is the actual PHP process/service)
I run this, but my simple test PHP pages don't seem to show the PHP code as I expect - eg, I've run the 'Chicken Man' test but the actual PHP text doesn't appear.
I'm sorry if I haven't provided much info but like I said, I'm completely new to both these topics.
Any help would be greatly appreciated.
Cheers,
IM
Posted: Mon Feb 02, 2004 11:53 am
by devork
what's the problem?

Posted: Mon Feb 02, 2004 6:04 pm
by ianmurphy
Heh heh,
I thought I'd covered that in saying "the actual PHP text doesn't appear"
Basically, I've used the Chicken Man test whereby you put in some PHP into some HTML. The PHP formatted text says "I am the CHICKEN MAN" but this piece of text does not show up. The HTML text shows up fine.
I freely accept any criticism or insult - like I say, I'm totally new to both topics and whilst I have tried to read around the subject using the likes of Google and Steve Shah's Linux Administration Beginner's Guide - I'm still quite clueless.
That said, I consider myself to be reasonably technically literate.
So ladies and gentlemen, send the comments/insults/advice/whatever else this way.
Cheers,
IM
Posted: Mon Feb 02, 2004 8:49 pm
by markl999
Create a simple test, called test.php , with only this code in it...
What does that do/show ?
Posted: Wed Feb 04, 2004 1:42 pm
by devork
and also it will be much better, if you post your php code too.
to check where the error/omission was.
Posted: Thu Feb 05, 2004 3:09 am
by Pyrite
What does this have to do with Linux? Somebody move this to the PHP Code forum.
Posted: Sun Feb 08, 2004 5:49 am
by ianmurphy
Hi again,
First of all, I felt this has to do with Linux because I think I'm failing in the actual implementation of PHP on Linux - I don't feel it's an issue with any PHP code.
Mark,
Using the test.php file, literally nothing appears in the browser. The PHP file doesn't appear to have a file association but I don't know if this is the way it should be or not.
Again, any assistance would be appreciated - I'm still reading around the subject and will post anything useful I find.
Cheers,
IM
Posted: Mon Feb 09, 2004 2:31 pm
by m3rajk
ian: put in the install cd and then run it. tell it to add to the current set up. it sounds like soemthing was done on install that you either didn't select php or selected it as a module and not a stand alone. in either case, you can add it as a stand alone, which will make it work.
Posted: Fri Feb 13, 2004 2:44 pm
by BDKR
Pyrite wrote:
What does this have to do with Linux? Somebody move this to the PHP Code forum.
It's fine where it is Pyrite. Why, becuase by virtue of the fact that he started this from a command line (or at least it sounds like it), then saw it running using ps, there is no amout of echo($var), php_info() voodo that's going to stop it.
ianmurphy:
Getting down to business, it sounds like you ran this from a command line. If there are no arguments passed to it (like a file for example), it will just sit there normally. That's been my experience at least.
So to get rid of it, type in ...
That should do it.
To see the output of php files through your browser, you need to make sure that apache is running. Trying typing in ...
If it's not running, replace the 'status' with 'start'. After that, track down the directory that Apache serves files from and THEN put the famous test file in there with the php_info() command.
Cheers,
BDKR