maximum upload size 7MB????

maximum upload size 7MB????

Posted by: teamstevo
Posted on: 2006-11-02 06:45:00

Is there anyway to change to this? I am running a forum with a download manager, and the maximum filesize is 7MB. Is there anyway to change this besides creating a php.ini, because I really didn't understand how to execute the scripts to fetch the php.ini file.

Re: maximum upload size 7MB????

Posted by: Raz2133
Posted on: 2006-11-02 06:59:00

In reply to:

Is there anyway to change this besides creating a php.ini, because I really didn't understand how to execute the scripts to fetch the php.ini file.


As far as I am aware, there are only two ways to alter the max filesize. One is to copy the PHP executable and php.ini file across to your home directory and the other is to do a custom compile of PHP. Of these two solutions, the first is by far the easiest.

The wiki article on copying the PHP files and configuring your .htaccess file to use the local install is really quite straight forward and if you follow the directions carefully you should be OK.

Mark

Re: maximum upload size 7MB????

Posted by: teamstevo
Posted on: 2006-11-02 07:24:00

Ok I did everything in the wiki article and now Im getting a 500 internal server error when i try to access my website now.

Re: maximum upload size 7MB????

Posted by: Raz2133
Posted on: 2006-11-02 07:32:00

In reply to:

now Im getting a 500 internal server error when i try to access my website now.


Did you receive any errors while following the instructions?

The 500 error suggests that your .htaccess file is incorrect. The following two lines need to be added to the .htaccess file in the root directory for your domain.

AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi


Be careful that you enter these lines exactly as shown. note especially the position of any spaces in those lines.

Mark

Re: maximum upload size 7MB????

Posted by: teamstevo
Posted on: 2006-11-02 07:54:00

Ok I did it again but it seems I have 2 copies of the php.cgi and the php.ini in my cgi-bin directory. So when i ]upload the .htacess file I get an error.

Re: maximum upload size 7MB????

Posted by: Raz2133
Posted on: 2006-11-02 08:16:00

In reply to:

but it seems I have 2 copies of the php.cgi and the php.ini in my cgi-bin directory.


I don't see how this could be. Following the instructions twice would have simply resulted in the first copies of php.cgi and php.ini being over-written.

Mark

Re: maximum upload size 7MB????

Posted by: ProLoser
Posted on: 2008-11-09 15:42:00

I know this is an old post but I used it with success on one of my domains. However now I'd like to implement it across several domains (all under the same user, different folders). I was wondering If I could just run all the lines of the file again at the bottom of the file in the correct directory but I also know little about unix and webserver commands and am not entirely sure this would work.

Re: maximum upload size 7MB????

Posted by: sXi
Posted on: 2008-11-10 01:26:00

You could copy the cgi-bin directory from the working domain into any other domain and make the relevant changes to the .htaccess file.

Alternatively, you can simply run the PHP.INI installer in each domain.


Tags: ini filefetchscripts