UNIX File system How to install PhP3 under UNIX system

Source: Internet
Author: User
Tags comment tag
# CD/USR/SRC
# tar Xvzf apache_1.3.6.tar.gz (Generate apache_1.3.6 directory)
# tar Xvzf php-3.0.8.tar.gz (Generate php-3.0.8 directory)
# CD apache_1.3.6
#./configure--prefix=/usr/local/apache (Set the Apache installation directory to/usr/local/apache)
# CD php-3.0.8
#./configure--with-mysql=/usr/local/mysql \
--with-apache=. /apache_1.3.6 \
--enable-track-vars (configuration support MySQL, as Apache function module, tracking variable valid)
# make; Make install
In the Configure parameter above, specify that PHP support MySQL and give MySQL the installation path.
Then, edit the Apache configuration file:
# cd/usr/local/apache/conf
# VI httpd.conf
Locate the "AddType application/x-httpd-php3. PhP3" and remove the # comment tag that precedes the line.
Of course, you can add a line AddType application/x-httpd-php3. asp this is a little easier to edit with FrontPage.
Then copy the php.ini file to the/usr/local/lib/directory:
# CD: /php-3.0.8
# CP Php3.ini-dist/usr/local/lib/php3.ini
You can modify the configuration file to customize the work details of the PHP3, for example:
Upload_max_filesize = 2097152; 2 Meg default limit on file uploads
The maximum value to limit the amount of uploaded file data is 2 megabytes.

The above describes how UNIX file system installs PhP3 under UNIX system, including UNIX file system content, hope to be interested in PHP tutorial friends helpful.

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