tati-2000
Захожу иногда

Репутация: +0/-0
Offline
Сообщений: 24
|
 |
« : 31.07.2011, 21:51:13 » |
|
Хостер написал увеличить лимит памяти через .htaccess. . Не могу понять куда вписать: php_value memory_limit 32M и ставить # или нет? вот мой .htaccess : ##
##################################################### # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE # # The line just below this section: 'Options +FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows changing it in # your .htaccess file. If using it causes your server to error out, comment it out (add # to # beginning of line), reload your site in your browser and test your SEF url's. If they work, # it has been set by your server administrator and you do not need it set here. # #####################################################
## Can be commented out if causes errors, see notes above. Options +FollowSymLinks
# # mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits ## If you experience problems on your site block out the operations listed below ## This attempts to block the most common type of exploit `attempts` to Joomla! # ## Deny access to extension XML files (uncomment out to activate) #<Files ~ "\.xml$"> #Order allow,deny #Deny from all #Satisfy all #</Files> ## End of deny access to extension XML files # Block out any script trying to set a mosConfig value through the URL RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode data within the URL RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) # Return 403 Forbidden header and show the content of the root homepage RewriteRule .* index.php [F] # ########## End - Rewrite rules to block out some common exploits
########## Begin - Custom redirects # # If you need to redirect some pages, or set a canonical non-www to # www redirect (or vice versa), place that code here. Ensure those # redirects use the correct RewriteRule syntax and the [R=301,L] flags. # ########## End - Custom redirects
# Uncomment following line if your webserver's URL # is not directly related to physical file paths. # Update Your Joomla! Directory (just / for root)
# RewriteBase /
########## Begin - Joomla! core SEF Section # RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # # If the requested path and file is not /index.php and the request # has not already been internally rewritten to the index.php script RewriteCond %{REQUEST_URI} !^/index\.php # and the request is for root, or for an extensionless URL, or the # requested URL ends with one of the listed extensions RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC] # and the requested path and file doesn't directly match a physical file RewriteCond %{REQUEST_FILENAME} !-f # and the requested path and file doesn't directly match a physical folder RewriteCond %{REQUEST_FILENAME} !-d # internally rewrite the request to the index.php script RewriteRule .* index.php [L] # ########## End - Joomla! core SEF Section
|
|
|
|
|
Записан
|
|
|
|
|
ChaosHead
|
 |
« Ответ #1 : 31.07.2011, 22:36:18 » |
|
В конец, решетку не ставить Так вы закомментируете строку.
|
|
|
|
|
Записан
|
|
|
|
tati-2000
Захожу иногда

Репутация: +0/-0
Offline
Сообщений: 24
|
 |
« Ответ #2 : 31.07.2011, 23:18:39 » |
|
Спасибо большое
|
|
|
|
|
Записан
|
|
|
|
|
Mihanja80
|
 |
« Ответ #3 : 31.07.2011, 23:22:22 » |
|
уж лучше сразу напишите php_value memory_limit 128M 
|
|
|
|
|
Записан
|
|
|
|
tati-2000
Захожу иногда

Репутация: +0/-0
Offline
Сообщений: 24
|
 |
« Ответ #4 : 01.08.2011, 00:01:45 » |
|
уж лучше сразу напишите php_value memory_limit 128M  а это не будет совсем большой наглостью?
|
|
|
|
|
Записан
|
|
|
|
|
Mihanja80
|
 |
« Ответ #5 : 01.08.2011, 00:06:37 » |
|
не, это среднестатистическая норма...
Озвучьте причину, по которой рекомендовали увеличить память?
|
|
|
|
|
Записан
|
|
|
|
tati-2000
Захожу иногда

Репутация: +0/-0
Offline
Сообщений: 24
|
 |
« Ответ #6 : 01.08.2011, 00:54:17 » |
|
не, это среднестатистическая норма...
Озвучьте причину, по которой рекомендовали увеличить память?
фотогалерея PhocaGallery при создании эскизов пишет : Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 22464 bytes) in /home/virtwww/w_recepty_rece-com_b7cf6451/http/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214
|
|
|
|
|
Записан
|
|
|
|
voland
JComments Tester
Репутация: +157/-17
Offline
Пол: 
Сообщений: 2689
любит наш народ всякое гавно...
|
 |
« Ответ #7 : 01.08.2011, 00:59:39 » |
|
фотогалерея PhocaGallery при создании эскизов пишет :
Так ей 64метра не хватает, а хотите "увеличить" до 32 :-)
|
|
|
|
|
Записан
|
|
|
|
tati-2000
Захожу иногда

Репутация: +0/-0
Offline
Сообщений: 24
|
 |
« Ответ #8 : 01.08.2011, 01:12:37 » |
|
не , это к примеру, я вот думала нормально будет если я увеличу, я в настройках копалась, думала может как то снизить её прожорливость, но что то никак
|
|
|
|
|
Записан
|
|
|
|
danss2
Осваиваюсь на форуме
 
Репутация: +3/-0
Offline
Пол: 
Сообщений: 99
|
 |
« Ответ #9 : 11.01.2012, 02:14:35 » |
|
уж лучше сразу напишите php_value memory_limit 128M  А у меня, почему-то, 500 ошибку выдаёт после добавления этой строчки.... Пробовал 128, 64, 32 и даже 10. Разницы никакой, хотя у меня на сервере 64 мб... Почему так может быть?
|
|
|
|
|
Записан
|
|
|
|
|
oriol
|
 |
« Ответ #10 : 11.01.2012, 02:19:07 » |
|
затер
|
|
|
|
« Последнее редактирование: 11.01.2012, 02:55:35 от oriol »
|
Записан
|
|
|
|
danss2
Осваиваюсь на форуме
 
Репутация: +3/-0
Offline
Пол: 
Сообщений: 99
|
 |
« Ответ #11 : 11.01.2012, 02:40:20 » |
|
всё равно 500 ошибку выдаёт..... 
|
|
|
|
|
Записан
|
|
|
|
|
oriol
|
 |
« Ответ #12 : 11.01.2012, 02:50:21 » |
|
Доступ к php.ini есть ?
|
|
|
|
|
Записан
|
|
|
|
danss2
Осваиваюсь на форуме
 
Репутация: +3/-0
Offline
Пол: 
Сообщений: 99
|
 |
« Ответ #13 : 11.01.2012, 02:55:18 » |
|
нет
|
|
|
|
|
Записан
|
|
|
|
|
oriol
|
 |
« Ответ #14 : 11.01.2012, 03:00:13 » |
|
а вы htaccess.txt переименовали в .htaccess
|
|
|
|
|
Записан
|
|
|
|
danss2
Осваиваюсь на форуме
 
Репутация: +3/-0
Offline
Пол: 
Сообщений: 99
|
 |
« Ответ #15 : 11.01.2012, 03:12:34 » |
|
конечно 
|
|
|
|
|
Записан
|
|
|
|
|
|
danss2
Осваиваюсь на форуме
 
Репутация: +3/-0
Offline
Пол: 
Сообщений: 99
|
 |
« Ответ #17 : 11.01.2012, 04:15:07 » |
|
Благодарю  Почитаю
|
|
|
|
|
Записан
|
|
|
|
|