📜 ⬆️ ⬇️

Installing LAMP (local web server for Ubuntu 9.04) step by step

It must be said that there are a lot of instructions on the Internet to solve this problem, but not every one can be brief and complete.
This instruction is purely for a beginner who is just starting to master ubuntu.
The action takes place in the terminal window.
1. Creating root user:
@:~$sudo passwd root
then the system will ask you to enter the password that you entered during the installation of the system.
After that, enter the root password: do not be surprised passwords are not displayed.
2. Enable local login as root. You must perform the following sequence of actions:
System> Administration> Login window> Security tab> check "Allow local login to system administrator"
Warning: activating the root user is dangerous for your computer (network security)

It is possible, as already said below, not to create root, but simply to execute (become root)
sudo su remind it to work with files and install packages
3. Install apache (in the terminal):
sudo apt-get install apache2 libapache2-mod-auth-mysql
4. Install php:
sudo apt-get install php5-common php5 libapache2-mod-php5 php5-cli php5-cgi php5-mysql
5. Restart apache:
sudo /etc/init.d/apache2 restart
6. Install MySQL:
sudo apt-get install mysql-server mysql-client During installation, you will be asked to enter the root password of the MySQL server.
7. Restart apache:
sudo /etc/init.d/apache2 restart
8. Install phpmyadmin.
sudo apt-get install phpmyadmin
phpmyadmin is a web-based tool for managing MySQL databases. A very handy tool for developers. During the installation, they will ask us about the web server used - choose apache.
specify the directory where phpmyadmin is installed
sudo ln -s /usr/share/phpmyadmin/ /var/www
Login to phpmyadmin: localhost / phpmyadmin
That's all.
Connecting modules: some modules are disabled by default. You can enable them with the command:
sudo a2enmod _ dd
For example, the connection module mod_rewrite:
sudo a2enmod rewrite
After connecting the modules, you need to restart apache:
sudo /etc/init.d/apache2 restart

')

Source: https://habr.com/ru/post/64652/


All Articles