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