How to install php3 # cd/usr/src on a UNIX system
# Tar xvzf apache_1.3.6.tar.gz (generate the 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 (the configuration supports MySQL, is used as the Apache function module, and the tracking variable is valid)
# Make; make install
In the configure parameter above, specify to enable PHP to support MySQL and provide the installation path of MySQL.
Then, edit the Apache configuration file:
# Cd/usr/local/apache/conf
# Vi httpd. conf
Locate "AddType application/x-httpd-php3. php3" and remove the # comment mark before the row.
Of course, you can also add a line of AddType application/x-httpd-php3. asp so that it is easier to edit with FrontPage.
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 PHP3, for example:
Upload_max_filesize = 2097152; 2 Meg default limit on file uploads
To limit the maximum size of uploaded files to 2 MB.
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.