Jump to content

Need some help with .htaccess file/PHP.INI


gamerxgirl

Recommended Posts

Last night I was able to configure a custom PHP.ini through PuTTY to increase the max upload size (set by my webhost at which is 7M) to 250M, it looked like I succeeded and everything went fine and I checked with phpinfo and it was set correctly. Considering I've never touched PuTTY or linux before I was pretty proud of myself to have gotten that far (with google's help of course).

 

But then I found that the required .htaccess file in my main web directory is causing me to not be able to login to my forums and I receive an error message saying that I must enter my username (which I did, and I also tried clearing my cookies). So I renamed .htaccess to disable it, and then everything is fine, but then my max upload size is back to 7M :(

 

This is the tutorial I used to create my custom php.ini and php.cgi. And the following is the contents of my .htaccess that is giving me problems.

 

Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi

 

I also then remembered that for that domain I had FastCGI enabled, so I disabled that and still had problems.

 

If anyone can give suggestions on what I should do please let me know :-\ I'd love to be able to fix this.

Link to comment
https://forums.phpfreaks.com/topic/98027-need-some-help-with-htaccess-filephpini/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.