Jump to content

Debian Lenny + local php.ini = bleh?


Recommended Posts

Hey guys,

 

I got a new server to play with yesterday and decided to install Debian Lenny instead of the usual CentOS.

My soft uses a local php.ini file to change few uploading limits, which worked well with CentOS but not with Debian (both use Apache).

 

upload_max_filesize = 500M
post_max_size = 500M

 

What would be the equivalent of this as a .htaccess, considering it may work; the same syntax doesn't seem to work.

 

THANKS!

Link to comment
Share on other sites

Running PHP as an Apache module

When using PHP as an Apache module, you can also change the configuration settings using directives in Apache configuration files (e.g. httpd.conf) and .htaccess files. You will need "AllowOverride Options" or "AllowOverride All" privileges to do so.

 

You need to add an AllowOverride statement in the httpd.conf that is in effect for the folder where you want to put a .htaccess file that contains php settings.

 

Link to comment
Share on other sites

Thanks for the info but... is it possible to use a local httpd.conf file (if so what would I put'in?): Google seems to say no.

Otherwise I'd simply change the master php.ini file, which is what I wanted to avoid (to keep things local), unless there's an other option.

 

Why would neither php.ini and .htaccess work...?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.