Ubuntuapachefastcgi virtual host installation

Source: Internet
Author: User
Tags fully qualified domain name
Ubuntuapachefastcgi virtual host installation 1cp/etc/apache2/sites-available/default/etc/apache2/sites-available/www.domain.com here www.domain.com is the virtual host configuration file (of course, the file name can be) 2. Edit this configuration... ubuntu apache fastcgi virtual host installation 1 cp/etc/apache2/sites-available/default/etc/apache2/sites-available/www.domain.com here www.domain.com is the configuration file of the virtual host (of course, the file name can be arbitrary) 2. edit the configuration file in Directly add ServerName www.domain.com to indicate that the domain name of the VM is www.domain.com. delete this line at the same time: (The author uses the fastcgi mode. if this mode is not used, this operation is not required) fastCgiExternalServer/usr/lib/cgi-bin/php5-fcgi-host 127.0.0.1: 9000-idle-timeout 120-pass-header Authorization otherwise an error will be reported when you restart apache, the content is: FastCgiExternalServer: redefinition of previusly defined class "/usr/lib/cgi-bin/php5-fcgi" Action 'configtest' failed. 3. enable this configuration file a2ensite www.domain.com 4 and restart apache service apache2 reload. if the restart fails, the following message is displayed: apache2: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName, which can be modified by/etc/apache2/httpd. conf file (usually this file is empty), add the following sentence: ServerName localhost, restart and then OK
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.