Figure-LAMP
LAMPConfigurationMysqlThe test is as follows:
The above php and Apache have been tested. Next we will test whether the Mysql database has been correctly enabled.
Create mysql_test.php in the/var/www directory:
$ Link = mysql_connect ("localhost", "root", "020511 ");
If (! $ Link)
{
Die ('could not connect: '. mysql_error ());
}
Else echo "Mysql has been correctly configured ";
Mysql_close ($ link );
LAMP environment Deployment Guide
1. install apache
1) install httpd:
Yum install httpd
2) Start the httpd service
Service httpd start
2. Install mysql
1) install mysql
Yum install mysql-server
2) Modify mysql encoding to utf8
Vi/etc/my. cnf
Add the following in [mysqld:
Default-character-set = utf8
Init_connect = "set names utf8"
3) Start the mysql Service
Service mysqld start
3. Install php56 and extension
Rpm-Uvh http://repo.webtatic.com/yum/el6/la
Recently, I want to modify the Wordpress template, so it is easier to create a local LAMP environment for debugging. I just want to record it and provide a reference for a friend who needs it. In fact, there are a lot of information on building a LAMP server under UbuntuLinux on this site. This time, we launched a newbie-Oriented Network Information Release Platform for building a
Figure-LAMP
LAMPInstallPhpmyadmin-MysqlDatabase Management
Use the interface Manager:
System-> System Management-> New Software Package Manager-> Search phpmyadmin-> right-click to mark installation.
Or run the following command: sudo apt-get install phpmyadmin to start installation.
Phpmyadmin settings:
During the installation process, You must select Web server: apache2 or lighttpd, select apache2, press the tab key, and click OK. Then, you ar
is reported during installation:Configure: error: mcrypt. h not found. Please reinstall libmcrypt.
We need to install the required software package for the encrypted Library:Rpm-ivh mhash-devel-0.9.2-6.el5.i386.rpm mhash-0.9.2-6.el5.i386.rpm libmcrypt-devel-2.5.7-5.el5.i386.rpm libmcrypt-2.5.7-5.el5.i386.rpmMake make installPhp installation is complete.
Recommended reading:
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in
" 5 seconds ago up 4 seconds 0.0.0.0:40080->80/tcp, 0.0.0.0:43306-GT;3306/TCP Roma Ntic_yonath 3fa70f39af75 ubuntu_sshd_gcc_nginx_gerry:14.04 "/run.sh" about a hour ago up Abou T an hour 0.0.0.0:30022->22/tcp, 0.0.0.0:30080->80/tcp, 0.0.0.0:30443->443/tcp Distracted_wilson 101bc29 5b601 ubuntu_sshd_gcc_apache_gerry:14.04 "/run.sh" 2 hours ago up 2 hours 0.0.0.0:2002 2-GT;22/TCP, 0.0.0.0:20080->80/tcp suspicious_sinousSi cec21c3c0a1f registry:latest "docker-registry" 2 hours ago up 2 hours 0.0.0.
most powerful website solution.The specific process of installing lamp under ubuntu is as follows!Use the command:
sudo tasksel install Lamp-server
If the following words appear in the terminal:
Sudo:tasksel:command not found
Indicates that it has not been installed. You will need to execute the following command to install
-odbc php54w-pdo php54w-pear php54w-pecl-igbinary php54w-xml php54w-xmlrpc php54w-opcache php54w-intl php54w-pecl-memcache installation PHP corresponding to a variety of extensions;
Yum installation is a variety of conveniences. It has been tried more than a dozen times with source code installation, and various bugs cannot be solved !!!!
------------------------------------ Split line ------------------------------------
CentOS 6.5 system installation and configuration
password for MySQL
Mysql_secure_installation
Enter y to set the password. After setting the password, press enter until Thanks for using MySQL appears!
4. Restart MySQL
Service mysqld restart
Step 3: install and configure PHP
1. Install using yum
Yum install php
2. install PHP Components
Yum install php-mysql php-gd libjpeg * php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt
3. Restart Apache and MySQL
4. You can upload PHP files to th
Sometimes, a company needs to manage many domain names. The correspondence between these domain names and ip addresses often changes, and the background operator is not a linux User. The following documents will meet this requirement.
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Compile and install LAMP in CentOS 5.9 (Apach
Long ago wrote, accidentally turned over and then took out to see, inside the text picture has not changed, there are mistakes please forgive meSteps:First, about the installation of UbuntuSecond, Ubuntu configuration lamp (Linux+apache+mysql+perl/php/python)Third, Ubuntu+sendmail+dovecot+roundcubewebmailWrite in front:1, online multi-choice openwebmail as a webm
1. check whether the environment required to build LAMP has been installed [root @ centos6 ~] # Rpm-qmakegccgcc-c ++ zlib-devellibaio remarks: when installing libpng, zlib-devel is required to install mysql. if it is not installed, yum will install [root @ cen...
1. check whether the environment required to build LAMP has been installed.[Root @ centos6 ~] # Rpm-q make gcc-c ++ zlib-devel libaioNote: zlib-de
language, etc. Below I will discuss from these points to its one by one.
Operating system
The Linux operating system has many different distributions, such as Red Hat Enterprise Linux, SUSE Linux enterprice, Debian, Ubuntu, CentOS, and each distribution has its own characteristics, such as rhel stability, Ubuntu's ease of use, based on stability and performance considerations, operating System Selection CentOS (Community ENTerprise operating system
1. Check whether the environment required to build LAMP has been installed.[Root @ centos6 ~] # Rpm-q make gcc-c ++ zlib-devel libaioNote: zlib-devel is required for libpng installation.Libaio is required for mysql installation.2. If not, install yum[Root @ centos6 ~] # Yum install make gcc-c ++ zlib-devel libaio-y3. Check whether httpd, mysql, and php are installed because you need to use compilation and installation. If installation is required, uni
1 . Confirm that the environment required to build the lamp has been installed
[ROOT@CENTOS6 ~]# rpm-q make gcc gcc-c++ zlib-devel Libaio
Note: installation libpng need zlib-devel
need Libaio When installing MySQL
2, if not installed then Yum installation
[ROOT@CENTOS6 ~]# yum install make gcc gcc-c++ zlib-devel libaio-y
3, because to use the compilation installation, so see httpd, MyS
A cainiao's path to LAMP (1) ------ installation of mysqlphp preface this bird has previously had windows php development experience and is no stranger to the establishment of phpmysqlapache service platform on windows. Recently, many php-related jobs are required to be familiar with LAMP. This bird is despised for this reason. Hard
A cainiao's path to LAMP (1) -
I am a newbie in Linux. I want to install a Ubuntu Linux server and use the LAMP package on this server to run my own website. LAMP kit is "Linux + Apache + Mysql + PHP these four software constitute a set of tools that can run the website software ." Through the installation attempt, I have gained some successful installation and configuration experience. Throug
Phpinfo ();
?>
This is the php test webpage.
Vim/usr/local/apache/htdocs/test. php
$ Links = mysql_connect ("localhost", "root ","");
If ($ links ){
Echo "like db OK !!!";
}
Else {
Echo "link db no !!!";
}
?>
Mysql php-based test webpage
Recommended reading:
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Compile and install LAM
Buy the wrong movie tickets, tears also have to see-lamp build linux Foundation, movie tickets-lamp
Hi
Did not say, last Friday, the roommate had a treat, in the Longhu eat hey drink cool, go back on the road. Well this Monday to see the final blockbuster of the Year, Mars Rescue, who know Lao Tze eyes, bought the wrong movie time ... The Saturday agreed to advance to this afternoon, Madan, send all can no
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.