Google Plus

Cannot open php PHTML file

Written by Mel Kham on . Posted in Frequently Asked Questions

Question: After installing LAMP you still have problem to open php pages .  How  to  solve  this issue.

 

 

Answer:

First   check  if   this  packages  is  installed : libapache2-mod-php5 ,if not install it using this command:

sudo apt-get install libapache2-mod-php5

 

Now  open your  firefox  and  clear  the  cache and  history

 

reboot   your apache  server sudo   /etc/init.d/apache2  restart

Method  tested  and  working under  ubuntu and  debian versions

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • Froyamel

    Maybe you are trying to open a php file from your public_html user directory like i was. I solve the problem changing my /etc/apache2/mods-enabled/php5.conf file by commenting the blond lines:

    SetHandler application/x-httpd-php

    SetHandler application/x-httpd-php-source

    # To re-enable php in user directories comment the following lines
    # (from to .) Do NOT set it to On as it
    # prevents .htaccess files from disabling it.
    [b]#
    #
    # php_admin_value engine On
    #
    #[/b]

    after that I restarted the apache and typed in the url box of the browser some like this:
    http://localhost/~myuser/index.php

    and it worked! I hope this could help. :D

  • Pingback: satimis on "Problem on installing Wordpress" | Upgrade Wordpress

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

SK

|

I am working on it. Stay tuned. Thanks for the comment.

adriana rizzati

|

You are right, I saw them just now and they are awesome!

SK

|

Thanks for the comment Abdullah. Stay tuned with us always.

Abdullah Musazai

|

Thank you for such a great service you always do, hope you gain more power and more energy to work more & more

Dominik Bauer

|

thx a lot!

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .