USED COMMANDS
Install (Apache ,My Sql,,PHP) lamp server
sudo apt-get install lamp-server^
If you want to install phpmyadmin then follow these step.
sudo apt-get install phpmyadmin
Rectify if phpmyadmin installed but not working ========
Using VIM EDITOR:---
vim /etc/apache2/apache2.conf
Add the following to the bottom of the file:
phpMyAdmin Configuration
Include /etc/phpmyadmin/apache.conf
Then exit and save the file with the command :wq.
And, restart Apache 2 with the following command:
service apache2 restart
In vim there are 3 different modes:
Insert - allows typing and editing as normal
Visual - used for selecting copy/paste etc.
Normal - used for commands
To get back to Normal mode, you can always press esc.
Once you are at Normal mode Press : to begin your command (you'll see it appear in the bottom left). The following commands are related to quiting vim:
:q - quit if no changes were made
:q! - quit and destroy any changes made
:wq - write changes (save) and quit
:x - similar to :wq, only write the file if changes were made, then quit
17 сен 2024