Mysql + apache + phpinlux installation guide ..

Source: Internet
Author: User
Tags mysql update php download
I just saw someone sticking to Windows to install a new server on the company's website today. It took me one morning to install mysql + php + apache. The old version of the new version is still somewhat different. Now post the steps to install steps: 1. mysql on the following page to download mysql forlinuxrpm package http://www.mysql.SyntaxHig

I just saw someone sticking to Windows to install a new server on the company's website today. It took me one morning to install mysql + php + apache. The old version of the new version is still somewhat different. Now post the installation steps below: 1. mysql downloads the mysql for linux rpm package on the following page http://www.mysql.com/downloads/down...3.52-1.i386.rpm http://www.mysql.com/downloads/down...3.52-1.i386.rpm Save to the/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 mysql client, the root user's remote access permission is also enabled. So that you can debug use mysql update user set host = % where user = root and host <> localhost; flush privileges; quit is now mysql installation complete 2. apache downloads the source code package of apache for linux on the following page. http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz Save the command list to the/home/tmp Directory: 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 install apache to/usr/local/apache and configure apache to support dso 3.php download on the following page php for linux source code 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 install cp php. ini-dist/usr/local/lib/php. ini install php in dso mode to/usr/local/php and set the configuration file directory to/usr/local/lib to enable mysql. xml supports 4. configure vi/usr/local/apache/conf/httpd. conf configure apache as FOLLOWS # Change the ServerAdmin q3boy@younet.com line to your mailbox address # DocumentRoot "/home/httpd/html/" Here is the html file home directory # Same as above # Options FollowSymLinks MultiViews for security reasons, remove "Indexes "# # DirectoryIndex default. php default. phtml default. php3 default.html default.htm # # Set the default file name order of apache # AddType application/x-httpd-php. php. phtml. php3. inc # AddType application/x-httpd-php-source. phps # set the php file suffix to save the disk and exit vi/usr/local/lib/php. ini # register-golbals = On save disk exit 5. start Service/usr/local/apache/bin/apachectl start 6. note: The default maximum number of processes in apache linux is 256. conf cannot exceed this limit. To increase this limit, edit/home/tmp/apache/src/include/httpd before compiling apache. h. change the line # define HARD_SERVER_LIMIT 256 to # define HARD_SERVER_LIMIT 2048 and then compile apache. mod_so in apache 1.3.26 does not seem to be the default module. -- Enable-module = so must be added during compilation. I did not add this parameter during the first compilation. as a result, the default configuration file path in apxs php 4.2.3 cannot be found during php compilation. The -- with-config-file-path =/usr/local/lib parameter must be added during compilation. it is useless after I compile php. ini for the first time. Last Resort. You can only add this parameter. P.s. it is not guaranteed that the steps described in this article apply to other versions

Related Article

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.