B0b Posted January 18, 2010 Share Posted January 18, 2010 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! Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/ Share on other sites More sharing options...
oni-kun Posted January 18, 2010 Share Posted January 18, 2010 The following would be in .htaccess format: php_value upload_max_filesize 500M php_value post_max_size 500M For your further reference. Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-997499 Share on other sites More sharing options...
B0b Posted January 18, 2010 Author Share Posted January 18, 2010 Ay ay ay, neither this will change php.ini local values... strange... Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-997526 Share on other sites More sharing options...
PFMaBiSmAd Posted January 18, 2010 Share Posted January 18, 2010 To start with, is php running as an Apache Module or as a CGI application? Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-997527 Share on other sites More sharing options...
B0b Posted January 18, 2010 Author Share Posted January 18, 2010 Hum, looks like it's as an Apache Module! Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-997541 Share on other sites More sharing options...
PFMaBiSmAd Posted January 18, 2010 Share Posted January 18, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-997544 Share on other sites More sharing options...
B0b Posted January 18, 2010 Author Share Posted January 18, 2010 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...? Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-997550 Share on other sites More sharing options...
B0b Posted January 18, 2010 Author Share Posted January 18, 2010 Ay ay ay, guys, even editing the master php.ini file won't change the values... what's going on? http://95.130.9.74/phpinfo.php Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-997593 Share on other sites More sharing options...
jtgraphic Posted January 18, 2010 Share Posted January 18, 2010 Are you rebooting apache between modifications? Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-997642 Share on other sites More sharing options...
B0b Posted January 19, 2010 Author Share Posted January 19, 2010 Are you rebooting apache between modifications? Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-997761 Share on other sites More sharing options...
jtgraphic Posted January 19, 2010 Share Posted January 19, 2010 Glad I could help Quote Link to comment https://forums.phpfreaks.com/topic/188921-debian-lenny-local-phpini-bleh/#findComment-998247 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.