Install PHP environment and reverse proxy in Ubuntu 14.04
Install Apache on the PHP environment and reverse proxy in Ubuntu 14.04
$ sudo apt-get install apache2
Install php
$ sudo apt-get install php5 libapache2-mod-php5
Install mysql
$ sudo apt-get install mysql-server
Reverse Proxy
Minimum tested configuration ....
- Enable the mod_proxy module of apache
$ sudo a2enmod mod_proxy
- Modify the configuration file/etc/apache2/sites-enabled/000-default.conf (this file is the default port 80 configuration file, or you can add it to the virtual host configuration file you want to add ), add the following code
ProxyPassReverse / http://192.168.0.3:8006/ProxyPass / http://192.168.0.3:8006/
As shown below
Restart the apache server.
$ sudo service apache2 restart
If it fails, try the following operations:
* Load apache again
$ sudo service apache2 reload
- Add the following two statements at the beginning of proxy configuration:
ProxyPreserveHost OnProxyRequests On
- Add the external access permission of the proxy.
<Proxy *> Order deny,allow Allow from all</Proxy>
Remember to restart every modification.Apache
PHP 7, you deserve it
Experience PHP 7.0 on CentOS 7.x/Fedora 21
Install LNMP in CentOS 6.3 (PHP 5.4, MyySQL5.6)
Nginx startup failure occurs during LNMP deployment.
Ubuntu install Nginx php5-fpm MySQL (LNMP environment setup)
Detailed php hd scanning PDF + CD source code + full set of teaching videos
Configure the php lnmp development environment in CentOS 6
PHP details: click here
PHP: click here