Install PHP environment and reverse proxy in Ubuntu 14.04

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.