# 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 as/usr/local/apache)
# CD php-3.0.8
#./configure--with-mysql=/usr/local/mysql \
--with-apache=.. /apache_1.3.6 \
--enable-track-vars (configuration supports MySQL, as Apache function module, tracking variable valid)
# make; Make install
In the above configure parameter, specify that PHP support MySQL and give the MySQL installation path.
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 at the front of the line.
Of course, you can add a line AddType application/x-httpd-php3. asp to use FrontPage to edit is easier.
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 profile to customize PHP3 's work details, such as:
Upload_max_filesize = 2097152; 2 Meg default limit on file uploads
To limit the amount of uploaded file data to the maximum value of 2 megabytes.
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.