PHP wont work, what else can I do??

AjAy2

Registered
Hi guys,

Right i have an iBook, Apache apparently comes pre-installed along with PHP. Apache works fine, when i enter http://localhost/ it displays the file it is meant to.

However, I can not get PHP working. I have edited the httpd file to what was explained to me, and it still dont work.

Can anybody help, I mean anybody..I am so stuck and have Uni work to do.

Cheers

AjAy
 
What do you mean "PHP wont work?" What are you doing? Error messages? Did you create a file with <?phpinfo();?> and name it with .php, then go to it in your browser?

More details.
 
Yeah I created the document, and named it test.php, when I look it for it using the browser it just doesnt find it.

Any ideas

Aarron
 
OK..

I saved it in <Directory "/home/Aarron/Sites ">

And I have edited this in the httpd file, I can send you this file if it helps you to help me.

Thanks for your help.
 
AjAy2 said:
I saved it in <Directory "/home/Aarron/Sites ">

I've never found http://localhost worked. But typing http://127.0.0.1 is a relatively minot inconvenience.

If you've saved the file in your own Sites folder you should find it under http://localhost/~Aarron/test.php

I'd second mdnky's endorsement of Marc Liyanage's installer package. You get a newer version of PHP than Apple provides and lot of dependencies installed along with it - again, more than Apple provides.

BTW, though mdnky didn't say so, there's still a 4.3.6 installer available at Marc's site. He won't be doing any more PHP4 releases, but if you don't want to make the leap to PHP5, it's a good package.

Now all I need is a shell script to alter Marc's httpd.conf and restart Apache so I can switch between PHP4 and PHP5 on the fly! (Have to do it manually at the moment.)
 
Back
Top