Linux+php+apache+oracle Environment set up CentOS under the source code compilation and installation of PHP

Source: Internet
Author: User
Tags phpinfo
You will need to install the following installation packages, which can be found in the CD-ROM data source. Yum Installation

Yum install perl* freetype libpng* libxm2 libxm2-devel Curl Curl-devel libjpeg*

Manual Download Installation Jpegsrc.v8c.tar libmcrypt-2.5.8.tar.gz

Installing JPEGSRC

# TAR-XVZF jpegsrc.v8c.tar# cd jpeg-8c#./configure--prefix=/usr/local/jpeg# make && make install

Installing Libmcrypt

# TAR-XVZF libmcrypt-2.5.8.tar.gz# cd libmcrypt-2.5.8#./configure--prefix-/usr/local/libmcrypt# Make && Makeinstall

Install PHP

# TAR-XVZF php-5.5.10.tar.gz# cd php-5.5.10#./configure--prefix=/usr/local/php-with-apxs2=/usr/local/httpd/bin/ Apxs--with-curl--with-mcrypt--with-mbstring# make && make install

Configure Apache to support PHP

Modify the/usr/local/apache/conf/httpd.conf file

After the LoadModule entry, add:

LoadModule Php5_module modules/libphp5.so

Join in between <ifmodule mime_module></ifmodule>

AddType application/x-httpd-php. php. Phtmladdtype application/x-httpd-php-source. Phpsaddhandler application/ x-httpd-php. php

Restart Apache Service

Execute Command # apachectl restart

Test PHP

Writing probe files under the site root directory

# VI phpinfo.php

Input:

<?phpphpinfo ();? >

Browser address bar Input http://192.168.23.131/phpinfo.php

Displays the following information: The PHP installation was successful.

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.