I was reading my new php and MySQL book and it said that if I had a “web server installed locally and it has PHP support, then you can test out PHP scripts directly on yout computer.” How do I get all this on linux and once I have it how do I test if my php scripts are working?
Share
Install a LAMP stack. Since you already have Ubuntu, an AMP stack.
sudo apt-get install apache2 php5 php5-mysqlfrom the command line will set you up a web server with php. Then, you can put your scripts in /var/www/