PHP installation_PHP tutorial

WBOY
Release: 2016-07-13 17:45:04
Original
902 people have browsed it

apache
tar xf httpd-2.2.19.tar
cd httpd-2.2.19 ls
Compile: ./configure --prefix=/usr/loacl/apache --sysconfdir=/etc/httpd --enable-ssl --enable-modules=most --enable-mods-shared=most --enable-so
         make
        make install
Get an httpd,
       vi /etc/init.d/httpd apachectl=/usr/local/apache/bin/apachectl
          httpd=/usr/local/apache/bin/httpd
cd /etc/httpd ls
vi /etc/httpd/conf/httpd.conf
Start PATH=$PATH:/usr/local/apache/bin
 
apachectl start
chkconfig --add httpd
cp httpd /etc/init.d/httpd
It may fail to start
vi /etc/httpd/conf/httpd.conf PidFile "/var/run/httpd.pid"
Killall httpd
chkconfig --level 2345 httpd on
php
tar xf php-5.3.6.tar
cd php-5.3.6
Compile./configure --prefix=/usr/local/php5 --sysconfdir=/etc/php --enable-mbstring --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/ usr/local/mysql
Make 
make install
cp php.ini-production /etc/php/php.ini
cd /etc/php
vi php.ini
cd php-5.3.6
cp php.ini-production /usr/loacl/ph5/lib/php.ini
Not working with apache at this time
vi /etc/httpd/conf/httpd.conf AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
index.php
cannot be recognized at this time Adddirectory index.php
                                                                        service httpd start
cd /usr/local/apache/htdocs
$link=mysql_connect('127.0.0.1','root','');
if ($link)
echo "sucess"
else
echo "failure"
?>
This article is from the “linux” blog

http://www.bkjia.com/PHPjc/478691.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478691.htmlTechArticleapache tar xf httpd-2.2.19.tar cd httpd-2.2.19 ls Compile: ./configure -- prefix=/usr/loacl/apache --sysconfdir=/etc/httpd --enable-ssl --enable-modules=most --enable-mods-shared=m...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!