New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

500 Errorr

Started by yeknafar, February 22, 2025, 01:50:24 PM

Previous topic - Next topic

yeknafar

Hi Dudes

I have used fix permission but some of my subfolders give 500 error and the others give the 500 error when users want to login or surf deeper in pages.

Thanks
I love CWP

yeknafar

I did most of the things that can be find on the forum and the net about fixing 500 server error. Even disabled mod security too but no result.

Maybe fixing permission work better for subdomains not subfolders.
I love CWP

cyberspace

What WebServer setup do you use ? Is it Apache only, Nginx, nginx + apache, or something else ?

overseer

Can you give a sample directory listing (recacted if necessary)?

yeknafar

Quote from: cyberspace on February 22, 2025, 10:38:40 PM
What WebServer setup do you use ? Is it Apache only, Nginx, nginx + apache, or something else ?

Thank you for your attention and answer

It was just Apache. As I saw in Google search console we have this error about 13 days in some subdomains.
I tried to config using php fpm yesterday and reinstalled the Apache but no result.

I love CWP

yeknafar

#5
Quote from: overseer on February 22, 2025, 10:59:24 PM
Can you give a sample directory listing (recacted if necessary)?

Thank you for your answer

How can I do that?
I used lS command:

blog          france                       license.txt  robots.txt       wp-blog-header.php    wp-includes        wp-signup.php
certificate   google5######5.html  mk7zxw.php   students         wp-comments-post.php  wp-links-opml.php  wp-trackback.php
conversation  index.php                    pay          tube             wp-config.php         wp-load.php        xmlrpc.php
course        jadid                        plugin       word             wp-config-sample.php  wp-login.php       yandex_5fe2a###2ea.html
email         learning                     readme.html  wp-activate.php  wp-content            wp-mail.php
exams         level                        report       wp-admin         wp-cron.php           wp-settings.php

Is this useful? It doenot to be recacted?
I love CWP

yeknafar

Brother can It be a security problem? I have scanned CWP many times but no result. In security center I quarantine some things that was found.
I love CWP

cyberspace

The filename mk7zxw.php looks suspicious. Was it uploaded by you ? If no check it because it could be php shell or something like that.

However, you need to check the error logs of the websites to investigate why the error 500 appears. The error logs are located in:
/usr/local/apache/domlogs/DOMAIN.error.log

yeknafar

No I did not uploaded mk7zxw.php
Can I remove it directly? It is 0 bytes.

In /usr/local/apache/domlogs/DOMAIN.error.log
I see subdomains but I am using subfolders. I check them?

(Honestly I have moved from subdomain to subfolder recently but because my application is working on subdomain I keep both of them and to redirect the visitors from old subdomains to subfolders.)
I love CWP

cyberspace

You access the sites through the URLs like:

https://domain.com/folder/
https://sub.domain.com/folder1/folderX/

Right ?

If so then check the error logs of the domains/subdomains you specify in your URLs.

yeknafar

We checked it was not malware. Nothing special found in  /usr/local/apache/domlogs/DOMAIN.error.log 
It is PHP or WordPress plugin. I renamed Theme and plugin folders many times and reinstalled core files too but no result.

I love CWP

overseer

Can you give a full long directory listing:
ls -al /home/username
ls -al /home/username/public_html

So as to see directory permissions...