Hi,
- Ubuntu:
- Install:
- sudo apt-get install apache2
- sudo apt-get install libapache2-mod-php5
- Enable rewrite module:
- sudo ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enable/rewrite.load
- Reinstall:
- sudo aptitude: search apache2 and remove all package
- sudo dpkg --get-selections | grep apache
- sudo apt-get remove --purge apache2 apache2-mpm-worker
- apache2-threaded-dev apache2-utils apache2.2-common
- sudo apt-get install apache2 libapache2-mod-python libapache2-mod-wsgi \ libapache2-mod-python-doc
- Tricks:
- Could not reliably determine the server's fully qualified domain name:
- Add this line in to file "sudo vim /etc/apache2/httpd.conf"
- ServerName localhost
- Restart apache
- Change request by client:
- sudo vim /etc/apache2/apache2.conf
- MaxClients your-request-number
- Piped logging into PHP file:
- CustomLog "| /usr/bin/php /var/www/log.php 2> /home/www-data/error" combined
- Centos:
- Install:
- yum install php
- yum install httpd
- Reinstall:
- Tricks:
- Could not reliably determine the server's fully quilified domain name, using 127.0.0.1 ServerName
- Add this line in to file "sudo vim /etc/httpd/conf/httpd.conf"
- ServerName 127.0.0.1
- Restart apache
- Adding virtual host:
- You must store data from /var/www
Good luck!
No comments:
Post a Comment