-
Whether domestic or foreign, virtual hosts will have various restrictions, and they also have restrictions on the upload of attachments. Friends who have used the IXwebhosting space know that they allow the upload size of attachments to be 2MB by default. Sometimes we need to upload a large file and it won't work. So can we modify it? Of course it is possible.
The first method is very simple, just contact their customer service and ask them to help you make changes.
The second is that we change it ourselves. Below we will teach you how to change it yourself.
1. To make the modification to php.ini take effect, upload a file like .htaccess in the domain name directory. The file rules are attached as follows:
AddHandler phpini-cgi .php .htm
Action phpini-cgi /cgi-bin/php5-custom-ini.cgi
2. In the cgi-bin directory, upload two files, php.ini and php5-custom-ini.cgi. The php-custom-ini.cgi file is attached as follows:
#!/bin/sh
export PHP_FCGI_CHILDREN=3
exec /hsphere/shared/php5/bin/php-cgi -c /hsphere/local/home/c278888/yourdomain.com/cgi-bin/php.ini
c278888 and yourdomain.com in the rules can be modified according to your actual situation, and php.ini can be modified or added as needed.
3. Modify the permissions of php5-custom-ini.cgi to 755, so that the settings of php.ini will take effect.
4. Modify the options in php.ini, open php.ini, find upload_max_filesize=2M, we change it to upload_max_filesize = 8M, after saving, you can successfully change it to 8M.
This concludes the tutorial on changing the size of uploaded attachments in ixwebhosting. It is actually very simple. If you feel it is more complicated, you can contact ixwebhosting’s customer service and ask them to help modify and limit their Chinese site http://cn.ixwebhosting.com There is contact information for Chinese customer service on the website, and it is very convenient and quick to ask them to modify it directly.
This article was originally created by www.ixwebhosting.im , welcome to reprint and share (webmaster communication group 63585373)
Thanks for the contribution of ixwebhosting Chinese Guide