• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Sites loading without design

xma1

New Pleskian
Hi,

My Sites loads without any designs:
capture-png.10940


(only gitlab gives error 500, with logo ...)Capture2.PNG

I am using an V-Server (from strato.de) with Ubuntu 14.04 LTS

I have tried to install on server (maybe some setting from it led to the trouble):
gitlab, owncloud and ZendGuardLoader with PHP5.5, maybe für future i will install PHP 5.6 and 7 to (for moto cms i need ZendGuardLoader with PHP5.5)

proxy_error_log says all the time(13: Permission denied):

2016/04/01 13:25:56 [error] 16177#0: *166 open() "/var/www/vhosts/xma1.de/httpdocs/templates/protostar/favicon.ico" failed (13: Permission denied), client: 80.154.19.130, server: xma1.de, request: "GET /templates/protostar/favicon.ico HTTP/1.1", upstream: "http://85.214.112.109:7080/templates/protostar/favicon.ico", host: "www.xma1.de", referrer: "http://www.xma1.de/index.php/component/users/?view=login"

error_log:
[Fri Apr 01 13:27:03.311736 2016] [ssl:warn] [pid 17585] AH01909: RSA certificate configured for xma1.de:443 does NOT include an ID which matches the server name

/var/log/apache2/error:

[Fri Apr 01 13:26:56.138337 2016] [mpm_prefork:notice] [pid 2998] AH00169: caught SIGTERM, shutting down
[Fri Apr 01 13:27:01.778954 2016] [ssl:warn] [pid 17583] AH01909: RSA certificate configured for roundcube.webmail:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:01.779317 2016] [ssl:warn] [pid 17583] AH01909: RSA certificate configured for roundcube.webmail:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:01.779682 2016] [ssl:warn] [pid 17583] AH01909: RSA certificate configured for horde.webmail:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:01.780030 2016] [ssl:warn] [pid 17583] AH01909: RSA certificate configured for horde.webmail:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:01.780373 2016] [ssl:warn] [pid 17583] AH01909: RSA certificate configured for lists:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:01.780629 2016] [ssl:warn] [pid 17583] AH01909: RSA certificate configured for default-2a01_238_43c4_7500_a9eb_3d90_51a4_1974:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:01.780874 2016] [ssl:warn] [pid 17583] AH01909: RSA certificate configured for default-85_214_112_109:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:01.780999 2016] [ssl:warn] [pid 17583] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Fri Apr 01 13:27:01.781015 2016] [suexec:notice] [pid 17583] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Fri Apr 01 13:27:01.904573 2016] [auth_digest:notice] [pid 17585] AH01757: generating secret for digest authentication ...
[Fri Apr 01 13:27:03.292976 2016] [:notice] [pid 17585] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Fri Apr 01 13:27:03.293005 2016] [:notice] [pid 17585] mod_python: using mutex_directory /tmp
[Fri Apr 01 13:27:03.800496 2016] [ssl:warn] [pid 17585] AH01909: RSA certificate configured for roundcube.webmail:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:03.800707 2016] [ssl:warn] [pid 17585] AH01909: RSA certificate configured for roundcube.webmail:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:03.801147 2016] [ssl:warn] [pid 17585] AH01909: RSA certificate configured for horde.webmail:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:03.801373 2016] [ssl:warn] [pid 17585] AH01909: RSA certificate configured for horde.webmail:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:03.801586 2016] [ssl:warn] [pid 17585] AH01909: RSA certificate configured for lists:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:03.801801 2016] [ssl:warn] [pid 17585] AH01909: RSA certificate configured for default-2a01_238_43c4_7500_a9eb_3d90_51a4_1974:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:03.802026 2016] [ssl:warn] [pid 17585] AH01909: RSA certificate configured for default-85_214_112_109:443 does NOT include an ID which matches the server name
[Fri Apr 01 13:27:03.802171 2016] [ssl:warn] [pid 17585] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Fri Apr 01 13:27:03.806776 2016] [mpm_prefork:notice] [pid 17585] AH00163: Apache/2.4.7 (Ubuntu) mod_fcgid/2.3.9 PHP/5.5.9-1ubuntu4.14 mod_python/3.3.1 Python/2.7.6 OpenSSL/1.0.1f configured -- resuming normal operations

