My Apache htt web server 2.058 can execute PHP command

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • info@awebali.com

    My Apache htt web server 2.058 can execute PHP command

    What should I do to solve this? I can not load php tag to test my
    apache server :
    but everytime i open the http://localhost/ everything looks
    like ok.

  • Lammi

    #2
    Re: My Apache htt web server 2.058 can execute PHP command

    On 5 Sep., 13:05, i...@awebali.co m wrote:
    What should I do to solve this? I can not load php tag to test my
    apache server :
    but everytime i open thehttp://localhost/ everything looks
    like ok.
    i assume, your apache doesn't serve php as parsed webpages, it serves
    them as text? you need to enable php support in apache. on windows,
    you have to include something similar to this into httpd.conf:

    LoadModule php5_module "D:/xampp/apache/bin/php5apache2.dll "
    AddType application/x-httpd-php-source .phps
    AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml

    on linux you need the same setting, just adjust the path-information.




    Comment

    Working...