Version Mysql+apache+phpinlux Installation Guide Write good tired to say. _php Tutorials

Source: Internet
Author: User
Tags apache download mysql download mysql update php download
Just saw someone paste win under the installation steps just today the company website of the new server hand. Spent the morning installing Mysql+php+apache. The old version of the new edition is still somewhat different. Now take the steps. Installation steps: 1.mysql download mysql for linux rpm package Http://www.mysql.com/downloads/down on the following page ... 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 #安装mysql server RPM-IVH mysql-client-3 .23.52-1.i386.rpm #安装mysql client/usr/mysql/safe_mysqld & #启动mysql server MySQL #运行mysql client and open the remote access rights of the root user. For debugging use MySQL update user set host =% where user = root and host <> localhost; Flush privileges; Quit this MySQL installation completed 2.apache download Apache for Linux source package http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz to/home/in the following page 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 to support DSO mode 3.php download PHP for on the following page 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 with DSO installation PHP to/usr/local/php settings profile directory for/usr/local/lib enable Mysql,xml support 4. Configuration vi/usr/local/apache/conf/httpd.conf do the following configuration for Apache #将ServerAdmin q3boy@younet.com Line to your email address #DocumentRoot "/home/ Httpd/html/"Here is the HTML file home directory # Ditto #Options followsymlinks multiviews Remove the "Indexes" for safety reasons # directoryindex default.php default.phtml default.php3 default.html default.htm # #设置apache的默认文件名次序 #AddType application/x-httpd-php. php phtml php3. Inc #AddType Application/x-httpd-php-source. Phps #设置php文件后缀 Save the Vi/usr/local/lib/php.ini #register-golbals = on disk to Exit 5. Start the service/usr/local/apache/bin/apachectl start 6. Notes AP Ache the default maximum number of processes under Linux is 256, no matter how the httpd.conf is modified, it cannot exceed this limit. If you want to increase this limit, edit/home/tmp/apache/src/include/httpd.h before compiling Apache, and change the # define Hard_server_limit 2,561 line to # define Hard_ Server_limit 2048 before compiling Apache, Apache 1.3.26 in Mod_so seems to be not the default module. Compile time to add--enable-module=so, my first compilation did not add this parameter, the result of PHP compilation can not be found Apxs PHP 4.2.3 The default profile path seems to change. Compile with--with-config-file-path=/usr/local/lib parameters, I compiled the first time php.ini put n places are useless. Last Resort This parameter can only be added. P.S. does not guarantee that the steps described herein apply to other versions

http://www.bkjia.com/PHPjc/532185.html www.bkjia.com true http://www.bkjia.com/PHPjc/532185.html techarticle just saw someone paste win under the installation steps just today the company website of the new server hand. Spent the morning installing Mysql+php+apache. The old version of the new edition is still somewhat different. Now take the step ...

  • 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.