9. How To Setup Lamp Server and Develop Web App with PHP
Installing Server
Writing Script with PHP
Configuring Virtual Host
Enable It
10. Installing Lamp Server
No Hassle! Just A Single Command!
Simply Run the Following Command on Your Console/Terminal:
sudo apt-get install lamp-server^
Provide root passwords for mysql
Done! Easy nah? :P
13. Save it on:
/etc/apache2/sites-available/
Enable It
sudo a2ensite <name of sites-available directory/file>
sudo a2ensite hello (example: hello is save on sites-available director
Reload service apache2
sudo /etc/init.d/apache2 reload
sudo service apache2 reload
14. Run PHP file on Browser
Run localhost/<filename.php>
http://127.0.0.1/myphp.php (example)
http://localhost/myphp.php