6/15/2012

Installing Apache+PHP on Redhat


A good habit is to do 'make clean' everytime you configure, or sometimes you will get something like symbol undefined error during compile time

Installing apache and php onto server:
http://unclean.org/howto/apache-php-mysql.html
http://www.php.net/manual/en/install.unix.apache2.php

(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
The description is indicate that i do not have enough privileged to bind the port for Apache http server. In Unix / Linux, only some privileged users are allow to bind the port between 1 to 1024. Apache http server is using port 80 as default.
Edit the config file to change the port Apache uses to a number greater than 1024.

When you successfully installed it should show the 'It Words' on your Server.
And remember to add the following to your conf/httpd.conf file: (or if you use 4, 3, change it to php4,3, etc)

 LoadModule php5_module        modules/libphp5.so
 AddType application/x-httpd-php .php .phtml     
 AddType application/x-httpd-php-source .phps

No comments:

Post a Comment