Get the App
SLTechnology News&Howtos  ›  Servers  › 

Installation and configuration method of APACHE+PHP+MYSQL WEB Server under UBUNTU

Shulou Source: shulou.com Published: 2022-06-01 22:01:11 10月04日 Update

This article mainly introduces "the installation and configuration method of APACHE+PHP+MYSQL WEB server under UBUNTU". In the daily operation, I believe that many people have doubts about the installation and configuration method of APACHE+PHP+MYSQL WEB server under UBUNTU. The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "installation and configuration method of APACHE+PHP+MYSQL WEB server under UBUNTU". Next, please follow the editor to study!

Once again, here's my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.

Install SSH Client and Server (for my remote access)

Sudo apt-get install ssh

Install Database Server

Sudo apt-get install mysql-server-5.0

Install Apache HTTP Server

Sudo apt-get install apache2

Install PHP5 and Apache PHP5 module

Sudo apt-get install php5 libapache2-mod-php5

Restart Apache

Sudo / etc/init.d/apache2 restart

Optionally, install phpMyAdmin

Sudo apt-get install phpmyadmin

Enjoy!

How's it going? Easy! Apart from the download time, the configuration can be completed in less than a minute. Do you still need the APM package on Ubuntu? Just remember the following commands and locations.

Sudo / etc/init.d/apache2 restart (restart apache)

Sudo gedit / etc/php5/apache2/php.ini (configure php.ini)

Sudo gedit / etc/apache2/apache2.conf (configure apache2.conf)

/ var/www/ (home directory location)

At this point, the study on the method of installation and configuration of APACHE+PHP+MYSQL WEB server under UBUNTU is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Configuration method server service learning location more help practical next command article time theory directory knowledge article website or material Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn Shulou Technology Shulou Tech Info Huawei