Jump to content

apache localhost


ksmatthews

Recommended Posts

Hi All,

 

I usually use apache virtual domains for all web development.

 

Today however I have enabled 'user web pages' using the following directive

 

UserDir public_html

 

and by enabling mods-available/userdir.conf.

 

After re-starting apache I can now access web pages in my home dir using for example ...

 

http://localhost/~steven/test/myfile.html

 

UNFORTUNATELY I cannot run any php scripts like ...

 

http://localhost/~stevenm/test/index.php

 

only the plain non - interpreted text is displayed but running php in my virtual domains works OK.

 

Why is my PHP not working for localhost ?

 

regards,

 

Steven M

 

Link to comment
https://forums.phpfreaks.com/topic/254555-apache-localhost/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.