So if you are interested to start your web developing journey in Linux environment , I hope as a beginner you are in the right place.
In this blog I will try to wright the simple and easiest way to setup your Linux environment for web developing.
As Linux OS I select the UBUNTU 20, code name : Focal Fossa.
So lets start.
So lets start.
Setup Apache2:
Install apache2:
Use the command to install apache2 on your ubutu:
=> sudo apt-get install apache2
Now start the apache by using:
=> sudo service apache2 start
Restart:
=> sudo service apache2 restart
Stop:
=> sudo service apache2 stop
Setup php
Install php:
=> sudo apt install php libapache2-mod-php
Check php:
make a php file on your /var/www/html/ folder.
You may make it by this command:
You may make it by this command:
=> sudo gedit /var/www/html/info.php
include these code on this file:
<?php
phpinfo();
?>
run this from your browser : localhost/info.php
Comments
Post a Comment