Linux下apache php+phppgadmin+postgresql安装配置
操作系统:CentOS 安装包:httpd(首选yum), php(包括php以及php-pgsql,php-mbstring,首选yum), phppgadmin , postgresql 。 一、 配置php项目部署环境 1. 关闭Centos默认的selinux: vi /etc/selinux/config SELINUX=disabled 重启计算机: /sbin/init 6 2. 安装apache(手动安装文件,如:httpd-2.4.4.tar.gz或yum安装均可) [root@localhost conf]#yum install httpd 默认会安装到/etc/httd/下面 [root@localhost conf]# which httpd /usr/sbin/httpd 安装完毕后,可以先启动服务service httpd start, 然后到浏览器输入地址: http://host:80 ,正常会出现apache test page的网页。 3. 安装php(手动或者yum安装) [root@localhost conf]#yum install php [root@localhost conf]# which php /usr/bin/php [root@localhost conf]#yum install php-pgsql [root