Just saw someone sticked Win installation steps just now today's new server to hand. I spent a morning to install MySQL PHP Apache. The new version of the old version is still different. Now press the steps to install the steps: 1.Mysql downloads mysql's for Linux rpm package http://www.mysql.com/downloads/down...3.52-1.i386.rpm http: // www. mysql.com/downloads/down...3.52-1.i386.rpm save to / home / TMP directory command list: CD / home / tmp rpm -ivh mysql-3.23.52-1.i386.rpm # Install MySQL Server RPM -IVH MySQL-Client-3.23.52-1.i386.rpm # Install MySQL Client / USR / MYSQL / SAFE_MYSQLD & # Start MySQL Server MySQL # Run the mysql client and open the ROOT user's remote access.
In order to debug USE MySQL Update User Set Host = '%' Where User = 'root' and host <> 'localhost'; flush privileges; quit to this mysql installation completed 2.Apache download Apache's For Linux source package http: //www.apache.org/dist/httpd/apache_1.3.26.tar.gz Save to / Home / TMP Directory Command List: CD / HOME / TMP TAR -ZXVF Apache_1.3.26.tar.gz MV Apache_1.3.26.tar .gz apache cd apache ./configure --prefix = / usr / local / apache --enable-module = so make make install Install Apache to / usr / local / apache and configure Apache Support DSO mode 3.php is downloaded in the following page PHP's for Linux source package http://www.php.net/get_download.php?df=php-4.2.3.tar.gz Save to / Home / TMP Directory Command List: CD / Home / Tmp Tar -zxvf PHP-4.2.3.tar.gz MV PHP-4.2.3.Tar.gz PHP CD PHP ./configure --prefix = / usr / local / php --with-apxs = / usr / local / apache / bin / APXS --WITH-Config-file-path = / usr / local / lib --enable-track-vars --with-xml --with-mysql make make install cp php.ini-dist / usr / local / lib / PHP.INI Install PHP to / USR / local / PHP settings in DSO to / usr / local / php settings configuration file directory to / usr / local / lib open mysql, XML support 4. Configure vi /usr/local/apache/conf/httpd.conf to Apache The following configuration # 将 ServerAdmin Q3boy @ you NET.COM is changed to your email address #documentroot "/ home / httpd / html /" here for html file main directory # 同 # #options Followsymlinks multiviews to safely, remove "indexes" # DirectoryIndex default.php default. PHTML Default.php3 Default.html Default.htm # # Set Apache Default File Name #addType Application / X-httpd-php .php .phtml .php3 .inc #addType Application / X-httpd-php-source .phps # Set the PHP file suffix store exits vi /usr/local/lib/php.ini # register-golbals = ON storage exit 5. Startup service / usr / local / apache / bin / apachectl start 6. Remarks Apache's defaults under Linux The number of processes is 256, no matter how httpd.conf cannot exceed this limit.