Setup Apache Web Server with PHP, MySQL in Raspberry Pi

You may also like...

  • cybernet2u

    dude, you nailed it. apache is the most lightweight webserver. it’s the perfect choice for raspberry …

    • Srini Vasan

      hi cybernet2u, thanks for your feedback …keep visiting.

  • TroyBoy

    THank you!

    • Srini Vasan

      you are welcomed TroyBoy
      keep visiting

  • etienne35

    Hi,
    thanks for the tuto, but I do not manage to get it running. Being completely new to type of environment, it may be something trivial that I missed….

    I run the installation as explained, and when I open ‘/index.php’ in my browser I just get a blanck page, no error message!

    I do not clearly understood the default directory modification in the ‘/etc/apache2/sites-available/default’ file, I do not see any ‘default director’ in it… so I keep it as it is (it contains already /var/www for ‘DocumentRoot’). Could you please provide detailled content of the file?

    • http://128.199.224.11/ Raj Amal

      The default directory is “/var/www” . You must create the index.php file in the “/var/www/” folder. If you want to change the directory modify the DocumentRoot.

  • TJ Lee

    Thank you for this tutorial. It helps a lot!
    However, it failed to make_sock when I tried to do “service apache2 start”, so you might want to change it to “sudo service apache2 start”.

    • Srini Vasan

      thanks for commenting.