Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to learn to build WWW-pages on my own computer. I have Linux Mint Helena so is it possible to install some system into it (MySQL, Drupal, ...) so that I can put my pages to it and whose will be shown on the Internet?


I have installed php5 but I can't see my PHP-files. What command restarts apache?


It works. How can I see my PHP files? I tried to type file:///home/jaakko/Desktop/first.php to Firefox address bar but it says

You have chosen to open first.php which is a: PHP file. What should Firefox do with this file:

  • Open with Browse

  • Save File

Do this automatically for files like this from now on.

share|improve this question
add comment

migrated from webmasters.stackexchange.com Oct 30 '10 at 13:35

This question came from our site for pro webmasters.

3 Answers

This is a real mess :-D Try to update your initial question instead of "answering" please.

  • Follow NARKOZ instructions
  • Restart apache with /etc/init.d/apache(2) restart
  • Always access your website via HTTP protocol (http://yourhostname) not via file (file://)
  • You'll find your hostname by typing hostname or just use "localhost" for local testing
  • If you want to make your website public (which I don't recommend at that stage), use these instructions
share|improve this answer
add comment

As Linux Mint is a Debian based distribution, you need install your environment with apt-get install package_name. Begin with installing Apache, MySQL, PHP:

sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5-mysql
share|improve this answer
    
Added commands. –  Skyhawk Oct 30 '10 at 19:18
add comment

I would advice you to install the php5 meta package (apt-get install php5) where the libapache2-mod-php5 is included. I'm not sure, but i think it enables the php module automatically. If not just run a2enmod php5 and restart apache.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.