Again issues with domain settings

Krisauseu

Verified User
Joined
Apr 14, 2024
Messages
22
Location
Euskirchen
Hi,

I have some trouble with my websites again, it affects only my WP Installation at domain.de and another site, normally reachable as Subdomain xyz.domain.de

All other accounts work normal, including my cname forwardings , so I can say, it is not a DNS or server problem. I've had this issue a while ago, when I moved my pages manually to DirectAdmin. It was anything with the file permissions and htaccess files...

That's what the browser says:

Forbidden​

You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe

Last time I could fix it with a simple DA Script via SSH. Apologies I can't remember which it was. I just did a /usr/local/directadmin/custombuild/da build all - that was it not.

Regards Kristian
 
That's what the browser says:
As you can see it says there "unable to read htaccess file".

I don't know what you are using, but you might need the mod_htscanner2 if not installed yet.
Or if you do have that installed, you might need to check permissions, seems something is not correct here if the webserver can't read files.

However, since you moved manually, did you chown the files correctly to the user of the account?

Otherwise try this:
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh user_homes

if that don't work, replace the user_homes with all_with_domaindirs and things should be fine. If not, let us know.
 
I think that was the script I earlier, but this time no luck with it.

Subdomain says now:

Internal Server Error​

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Main domain with WordPress says - nothing, only white screen.
 
That's htaccess:
From: <Saved by Blink>
Snapshot-Content-Location: https://lowendhost.de:2222/CMD_FILE...T7TXTL6P7MKAJYOWA3V2U2RRH3C2Y&noredirect=true
Subject:
Date: Sat, 11 May 2024 15:14:06 +0200
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----MultipartBoundary--qjiIzPNRpLYXVw6A57wsHswLJMkfwxxC4eRljUzgJv----"
------MultipartBoundary--qjiIzPNRpLYXVw6A57wsHswLJMkfwxxC4eRljUzgJv----
Content-Type: text/html
Content-ID: <[email protected]>
Content-Transfer-Encoding: binary
Content-Location: https://lowendhost.de:2222/CMD_FILE...T7TXTL6P7MKAJYOWA3V2U2RRH3C2Y&noredirect=true
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></head><body>DirectoryIndex install.php index.html index.php
RewriteEngine On
RewriteRule ^install-mod-rewrite-test$ install.php?mod_rewrite_test=true [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^([0-9a-zA-Z-_/.]+)$ index.php?route=$1 [QSA,L]
#Gzip
<ifmodule mod_deflate.c="">
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
#End Gzip
<ifmodule mod_expires.c="">
ExpiresActive On
ExpiresByType image/gif "access plus 1 weeks"
ExpiresByType image/svg "access plus 1 weeks"
ExpiresByType image/jpg "access plus 1 weeks"
ExpiresByType image/jpeg "access plus 1 weeks"
ExpiresByType image/png "access plus 1 weeks"
ExpiresByType image/bmp "access plus 1 weeks"
ExpiresByType text/css "access plus 1 weeks"
ExpiresByType application/javascript "access plus 1 weeks"
ExpiresByType application/x-javascript "access plus 1 weeks"
ExpiresByType text/javascript "access plus 1 weeks"
</ifmodule>
<ifmodule mod_headers.c="">
Header set Connection keep-alive
</ifmodule></body></html>
------MultipartBoundary--qjiIzPNRpLYXVw6A57wsHswLJMkfwxxC4eRljUzgJv------

Now, after /da build all again, after refresh the browser says:

ionCube')." Loader for PHP needs to be installed.\n\nThe ionCube Loader is the industry standard PHP extension for running protected PHP code,\nand can usually be added easily to a PHP installation.\n\nFor Loaders please visit".($cli?":\n\nhttps://get-loader.ioncube.com\n\nFor":' get-loader.ioncube.com and for')." an instructional video please see".($cli?":\n\nhttp://ioncu.be/LV\n\n":' http://ioncu.be/LV ')."\n\n");exit(199); ?> HR+cPq0/teiapIAiCT5Bg60GMVKHasATwLNyPRWxqTeASAOrOS1dxjRfZQUIgRpmM/QNBe8bx3u4 EwPU20J6jFqEfvOKVA6O0qen4ZkD562zmauwsHSI3Jtu0JIpU+vYG+QXKgIgDvUs/IXc5qFMT/K7 dwkAk9UP3uCq49StBhkSTKApGdw8tBiCOW5NxjMyiZVSlovNPScEvOVraXshSB5Uahz3qyDEuSfW kosRZdSWmMqmxZ3mDpLJLrH71VpoxrTAZoVlmIYIlKMNIsyo5RVIi8zpNDG92WneEtTWr3NQ3TFB MxF++MbZOwfdDP1yp0RabE2wjlwjnBjJxJjlZ+Zd/xrtJzW+XTG+Pqe6WC5KBb9kEbXqiGcrZsIB

Although ioncube is set to yes in preference file.

And if that are not enough troubles , DirectAdmin tells me that PHP is not active. As told earlier, all other users domains are working normally.
 
That's htaccess:
No it's not. That is an email.
SSH into your server and paste the correct content.
Why do you sent e-mail content when you are server administrator?

Although ioncube is set to yes in preference file.
When you are logged in to your server via SSH, doublecheck if it works.

Try the php -v command and see if ioncube is installed.

Us it for other versionsn too, for example if you have installed php 8.2 too you can also use this command:
/usr/local/php82/bin/php -v
for example.
 
That's htaccess:

if this the case, then it's the reason you have the 5xx error. The file's content is wrong. You should clean it. The correct content seems to be placed between <body> and </body> tags (everything other including the tags should be removed).
 
Back
Top