Debian: Ispconfig, apache, mysql,squirrelmail "The perfect server" (500 Internal server error)

Permalänk

Debian: Ispconfig, apache, mysql,squirrelmail "The perfect server" (500 Internal server error)

Hejsan!

Har enligt denna tutorialen installerat "The perfect server".

Allting fungerade precis som det borde göra, tills jag gick in i ispconfig's webgui och skapade ett subdomän och ett alias, och efter det så tryckte jag F5, och sen efter det får jag "500 internal server error".

Har inte en aning om vad felet kan vara då jag inte är jätte insatt i linux.. men jag hoppas verkligen någon kan hjälpa mig!

Jag kör Debian 7.4.0 64 bitars.

Bara att fråga mig om ni vill se mina configs etc..

Väldigt tacksam för svar!

MVH Robert

Visa signatur

Wicked Gaming Community - http://wickedgc.com | Server host / Spel community

Permalänk
Medlem

Nu har jag aldrig använt ispconfig, men det ser ut att drivas av apache av vad jag kan se. Så titta i loggarna från apache (/var/log/apache2/), och se om du hittar något felmeddelande där.
Det är vad jag hade börjat med. Och om du hittar felmeddelandet men inte förstår varför du får det så googla på det, eventuellt ihop med "ispconfig".

Permalänk

Det står bland annat "Premature end of script headers" hittar knappt något på google.. :/

Visa signatur

Wicked Gaming Community - http://wickedgc.com | Server host / Spel community

Permalänk

Hela error.log

[Mon Feb 24 08:18:21 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Mon Feb 24 08:18:21 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec) [Mon Feb 24 08:18:21 2014] [notice] Digest: generating secret for digest authentication ... [Mon Feb 24 08:18:21 2014] [notice] Digest: done [Mon Feb 24 08:18:21 2014] [notice] FastCGI: process manager initialized (pid 8190) PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0 [Mon Feb 24 08:18:21 2014] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Mon Feb 24 08:18:21 2014] [error] python_init: Python executable found '/usr/bin/python'. [Mon Feb 24 08:18:21 2014] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Mon Feb 24 08:18:21 2014] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Mon Feb 24 08:18:21 2014] [notice] mod_python: using mutex_directory /tmp [Mon Feb 24 08:18:21 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Mon Feb 24 08:18:21 2014] [notice] Apache/2.2.22 (Debian) DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.6 PHP/5.4.4-14+deb7u7 mod_python/3.3.1 Python/2.7.3 mod_ruby/1.2.6 Ruby/1.8.7(2012-02-08) mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations suexec policy violation: see suexec log for more details [Mon Feb 24 08:18:44 2014] [warn] [client 192.168.0.189] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Mon Feb 24 08:18:44 2014] [error] [client 192.168.0.189] Premature end of script headers: index.php

Visa signatur

Wicked Gaming Community - http://wickedgc.com | Server host / Spel community

Permalänk

Och om jag kör tail -f error.log så får jag inga fel direkt när jag accessar sidan..

Visa signatur

Wicked Gaming Community - http://wickedgc.com | Server host / Spel community

Permalänk
Medlem

Starta om Apache och ladda om sidan och se vad för nytt innehåll du får i loggarna. Och titta inte enbart i error.log.

"suexec policy violation: see suexec log for more details" ser ut som att du har något fel med suexec. Titta i suexec.log för att se vad felet är. Antagligen fel filrättigheter (chmod och chown) på alla eller vissa av filerna till ispconfig gissar jag. Dock inte nödvändigtvis att det är det enda felet.

Permalänk

Kan tänka mig det.. för har inte haft access till vissa filer etc, om jag inte använder root terminal.

Här är min suexec.log

[2014-02-24 08:56:13]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:13]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:13]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:13]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:13]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:13]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:13]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:14]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:14]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:14]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:14]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:14]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:14]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:29]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:29]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:30]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:30]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:30]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:30]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:30]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:30]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:30]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:30]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:31]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:31]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:31]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:31]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:32]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:32]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:32]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:32]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:32]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:32]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:32]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:32]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:32]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:32]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:33]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:33]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:56:59]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:56:59]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:57:00]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:57:00]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig) [2014-02-24 08:58:01]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter [2014-02-24 08:58:01]: directory is writable by others: (/var/www/php-fcgi-scripts/ispconfig)

Visa signatur

Wicked Gaming Community - http://wickedgc.com | Server host / Spel community

Permalänk
Medlem

Gissar att du bör köra:

sudo chmod -R 755 /var/www/php-fcgi-scripts/ispconfig

Permalänk

Det funkade! Tack så hemskt mycket Genesis! <3

Visa signatur

Wicked Gaming Community - http://wickedgc.com | Server host / Spel community