您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php的安装_PHP教程

2025/1/15 9:15:31发布14次查看
apache
        tar xf httpd-2.2.19.tar
        cd   httpd-2.2.19  ls
   编译: ./configure --prefix=/usr/loacl/apache  --sysconfdir=/etc/httpd --enable-ssl --enable-modules=most --enable-mods-shared=most  --enable-so
        make
        make install
       弄一个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
     启动   path=$path:/usr/local/apache/bin
apachectl start
      chkconfig --add httpd
  cp  httpd   /etc/init.d/httpd
  可能会出现不能启动
   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
   编译 ./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
此时还不能和apache一起工作
 vi /etc/httpd/conf/httpd.conf  addtype application/x-httpd-php .php    addtype application/x-httpd-php-source .phps
此时还无法识别index.php
     添加directory index.php
service httpd start
cd /usr/local/apache/htdocs
本文出自 “linux” 博客
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 编译: ./configure --prefix=/usr/loacl/apache --sysconfdir=/etc/httpd --enable-ssl --enable-modules=most --enable-mods-shared=m...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product