Install Apache, Mysql, Phpmyadmin, PHP in ubuntu18 04

Опубликовано: 19 Октябрь 2024
на канале: CrackerWeb
212
1

Thank you for whatching the video if you like this video then share and subscribe with your friends and subscribe for more.

If you have any query about php or related then "write the description in the comment box" i will get back to you in next day.
----------------------------------------------------------------------------------------------------

Install Apache, Mysql, Phpmyadmin in ubuntu

//install apache
sudo apt-get update
sudo apt-get install apache2

//Restart server
sudo systemctl restart apache2

//check if this server actual work
sudo apt-get install curl
curl http://icanhazip.com

//Install mysql
sudo apt-get install mysql-server
mysql_secure_installation

//set username and password
sudo mysql
SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;11.user;
exit
mysql -u root -p

//Install php
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql

//Set to execute index.php rather then .html file
sudo nano /etc/apache2/mods-enabled/dir.conf

//restart the server
sudo systemctl restart apache2
sudo systemctl restart apache2

//Install php command line interface
sudo apt-get install php-cli


//After installing all this
//Install phpmyadmin
sudo apt update
sudo apt install phpmyadmin php-mbstring php-gettext
sudo phpenmod mbstring
sudo systemctl restart apache2

//Link phpmyadmin to apache2
sudo nano /etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache.conf
sudo systemctl restart apache2

//Enable htaccess mode
sudo a2enmod rewrite
sudo systemctl restart apache2

//virtual host allow
sudo nano /etc/apache2/apache2.conf

//All Done


Bye bye.


----------------------------------------------------------------------------------------------------


My social links are:

LinkedIn : www.linkedin.com/in/hitugehlot22
Twitter : @hitugehlot22
Instagram : @gehlot_hemant