Wordpress 403 on selfhosted dedicated server

Cartitarul

Verified User
Joined
Jul 19, 2023
Messages
34
Hi on some pages in the admin menu like edit I get this error
1707225296470.png

1707225287439.png


The worldpress version is latest with 8.1 php
The thing is that it happend suddenly after a directadmin update recently.
the DA logs are like this
1707225391626.png

Anyone can help me? I have also installed ModSecurity Comodo WAF 2.24.5
 

Attachments

  • 1707225278793.png
    1707225278793.png
    4.4 KB · Views: 57
Well, i have to polish off my Romanian hahaha but it looks like php 6.3.0 gets used (?)
 
Well if your talking about the
1707227907947.png
i`ll translate it for you =)
WP_Scripts::print_inline_scrip is considered old starting with version 6.3.0
 
But the funny thing is if I deactivate all the plugins by renaming plugins folder the 403 error is still there but these PHP ones are not
 
What does your htaccess say?
And do you see /wp-admin/edit.php in your ftp? how is the chmod and is the file still original?
There might be a (small) chance your website got infected at a certain point?

Your /wp-login is also trowing errors.

i guess you have debug turned on?

--edit: i see you also run an somewhat older version of elementor, but this should not be the issue

--editedit: i see on themeforest that people are not the most happy with the theme, maybe there is (a part) of your problem

"This theme is dreadful. I cannot discourage you more to not buy it. It conflicts with so many plugins, even the official woocommerce ones."
 
Last edited:
Well the htaccess was on of my first debuging tryes, at first had

<FilesMatch ".*\.(phtml|php|PhP|php5|suspected)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<FilesMatch "^(index.php|wp.php|admin.php|plugin-install.php|cong.php|about.php|install.php|xboom.php|mds.php|saiga.php|wp-admin.php|lv.php|content.php|zxl.php|fm.php|zeal.php|gettest.php|wp-login.php|include.php|dropdown.php|plugins.php)$">
Order Allow,Deny
Allow from all
</FilesMatch>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
Then i tryed with only mod_rewrite.c deleteing the this above still no luck then i removed everything from the file the website stays the same. Right now the file is empty and the web is functional but some files cant be accesed
And to answer the other questions i have the file and file is still original the permissions are
1707229327257.png
because i set them thinking that was the problem and i dont think that my web got infected.
 
I am gonna try to install it manualy because i cant access some pages from my web
 
Strange, could my DA admin account be compromised ? i have another user with a wordpress with the same htaccess
 
Back
Top