_r_s_i_
Forum Replies Created
-
Double-Post…
Yes, without renaming the original wp-login.php, it works just fine. Thank you! π
Aah… now I know the problem!
When we βrenameβ the login page, we donβt actually rename the wp-login.php fileβ¦
The problem is right in front of my monitor! π
I thought, if I change the name in Shield for wp-login.php, I have to do this synonymous with the real wp-login.php and have always renamed this manually! But I do not have to! So this is a misunderstanding on my part!Sorry, wrong files, but it’s the same.
/etc/apache2/mods-available/php7.0.conf
<FilesMatch ".+\.ph(p[3457]?|t|tml)$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch ".+\.phps$"> SetHandler application/x-httpd-php-source # Deny access to raw php sources by default # To re-enable it's recommended to enable access to the files # only in specific virtual host or directory Require all denied </FilesMatch> # Deny access to files without filename (e.g. '.php') <FilesMatch "^\.ph(p[3457]?|t|tml|ps)$"> Require all denied </FilesMatch> # Running PHP scripts in user directories is disabled by default # # To re-enable PHP in user directories comment the following lines # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it # prevents .htaccess files from disabling it. <IfModule mod_userdir.c> <Directory /home/*/public_html> php_admin_flag engine Off </Directory> </IfModule>Regards
RobertHello again…
I think I found the problem, but have not test it yet.
Linux (Ubuntu Server 16.04 LTS) apache 2.4 / php7 default settings (I did not change it…).
/etc/apache2/conf-available/php7.0-fpm.conf
# Redirect to local php-fpm if mod_php is not available <IfModule !mod_php7.c> # Enable http authorization headers SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 <FilesMatch ".+\.ph(p[3457]?|t|tml)$"> SetHandler "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://localhost" </FilesMatch> <FilesMatch ".+\.phps$"> # Deny access to raw php sources by default # To re-enable it's recommended to enable access to the files # only in specific virtual host or directory Require all denied </FilesMatch> # Deny access to files without filename (e.g. '.php') <FilesMatch "^\.ph(p[3457]?|t|tml|ps)$"> Require all denied </FilesMatch> </IfModule>Therefore, I also feared that the renaming without point and extension can lead to problems. This can not work!
Regards
Robert S. IrrgangYes, I think too, that apache does not process the file as PHP. I have to look more closely at what happens.
Thanks for the patience and help.
Regards
RobertOk, I checked it and test it, but nothing changed if I change the apache rewrite rules.
I have an ideea!
Can it be, that apache/php7 did not accept the renamed php file, if it not have the extension of .php?Than, I must look at the apache/php7 settings, to fix this.
Done!
Ok, it looks like php code and html code mix.
I can send you a screenshot or the output copy, if I have something where I can send it.
Can’t find forum pm or mail adr.Regards
RobertCan I send you the screenshot per pm? Don’t like it public. π
That’s sad with the letterts and numbers only.
I get no style, I think, if I logout after rename and set it in Shield to that name.
I test it again… so I can say it for sure.Thank you, but I’ve access and have disabled google authenticator.
Hello,
thanks for the quick reply!
I’ve a cron script, that check all web server file flags (all 10 Min.) and reset this flags and I get a reported mail, if any changed.
So, with wfcache, I’ve get every day mails allways the execution flag was set on wfcache. πRobert