Find the answer to your Linux question:
Results 1 to 2 of 2
I have a LAMP server configured in Mint 12 and am trying to write basic PHP scripts (still learning the code). Whenever I try to open a .php file or ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    59

    .php files not opening properly in Mint


    I have a LAMP server configured in Mint 12 and am trying to write basic PHP scripts (still learning the code). Whenever I try to open a .php file or the html tries to execute a script, the "not sure what program to open this extension window" pops up, as if it's trying to save the .php file instead of run it.

    I'm not all that experienced with the LAMP configuration or PHP. is this something wrong with the code, how Apache is configured, how Firefox is configured, or some combination therein? Any assistance would be greatly appreciated

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Hi,

    Have you installed PHP on the server? Writing PHP files to be served by Apache is one thing, but you have to also have PHP itself installed, e.g.:

    Code:
    sudo apt-get install php5 libapache2-mod-php5
    Start by creating a test PHP file that just prints some PHP info in a web page. See this tutorial for a good and simple walk-through:

    http://community.linuxmint.com/tutorial/view/486

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •