Software Development, Linux, and Windows

Notes on Software Development, Linux, and Windows

PHP

Allow Apache/PHP on CentOS to connect to a remote database

The issue for me was that by defualt SELinux was preventing this access from happening. Perform the following steps on the machine running Apache. Login or swith user to root: su – Enter the following command: setsebool -P httpd_can_network_connect_db=1 NOTE: When I ran this command on my system which is a 2.8 GHz Pentium 4 [...]

Tags: , , , ,

Posted in Apache, CentOS, Linux, MySQL, PHP | Comments Off

Install Apache and PHP on CentOS

Follow these steps to install Apache and PHP on CentOS. Install Apache and PHP components with PHP support for MySQL: yum install httpd php php-common php-mysql Start Apache: service httpd start Configure Apache to start at system startup: chkconfig httpd on

Tags: , , , ,

Posted in Apache, CentOS, Linux, MySQL, PHP | Comments Off