Jump to content

.htaccess / override php.ini settings


bbxrider

Recommended Posts

i'm using apache 2.2.4 with win xp pro

hosting multiple domains with virtual host

one domain is joomla with an extension docman to manage file uploading, i have configured the docman app to accept very large files

i have tried to override the default php.ini upload_max_filesize for just the one domain

by putting an .htaccess in the root dir with 'php_value upload_max_filesize 20000m' (yes looking to upload 20gb files for a special app) the .htaccess didn't work

i also tried putting a modified php.ini the root dir, that also didn't work

i have tested successfully with modifying the standard php.ini so i know everything else is working once the php limit is increased

so i'm not sure if i had misread how htaccess or php.ini in the root dir works with apache for modifying php. and i'm not sure either if this more a php question than apache?

 

but if any body can help with this please do

bob

Link to comment
Share on other sites

thanks for the reply

 

apache module

 

my .conf:

#start php5 modifications

LoadModule php5_module "C:/php/php5apache2_2.dll"

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

PHPIniDir "C:/php"

#end php5 modifications

 

 

 

 

 

Link to comment
Share on other sites

ok thanks again

i have this directive which looks like it cover all dirs,

<Directory />

    Options FollowSymLinks

    AllowOverride None

    Order deny,allow

    Deny from all

    Satisfy all

</Directory>

 

which actually i'd like to keep except for the domains i specifically want to override, can i put in the allowOverride for just specific dirs, even perhaps below the root, so only the scripts there are affected?

 

and does this mean that if using the cgi-bin option, then htaccess is not an option? and if not htaccess is there an alternate method to achieve the same thing for cgi-bin

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.