Click to See Complete Forum and Search --> : Is PHP loaded or not?


Anon
05-06-2001, 01:25 PM
How can I tell if PHP is loaded into Apache or not? When I take a look at httpd.conf I can see a few lines for php3 but when I restart apachectl all I see mention of is perl.

I created a small page from the book "Core PHP Programming" and the HTML portion of the examples displays just fine but the php code will not, even if the file is named with the following extensions : .html .php .php3 .php4.

I just finished my first programming class at the ripe old age of 49 and now want to learn php coding but I need a little feedback about how I am doing so far. :-)

I have Apache 1.3.12 presently as that is what fired up when I loaded Mandrake 7.2. Although I intend to upgrade later on, for now that should be good enough to experiment with.

If I should prove not to have PHP on my machine and working with Apache, what is the path of least resistance to get PHP working with Apache locally?

I am not above "scorched earth" ... but would rather uncomment a line or something than do a wholesale revamping of my box. Eventually I want to use Apache / PHP / Postgresql to deliver web content including calendars and searchable datafiles, sell some specialized books and present some specialized advertising.

But today, I want to print "Hello World".

:-)

Bill

Anon
05-06-2001, 06:50 PM
make a file named phpinfo.php in this file put:

<? phpinfo(); ?>

and bring it up in your browser. if it works then php is installed and it will tell you all about your installation. if not youll have to reinstall.

-paul
http://xhawk.net

Anon
05-07-2001, 11:25 AM
When I tried this, my browser wants to download the file instead of displaying it.

I think my srm.conf and/or my httpd.conf may not be configured properly, or I do not have permissions set properly on my newly created test.php.

Help!

Anon
05-07-2001, 08:43 PM
Well ... it looks like re-install time!

I am curious to know ... is it possible the failure of phpinfo.php actually indicates that a config file simply isn't starting some module when it should? (and not a totally failed installation of php?). As mentioned in my initial posting, I can see commented out stuff for php3 in the http.config file. Getting Linux / Apache / Postgresql and PHP singing in harmony isn't as much fun as folks say it is.

<-- been there, done that.

4.0.5 (?) is already downloaded. I am going to rip Apache and Postgresql out by the roots, too and just try to start clean.

Thanx fer the tip ... Bill