From getting started to proficient in the LAMP test of Dark Horse Korean prefix linux

Source: Internet
Author: User

From entry to entry-level proficiency in the LAMP integrated testing of Dark Horse Korean prefix linux: quick setup of LAMPApache virtual directory Apache Virtual Host authorization and authentication of MysqL master-slave server configuration Rsync settings assuming LAMP mirror site experimental site pressure test acquisition and installation of LAMP in RPM mode install LAMP Linux + Apache + mount yum on a Mysql + Php disc-suitable for the Environment configuration file Apache ---------/etc/httpd/conf/httpd with good network speed. confPHP -----------/etc/php. iniMysql ----------/etc/my. cnf # uname-a # df-h --- check whether the capacity of/dev/shm corresponding to tmpfs has been used 0, and the optical drive is not mounted. # Mount/dev/cdrom/mnt ----------/dev/hdc # df # cd/mnt # ls # rpm-qa | grep mysql # rpm-qa | grep apache # rpm-qa | grep http # ls http * # rpm-ivh install the master file # rpm-ivh-php-master file # service httpd start test: enter the IP address http: // 192.168.1.101 # vi/var/www/html/test in the address bar. php # <? Phpphpinfo ();?> # Esc #: wq test: http: // 192.168.1.101/test. php found no mysql # ls php * Find PHP-Mysql -- install this middleware # rpm-ivh -.... # Install the corresponding package according to the dependency # service httpd restart start mysql # servicemysqld start # mysql-u root-p # show databases; # \ q # ntsysv # chkconfig httpd on the configuration file Apache ----/etc/httpd/conf/httpd has been set up in the LAMP environment. confPHP -----/etc/php. iniMysql ---/etc/my. cnf # vi/etc/httpd/conf/httpd. conf # vi/etc/php. ini # vi/etc/my. cnf Apache configuration file prompt information global variable configuration master server configuration virtual host Apache virtual directory a little easier to access easy mobile site directory increased disk space security good # mkdir-p/data/web # mkdir-p/data/web/test01 # mkdir-p/data/web/test02 # vi/etc/httpd/conf/httpd. conf # G # Include vhost/vhost. conf #: wq # cd/etc/httpd # pwd # ls # mkdir vhost # vi/vhost. confalias <...> # service httpd restart

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.