Quickly build lamp environment
linux+apache+mysql+php, a group of open-source software used to build dynamic Web sites or servers, is itself a separate program, but because it is often used together, it has an increasingly high degree of compatibility, which together form a powerful Web application platform.
Installation steps:
1. Install MySQL
# yum Install mysql-server-y
2. Start MySQL
#/etc/init.d/mysqld Start
To modify a database password
# mysqladmin-u root password "NewPassword"
3. Installing PHP programs and Php-mysql plugins
# Yum Install php php-mysql-y
4. Install Apache program, Linux Apache package name is httpd
# yum Install Httpd-y
5. Launch Apache
# chkconfig httpd on# service httpd start
6. Firewall to open the appropriate Web port
The default is port 80, which is opened via iptables.
7. Testing
Create a new file in the default installation directory/var/www/html/hello.php, add something:
Accessed through a page, such as.
650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "alt=" clip_image002 "src=" Http://s3.51cto.com/wyfs02/M00/6B/EB/wKiom1U56uiQn2OlAAArny6eml8895.jpg "border=" 0 "height="/>
This article is from the SQL Server deep dives blog, so be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1637979
Quickly build lamp environment