errors from /var/log/nginx/error.log was fixed (gitlab has blocked port 80)

php logs from "/var/log/" gives only errors from that time were port 80 was blocked.

and there is another issue: server is to slow. Maybe because of this three processes:

20186 git 20 0 334684 173332 6940 R 38,9 4,1 0:07.38 ruby
3216 root 20 0 562048 2840 960 S 0,3 0,1 0:01.64 sw-collectd
1 root 20 0 33200 2612 1468 S 0,0 0,1 0:00.75 init
 
Last edited:
Hi xma1,

2016/04/01 13:25:56 [error] 16177#0: *166 open() "/var/www/vhosts/xma1.de/httpdocs/templates/protostar/favicon.ico" failed (13: Permission denied), client: 80.154.19.130, server: xma1.de, request: "GET /templates/protostar/favicon.ico HTTP/1.1", upstream: "http://85.214.112.109:7080/templates/protostar/favicon.ico", host: "www.xma1.de", referrer: "http://www.xma1.de/index.php/component/users/?view=login"
proxy_error_log says all the time(13: Permission denied):

These are mostly errors, because nginx couldn't connect to the desired specific php socket. Make sure that the (sub)domain - specific ( example: "/var/www/vhosts/system/subdomain.example-domain.com/conf/" - nginx_ip_default.conf or nginx.conf ) nginx configuration contains for example:

Code:
    location ~ \.php(/.*)?$ {
        fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;

        fastcgi_pass "unix:///var/www/vhosts/system/subdomain.example-domain.com/php-fpm.sock";

        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;

        include /etc/nginx/fastcgi.conf;
    }

Please investigate as well, that the (sub)domain - specific php socket is actually existent at for example "/var/www/vhosts/system/subdomain.example-domain.com/" - and if not, please investigate possible issues from your generall php - log ( for example: php_errors.log at "/var/log/" ).
 
Hi UFHH01,

in /var/www/vhosts/system/xma1.de/conf/ folder I have only nginx.conf (subdomain folders have almost the same data)

--------------------
-rw------- 1 root www-data 12729 Mär 31 22:50 httpd.conf
-rw------- 1 root www-data 6491 Mär 31 22:50 httpd.conf.bak
lrwxrwxrwx 1 root root 10 Mär 31 22:50 last_httpd.conf -> httpd.conf
lrwxrwxrwx 1 root root 10 Mär 31 22:50 last_nginx.conf -> nginx.conf
-rw------- 1 root nginx 3607 Mär 31 22:50 nginx.conf
-rw------- 1 root nginx 1826 Mär 31 22:50 nginx.conf.bak
drwxr-xr-x 2 root root 4096 Mär 31 20:57 siteapp.d/
-rw-r--r-- 1 root root 2 Apr 1 04:27 stat_ttl.conf
---------------

nginx.conf:

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

server {
listen 85.214.112.109:443 ssl;

server_name xma1.de;
server_name www.xma1.de;
server_name ipv4.xma1.de;

ssl_certificate /opt/psa/var/certificates/certcP5yKhS;
ssl_certificate_key /opt/psa/var/certificates/certcP5yKhS;

client_max_body_size 128m;

root "/var/www/vhosts/xma1.de/httpdocs";
access_log "/var/www/vhosts/system/xma1.de/logs/proxy_access_ssl_log";
error_log "/var/www/vhosts/system/xma1.de/logs/proxy_error_log";

location / {
proxy_pass https://85.214.112.109:7081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Accel-Internal /internal-nginx-static-location;
access_log off;
}

location /internal-nginx-static-location/ {
alias /var/www/vhosts/xma1.de/httpdocs/;
add_header X-Powered-By PleskLin;
internal;
}

}


in /var/log/ there are only that files (with PHP at the beging)

php php5 php5-cgi php5dismod php5enmod php5-fpm php5query php-cgi
 
php55 schows only errors froom yesterday.
root@h2550904:/var/log/plesk-php55-fpm# cat error.log
[31-Mar-2016 20:53:21] NOTICE: configuration file /opt/plesk/php/5.5/etc/php-fpm.conf test is successful

