Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork185
Localhost shows site's folder structure and filenames. Also shows php code on web page's content#862
-
I followed the instructions from this page and successful able to switching multiple PHP versions. How to fix this please? |
BetaWas this translation helpful?Give feedback.
All reactions
You need to install a web server. I would recommend installing apache. Follow the Apache Installation section inthis guide.
Replies: 1 comment 2 replies
-
You need to install a web server. I would recommend installing apache. Follow the Apache Installation section inthis guide. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Yes, I already have installed the Apache on my Mac Book Pro. It is working when I run command "brew services start httpd". I can see that the DocumentRoot I changed in https.conf loads the site from this specific path. However it shows the PHP code in the localhost's web page's content. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Thank you@shivammathur for theguide, I missed below section. It is working as charm now! ` <FilesMatch .php$> |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1