Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build lamp Environment in ubuntu12.04 amd64 system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to build the lamp environment in the ubuntu12.04 amd64 system". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to build the lamp environment in the ubuntu12.04 amd64 system".

The software you need to use:

Apache: http://httpd.apache.org/

Php: http://www.php.net/

Mysql: http://www.mysql.com/

Ubuntu: http://www.ubuntu.com/

Phpmyadmin: http://www.phpmyadmin.net/

Installation:

You need to operate as root in ubuntu, so make sure you log in as root with the following command:

The code is as follows:

Sudo su

Install mysql

The code is as follows:

Apt-get install mysql-server mysql-client

You will be asked to provide a password for the root user of mysql. We need to set the password in the red area.

Install apache2

The code is as follows:

Apt-get install apache2

Note: the default document root for apache is the / var/www directory on ubuntu, and the configuration file is / etc/apache2/apache2.conf. The subdirectory where the configuration is stored is in the / etc/apache2 directory.

Install php5

The code is as follows:

Apt-get install php5 libapache2-mod-php5

Restart is required after installation

The code is as follows:

/ etc/init.d/apache2 restart

Test whether the installation is successful

The code is as follows:

Vi / var/www/info.php

Enter it inside

The code is as follows:

< ?php phpinfo() ?>

And then access it through a browser

Php5 is supported by mysol

With php supported in mysql, we can install the php-mysql package. It's a good idea to install some other php5 modules, as well as applications you might need:

The code is as follows:

Apt-cache search php5

Also install what needs to be installed

The code is as follows:

Apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

Then restart apache

The code is as follows:

/ etc/init.d/apache2 restart

Install phpmyadmin

The code is as follows:

Apt-get install phpmyadmin

Automatically install under / usr/share/phpMyAdmin, then copy phpMyAdmin to the / var/www directory and run http://localhost/phpmyadmin/

Thank you for your reading, the above is the content of "how to build the lamp environment in the ubuntu12.04 amd64 system". After the study of this article, I believe you have a deeper understanding of the problem of how to build the lamp environment in the ubuntu12.04 amd64 system. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report