Mam problem z ustawieniem na mojej stronie postawionej na Symfony 2.3 maksymalnego rozmiaru uploadowanych plików. Po próbie wysłania pliku którego rozmiar przekracza ten standardowo ustawiony (około 3MB), Apache zgłasza błąd 500:
Kod
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [EMAIL] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [EMAIL] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Chciałbym zwiększyć limity do upload_max_filesize = 25M i post_max_size = 26M. Ustawienie ich w pliku php.ini nie daje rezultatów, błąd wyświetla się nadal. Chciałem je ustawić także w .htaccess, ale po wpisaniu:
Kod
php_value upload_max_filesize 40M
php_value post_max_size 42M
php_value post_max_size 42M
w którymkolwiek miejscu w .htaccess (na początku pliku też nie działa), wyświetla się od razu po załadowaniu strony błąd 500 mówiący o nieprawidłowej konfiguracji.
Moje pliki:
php.ini
short_open_tag = off magic_quotes_gpc = off upload_max_filesize = 25M post_max_size = 26M
.htaccess
<Files ~ \.(php|php5|php6|phps|inc|shtml)> SetHandler fcgid-script FcgidWrapper "/fcgi/admin/public_html/fcgid-5.4.sh" .php Options +ExecCGI allow from all </Files> RewriteEngine On RewriteBase / RewriteRule ^$ web/$1 [QSA,L] RewriteRule ^(.*)$ web/$1 [QSA,L]
Dodam że te pliki znajdują sie w katalogu głównym symfony2 (tzn. tam gdzie są foldery app, bin, src, vendor, web)
Proszę o pomoc, to dosyć ważne!