[31-Mar-2016 20:53:21] NOTICE: fpm is running, pid 18515
[31-Mar-2016 20:53:22] NOTICE: ready to handle connections
[31-Mar-2016 20:55:30] NOTICE: Terminating ...
[31-Mar-2016 20:55:30] NOTICE: exiting, bye-bye!
[31-Mar-2016 20:55:30] NOTICE: fpm is running, pid 19407
[31-Mar-2016 20:55:30] NOTICE: ready to handle connections
[31-Mar-2016 21:41:09] NOTICE: Terminating ...
[31-Mar-2016 21:41:09] NOTICE: exiting, bye-bye!

/var/log/plesk-php56-fpm have no files (was not used)

and php70 (at that time Port 80 was busy)
root@h2550904:/var/log/plesk-php70-fpm# cat error.log
[01-Apr-2016 00:49:12] NOTICE: configuration file /opt/plesk/php/7.0/etc/php-fpm.conf test is successful

[01-Apr-2016 00:49:12] NOTICE: fpm is running, pid 8538
[01-Apr-2016 00:49:12] NOTICE: ready to handle connections
[01-Apr-2016 00:50:37] NOTICE: Terminating ...
[01-Apr-2016 00:50:37] NOTICE: exiting, bye-bye!
[01-Apr-2016 00:51:29] NOTICE: configuration file /opt/plesk/php/7.0/etc/php-fpm.conf test is successful

[01-Apr-2016 00:51:29] NOTICE: fpm is running, pid 1802
[01-Apr-2016 00:51:29] NOTICE: ready to handle connections
[01-Apr-2016 08:26:43] NOTICE: Terminating ...
[01-Apr-2016 08:26:43] NOTICE: exiting, bye-bye!
[01-Apr-2016 10:18:11] NOTICE: configuration file /opt/plesk/php/7.0/etc/php-fpm.conf test is successful

[01-Apr-2016 10:18:12] NOTICE: fpm is running, pid 2573
[01-Apr-2016 10:18:12] NOTICE: ready to handle connections
[01-Apr-2016 10:55:50] NOTICE: Terminating ...
[01-Apr-2016 10:55:50] NOTICE: exiting, bye-bye!
[01-Apr-2016 10:58:09] NOTICE: configuration file /opt/plesk/php/7.0/etc/php-fpm.conf test is successful

[01-Apr-2016 10:58:12] NOTICE: fpm is running, pid 1896
[01-Apr-2016 10:58:12] NOTICE: ready to handle connections
 
can it be because of some Database service's??

I have tried to reinstall gitlab and got:
Error executing action `run` on resource 'execute[create gitlab database user]'

maybe it will help to find my error? Both Sites that I run and that don't work (Joomla and OwnCloud) use database (gitlab use it to, but it shows 500 Error now). PHP-Info script works to (but it take a lot from PHP Site).
 
Hi xma1,

Ok have solved this Problem. I have added "user root psaserv;" to nginx.conf

This is a really bad idea and I don't really know what investigation(s) makes you think, that "psaserv" should be in the group of "root" ??? The only user in the group is and should be root!
You could consider to add the user "nginx" to the group "psacln", with the command "usermod -aG psacln nginx"... but that's about it then!
 
@xma1,

It seems to be the case that your site has some permissions issues and/or misses some files.

Try to follow the steps below:

a) check that Apache is working, run the command: service apache2 status (if you use Nginx, also run the command: service nginx status)

b) repair potential file/permission errors, run the command: plesk repair fs <domain>

c) if step b) did not work, repair potential configuration errors: plesk repair web <domain>

d) if step b) and c) did not work, try to reinstall the joomla files, since it is very likely that some of the default packages are missing

Hope the above helps...

Regards...
 
Hi xma1,



This is a really bad idea and I don't really know what investigation(s) makes you think, that "psaserv" should be in the group of "root" ??? The only user in the group is and should be root!
You could consider to add the user "nginx" to the group "psacln", with the command "usermod -aG psacln nginx"... but that's about it then!

Hi UFHH01,

i have not set psaserv to Group user (or??). I have added the line to nginx.conf

#user nginx
user root psaserv;

hopfully it dont add nothing to root.
 
Back
Top