By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,715 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,715 IT Pros & Developers. It's quick & easy.

Installing PHP - "test.php" not Working?

P: n/a
I'm a newbie to Apache. This week I installed my first Apache 2.0 server,
and it's working fine. I then installed PHP. When I ran the PHP test file
("test.php"), the actual text contents of the file came up in the
browser:

----------------
<?php
phpinfo();
?>
----------------

I confirmed that my Apache installation includes the "mod_so.c" module. I
made sure that the file "test.php" was in the default htdocs folder. I
confirmed that my "httpd.conf" file contained the lines :

----------------
LoadModule php4_module /Library/Apache2/modules/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
----------------

I made sure that the directory /Library/PHP4 was installed, and that the
"libphp4.so" file was located in /Library/Apache2/modules.

I logged out of my system (Mac OS-X 10.3.2) and logged back in, to make
sure that Apache restarted.

What am I missing? How can I get PHP working? Thanks in advance to all
for any info.

-Vik
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vik Rubenfeld wrote:
I logged out of my system (Mac OS-X 10.3.2) and logged back in, to make
sure that Apache restarted.


Now I known nothing about OSX, but I'm told it's not unlike
a unix underneath all the eye-candy. If that is the case, I
would think you need to do more then a logout to have Apache
restarted. Did you try a reboot?
Bob

- --
| B. Johannessen <bo*@db.org> +47 97 15 20 09 - http://db.org/
| Mail & Spam - News, Drafts & Standards - http://db.org/blog/
| On The Origin Of Spam; Spam Statistics - http://db.org/spam/
- --
-----BEGIN PGP SIGNATURE-----

iD8DBQFAOBKfooisUyMOFlgRAjN9AJ98mgNHYmmq/UdQtLYQjNAxtYORjgCggLiN
DG2ezDdRa6VMML0PpLGB218=
=FS6F
-----END PGP SIGNATURE-----
Jul 17 '05 #2

P: n/a
"B. Johannessen" <bo*@db.org> wrote:
Did you try a reboot?


I just read your post and tried a reboot, but it hasn't gotten PHP
working yet.

-Vik
Jul 17 '05 #3

P: n/a

"Vik Rubenfeld" <vi**@mindspring.com.invalid> wrote in message
news:vi************************@news2.west.earthli nk.net...
I'm a newbie to Apache. This week I installed my first Apache 2.0 server,
and it's working fine. I then installed PHP. When I ran the PHP test file
("test.php"), the actual text contents of the file came up in the
browser:

----------------
<?php
phpinfo();
?>
----------------

I confirmed that my Apache installation includes the "mod_so.c" module. I
made sure that the file "test.php" was in the default htdocs folder. I
confirmed that my "httpd.conf" file contained the lines :

----------------
LoadModule php4_module /Library/Apache2/modules/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
----------------

I made sure that the directory /Library/PHP4 was installed, and that the
"libphp4.so" file was located in /Library/Apache2/modules.

I logged out of my system (Mac OS-X 10.3.2) and logged back in, to make
sure that Apache restarted.

What am I missing? How can I get PHP working? Thanks in advance to all
for any info.

-Vik


Try to type this as address in your browser:
http://127.0.0.1/test.php
or
http://localhost/test.php

This should work if your test.php is in apache htdocs folder. I had similar
problem when I was first time installing PHP, and this was the solution.
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.