David @roundrobined
Forum Replies Created
-
At last I find it!
I put the instruction in the .htaccess:
php_value auto_prepend_file noneThanks a lot! 😉
Reading this post, I can verify as follows:
$_SERVER['SCRIPT_FILENAME']: /opt/wordpress/apps/prestashop/adminweb $_SERVER['SCRIPT_NAME']: /adminweb auto_prepend_file: /opt/wordpress/apps/wordpress/htdocs/wp-content/nfwlog/ninjafirewall.php NFW_STATUS: NinjaFirewall is loadedFolder /opt/wordpress/apps/prestashop contains php.ini with the following instruction:
auto_prepend_file =How can I solve?
Hi @nintechnet,
I solve the problem with the main domain, it only was a problem of a bracket.Unfortunately the Prestashop app is always blocked by the firewall.
I added the rules in my main post, but the firewall blocks file upload:
22/Jan/17 12:48:52 #5639741 critical - xx.xx.241.150 POST /adminweb/index.php - Blocked file upload attempt - [logo.jpg (42,725 bytes)] - www.prestashopdomain.xxxThanks.
In debug mode these line also appears in error_log:
[Sun Jan 22 12:02:01.627448 2017] [authz_core:debug] [pid 10719] mod_authz_core.c(809): [client xx.xx.241.150:2674] AH01626: authorization result of Require all granted: granted, referer: http://www.xxxxx.org/ [Sun Jan 22 12:02:01.627499 2017] [authz_core:debug] [pid 10719] mod_authz_core.c(809): [client xx.xx.241.150:2674] AH01626: authorization result of <RequireAny>: granted, referer: http://www.xxxxx.org/Now I’m trying to understand the meaning. 🙂
Sorry, it is not an error. I edit this comment.
- This reply was modified 9 years, 4 months ago by David @roundrobined.
Hi,
thank you, the document root is:
/opt/wordpress/apps/wordpress/htdocsI try to add this .htninja file, to ALLOW the ‘Prestashop’ CMS:
<?php /* +===================================================================+ | NinjaFirewall optional configuration file | | | | See: http://nintechnet.com/ninjafirewall/wp-edition/help/?htninja | +===================================================================+ */ if (strpos($_SERVER['SCRIPT_FILENAME'], '/opt/wordpress/apps/prestashop/') !== FALSE) { return 'ALLOW'; if (strpos($_SERVER['SCRIPT_NAME'], '/prestashop/') !== FALSE) { return 'ALLOW'; }If I add this file, under document root of the main WordPress app, the main app is no more available. For example, if I try to run a specific script, the error_log retrieves:
[Sun Jan 22 09:14:45.145254 2017] [:error] [pid 8305] [client xx.xx.xxx.xxx:8781] script '/opt/wordpress/apps/wordpress/htdocs/xxxx.php' not found or unable to statIf I try to access to the main domain http://www.xxxxxxx.com, the access_log retrieves:
xx.xx.xxx.xxx - - [22/Jan/2017:09:15:22 +0100] "GET / HTTP/1.1" 500 -The same thing occurs if I try to put the file in /opt/wordpress/apps/wordpress/.
What else can I try?
Thank you very much.
Forum: Fixing WordPress
In reply to: Sometimes CSS not loadingHi,
I’ve finally solved. Disabling “pagespeed” module, it works. Anyway, I enable it again, because the problem is between the “speed” and the @import code in CSS file.Thanks a lot,
DavidForum: Fixing WordPress
In reply to: Sometimes CSS not loading@binarywc, @supporthero, thanks for your answers.
The problem probably is @import. In fact if I disable child theme or if I disable pagespeed apache module with child theme enabled, it works correctly.
Probably pagespeed module sometimes not allows to charge the imported CSS in time.
Now I can try to remove @import and to renable pagespeed module.I test it and I tell you.
DavidForum: Fixing WordPress
In reply to: Sometimes CSS not loadingHi,
thanks for your reply.
I don’t think it is a problem of the child theme, but I can try to disable it, because in the first case (when the error occurs) there are not GETs about the style.css files. I mean that it not fails, simply the GET don’t appear.
I don’t understand why in this case I can see in the log the style.css files.Forum: Networking WordPress
In reply to: Plugin problem with multisiteI just read a suggestion to try this url:
http://www.secondsite.it/wp-admin/plugins.phpThe problem seems to be the following:
You do not have sufficient permissions to access this page.My user is an administrator, and in wp_2_options there are wp_2_user_roles option with also this line
s:14:"update_plugins";b:1;
for administrator profile.Is this not enough?