linux上安装php
2020-12-13 03:20
标签:class c tar http a 文件 步骤一:安装 #tar -zxvf php-5.2.17.tar.gz #cd php-5.2.17 #./configure --prefix=/opt/php --with-mysql=/opt/mysql \ >--with-apxs2=/opt/httpd/bin/apxs //通俗易懂,不解释 #make #make install #make clean #make distclean 步骤二:Apache中加载php模块 #cp php.ini-dist /usr/local/lib/php.ini 查看是否有下面这句话,没有则添加 找到“#AddType application/x-gzip .gz .tgz”添加 步骤三:建立php测试文件 # vi /opt/httpd/htdocs/test.php phpinfo(); ?> :wq 重启apache [root@hadoop1 ~]# /usr/local/apache/bin/apachectl
stop linux上安装php,搜素材,soscw.com linux上安装php 标签:class c tar http a 文件 原文地址:http://www.cnblogs.com/lovefendi/p/3725425.html
#vim httpd.conf
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
[root@hadoop1 ~]# /usr/local/apache/bin/apachectl
start
上一篇:WebSocket 相关知识