In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to configure Ubuntu Apache to test and install various instructions, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.
Install all kinds of systems under Ubuntu Apache
1. Install SSH first
Sudo apt-get install ssh
two。 Install MySQL
Sudo apt-get install mysql-server-5.1
3. Install Apache
Sudo apt-get install apache2
4. Install PHP
Sudo apt-get install php5 libapache2-mod-php5
5. Restart Apache
Sudo / etc/init.d/apache2 restart
6. Install phpMyAdmin
Sudo apt-get install phpmyadmin
Another way to install LAMP: select Edit in Synaptic package Manager-use the task grouping tag package in the open window, check LAMP SERVER and then make sure to click the red palladium application button in the main window, and then wait for Synaptic to download and install automatically. You will be prompted for the root password for mysql once in the middle.
II. Ubuntu Apache testing
1. Test Ubuntu Apache
Enter: http://localhost/ to see if the word It works appears
two。 Test MySQL input:
Sudo netstat-tap | grep mysql can see a line similar to the following: tcp 0 0 localhost.localdomain:mysql *: * LISTEN-if the server is not running properly, you can start it with the following command: sudo / etc/init.d/mysql restart
3. Test PHP
The root directory of Ubuntu Apache is located in / var/www. Add a test file test.php file to it, and the content browser re-enters http://localhost/test.php. If you see the php information web page, PHP is installed successfully.
III. Ubuntu Apache configuration
1 > configuration file path / etc/apache2/apache2.conf of apache
2 > php.ini path / etc/php5/apache2/php5.ini
3 > mysql profile path / etc/mysql/my.cnf
4 > phpmyadmin profile path / etc/phpmyadmin/apache.conf
5 > site root / var/www
1. Configure PHP5
There is nothing to say about this, according to your own needs, the following is the default time zone; default.timezone= PRC (remove the previous semicolon, it represents China)
2. Configure mysql
Sudo gedit / etc/mysql/my.cnf has a major note here, because the default is to only allow local access to the database. If necessary, you can open bind-address 127.0.0.1. This sentence is restricted to local access. If you need other machines to access it, comment this sentence with the # sign.
3. Configure phpmyadmin
Personally, I don't think it is necessary to copy the past. If you don't copy the past, you don't have to change the next configuration and run it in the terminal: sudo gedit / etc/phpmyadmin/apache.conf change the paths of the following two names to / var/www/phpmyadmin Alias / phpmyadmin/ usr/share/phpmyadmin
4. Modify the root directory of the Ubuntu Apache website in ubuntu. DocumentRoot sees a 000-default open in the / etc/apache2/sites-enabled/ directory. The sentence DocumentRoot / var/www changes the path and restarts the Apache2 service.
Characters: common command
1. Restart apahce sudo / etc/init.d/apache2 restart
2. Restart mysql sudo / etc/init.d/mysql restart
Thank you for reading this article carefully. I hope the article "how to configure, test and install Ubuntu Apache" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.