To get you started with installing PHP and Apache
on VPS or Dedicated server running Ubuntu 14.04 OS use following command:
apt-get update && apt-get upgrade
apt-get install -y apache2
After this, you may verify that the Apache gets
installed by opening the browser and going to link- http://your-ip-address
(img)
Now, that you’ve installed Apache, it’s time to
install PHP with following command:
apt-get install -y php5 libapache2-mod-php5 php5-mcrypt
php5-cli
After that, you need to verify if everything
works accurately, just create a PHP info file as given below:
cd /var/www/html/
vi index.php
Then, paste following command in the file:
phpinfo();
Then close the file as below,
:wq
Now, since the file has been written, restart
Apache
apachectl restart
Click to read the full article-
No comments:
Post a Comment