.htaccess upload_max_filesize php_value

This is a discussion on .htaccess upload_max_filesize php_value within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi , I m PHP 5.2.0 / Apache and I can't access php.ini I try to update .htaccess ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-23-2007
cc96ai
 
Posts: n/a
Default .htaccess upload_max_filesize php_value

Hi ,
I m PHP 5.2.0 / Apache
and I can't access php.ini

I try to update .htaccess
and added
php_value upload_max_filesize "25M"
php_value post_max_size "25M"

However it will give me "Internal Server Error"

>From the log file , i can see the error msg


[Mon Jan 22 14:57:57 2007] [alert] [client 127.0.0.1]
C:/work/www/Joomla-1.0.11_eCommerceEdition_VM-1.0.7/.htaccess: Invalid
command 'php_value', perhaps mis-spelled or defined by a module not
included in the server configuration, referer:
http://joomla/administrator/index2.p...section=config

so I searched on web and try again.. and update the .htaccess

<IfModule mod_php5.c>
php_value max_execution_time "60"
php_value upload_max_filesize "25M"
php_value post_max_size "25M"
</IfModule>

No Error msg, but nothing change.

then I searched again ....

updated php code - ini_set()

print "b4 ".ini_get('upload_max_filesize');
ini_set("upload_max_filesize" , "10M");
print "<br/>after ".ini_get('upload_max_filesize');

which I got the same "2M" from the php code

anyone have any idea where should I go ? is this php5 problem ?
or i did something wrong ?

I have following setting in httpd.conf
<Directory />
Options +FollowSymLinks
AllowOverride All
</Directory>

actually I try following configuration in my local machine and ISP,
both didnt work
<IfModule mod_php5.c>
php_value max_execution_time "60"
php_value upload_max_filesize "25M"
php_value post_max_size "25M"
</IfModule>

any idea ? [however mod_rewrite is working fine]

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:07 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0