unix file system how to install php3 under UNIX system

WBOY
Release: 2016-07-29 08:33:55
Original
944 people have browsed it

# 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 installation directory of Apache as /usr/local/apache)
# cd php-3.0.8
# ./configure --with-mysql =/usr/local/mysql
--with-apache=../apache_1.3.6
--enable-track-vars (configured to support MySQL, as an Apache function module, tracking variables are valid)
# make; make install
in In the configure parameters above, specify to enable PHP to support MySQL and give the installation path of MySQL.
Then, edit the Apache configuration file:
# cd /usr/local/apache/conf
# vi httpd.conf
Find "AddType application/x-httpd-php3 .php3" and remove the # comment mark in front of the line.
Of course, you can also add a line of AddType application/x-httpd-php3 .asp, which will be more convenient 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 This configuration file can be modified to customize the working details of PHP3, for example:
upload_max_filesize = 2097152 ; 2 Meg default limit on file uploads
To limit the maximum amount of uploaded file data to 2 megabytes.

The above introduces the unix file system and how to install php3 under the UNIX system, including the content of the unix file system. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template