Common Methods for enabling the php. ini function for VM configuration (all hosts that support SSH)

Source: Internet
Author: User

This article uses Putty to modify the dreamhost virtual host as an example:
1) log on to your website through SSH (search for other teaching materials on this site), find the directory named after your website name, such as www.usaber.com (total website directory ), run the mkdir command to create a sub-directory cgi-bin (you can also create it using FTP );

2) copy the default PHP. cgi and PHP. ini files to the cgi-bin directory, which can be copied from the system directory of dreamhost, for example:
CP/DH/cgi-system/php5.cgi www.usaber.com/cgi-bin/php.cgi
CP/etc/PhP5/cgi/PHP. ini www.usaber.com/cgi-bin/php.ini
The above is the example of PhP5. If you use PhP4, you need to start from/DH/cgi-system/PHP. CGI and/etc/PHP/cgi/PHP. INI obtains the default PHP of dreamhost. CGI and PHP. INI file;

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.