Apache with php
Hello
I am new to arch linux, maybe this is a stupid question: I installed apache and php with pacman,I started the http and apache seems to be working. I can view Html pages in localhost, but php pages does not show up. Any clues? |
No because you've given no useful debugging information. What do you mean by "does not show up"? What does show up? What error, if any, do you get from your browser? What do Apache's access_log and error_log say?
|
2 Attachment(s)
Quote:
When opening php files in the browser, what shows up is the source code, not the rendered page. There is no error. The logs are attached. (yes, my system's date is wrong) |
Hi,
You need to add in httpd.conf the following: Code:
AddType application/x-httpd-php .php |
Quote:
|
also add
AddType application/x-httpd-php-source .phps---for viewing source in browers for debugging purpose in http.conf file |
All times are GMT -5. The time now is 08:39 AM. |