Portál AbcLinuxu, 31. října 2025 08:40
service bind9 restartservice apache2 restart Tak vše v pořádku funguje bez jediné chybové hlášky o špatné syntaxi.Řešení dotazu:
[authz_core:error] [pid 25013] [client ::1:52020] AH01630: client denied by server configuration: /var/www/
Debug Restarting httpd: systemctl restart apache2.serviceTo je asi ono ale nevím jak tu chybu odstranit.
Debug Calling function 'restartHttpd' from module 'web_module'.
Warning Reason for Apache restart failure: Failed to get D-Bus connection: Unknown error -1
 13.7.2016 13:04
Ruža Becelin             | skóre: 40
             | blog: RuzaBecelinBlog
        13.7.2016 13:04
Ruža Becelin             | skóre: 40
             | blog: RuzaBecelinBlog
            
        [Wed Jul 13 14:10:19.917461 2016] [ssl:warn] [pid 30305] AH01909: server:443:0 server certificate does NOT include an ID which matches the server name [Wed Jul 13 14:10:19.919081 2016] [suexec:notice] [pid 30305] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec) [Wed Jul 13 14:10:19.965902 2016] [auth_digest:notice] [pid 30307] AH01757: generating secret for digest authentication ... [Wed Jul 13 14:10:19.967448 2016] [:notice] [pid 30311] FastCGI: wrapper mechanism enabled (wrapper: /usr/lib/apache2/suexec) [Wed Jul 13 14:10:19.967506 2016] [:notice] [pid 30311] FastCGI: process manager initialized (pid 30311) [Wed Jul 13 14:10:19.999316 2016] [ssl:warn] [pid 30307] AH01909: server:443:0 server certificate does NOT include an ID which matches the server name [Wed Jul 13 14:10:20.006220 2016] [mpm_prefork:notice] [pid 30307] AH00163: Apache/2.4.10 (Debian) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 PHP/5.6.22-0+deb8u1 OpenSSL/1.0.1t configured -- resuming normal operations [Wed Jul 13 14:10:20.006286 2016] [core:notice] [pid 30307] AH00094: Command line: '/usr/sbin/apache2'děkuji za odpověď
 13.7.2016 14:57
Ruža Becelin             | skóre: 40
             | blog: RuzaBecelinBlog
        13.7.2016 14:57
Ruža Becelin             | skóre: 40
             | blog: RuzaBecelinBlog
            
         13.7.2016 15:00
Ruža Becelin             | skóre: 40
             | blog: RuzaBecelinBlog
        13.7.2016 15:00
Ruža Becelin             | skóre: 40
             | blog: RuzaBecelinBlog
            
         13.7.2016 16:59
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        13.7.2016 16:59
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        Failed to get D-Bus connection: Unknown error -1Problém není v konfiguraci apache, problém je, že ispconfig nemůže apache restartovat. Toto je chyba systemd / dbus. (Zkuste restartovat dbus apod. Chyb Unknown error -1 je plný net.) Případně sem zkuste dát výpis
journalctl -b -f hned po tom neúspěšném restartu.
            service dbus restartNo journal files were found.
 13.7.2016 17:57
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        13.7.2016 17:57
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        cat /proc/1/exe jako root?
            cat /proc/1/exe výstup nečitelný x0
ŠHŔH               áďÇ@HÇHňHŔH
ŔtHöÁużHňHŔH1 H,H9ę
ŔuçHŹ$ 1öë?DHxH
ŇtH+$ żH
ŇOúčkË˙˙}3 ÷Â@
öÂtGH1 H
Ŕuë0fDHŔH
Ŕtx0 uî˙˙˙HŔH
Ŕuč.3 âű%3 ÷ÂtKHĆ0 H
Ŕuë1HŔH
Ŕtx0uî˙˙˙HŔH
ŔučŢ2 â˙˙˙ďŇ2 öĆuE1Ŕż÷r@čdHŔHe0 â˙˙ý˙Š2 H
Ń˙˙şHŢďĆ
        $ č˝Ĺ˙˙ďDžŹ$ čě- Ǣ- H
ÉHČt8f.    p$:uśV:
       śP$H       u O˙˙˙HŔH
ŔuŇ
˙Çž
  
Dodám že se připojuji vzdáleně přes ssh putty 
             13.7.2016 19:11
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        13.7.2016 19:11
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        stat /proc/1/exe. To je jen na zjištění binárky, která běží jako init.
            File: â/proc/1/exeâ -> â/sbin/init (deleted)â Size: 0 Blocks: 0 IO Block: 1024 symbolic link Device: 3h/3d Inode: 197242262 Links: 1 Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2016-07-13 13:39:01.373765547 +0200 Modify: 2016-05-25 09:09:01.463674654 +0200 Change: 2016-05-25 09:09:01.463674654 +0200 Birth: -
 13.7.2016 19:41
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        13.7.2016 19:41
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
         13.7.2016 18:20
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        13.7.2016 18:20
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        
$app->system->getinitcommand¨
function getinitcommand($servicename, $action, $init_script_directory = ''){
		global $conf;
		// upstart
		if(is_executable('/sbin/initctl')){
			exec('/sbin/initctl version 2>/dev/null | /bin/grep -q upstart', $retval['output'], $retval['retval']);
			if(intval($retval['retval']) == 0) return 'service '.$servicename.' '.$action;
		}
		// systemd
		if(is_executable('/bin/systemd') || is_executable('/usr/bin/systemctl')){
			return 'systemctl '.$action.' '.$servicename.'.service';
		}
		// sysvinit
		if($init_script_directory == '') $init_script_directory = $conf['init_scripts'];
		if(substr($init_script_directory, -1) === '/') $init_script_directory = substr($init_script_directory, 0, -1);
		return $init_script_directory.'/'.$servicename.' '.$action;
	}
ISPConfig odhaduje, podle existence různých binárek, na init systém, který daný OS používá. 
Jak z toho (nějakou normální cestou *) ven nevím (ISPConfig neznám).
* Jedna možnost je přepnout systém na systemd, ale to bych takhle na dálku nedoporučoval,
* Druhá je prostě odstranit detekci systemd z té fce.
             13.7.2016 19:22
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        13.7.2016 19:22
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        lib/clases/system.inc.php
            /usr/local/ispconfig/server/lib/classes/system.inc.php  jsem zakomentoval následující řádky           // systemd
		//if(is_executable('/bin/systemd') || is_executable('/usr/bin/systemctl')){
		//	return 'systemctl '.$action.' '.$servicename.'.service';
		//}
             13.7.2016 21:04
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        13.7.2016 21:04
Heron             | skóre: 53
             | blog: root_at_heron
             | Olomouc
        
        Tiskni
            
                Sdílej:
                 
                 
                 
                 
                 
                 
            
    
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.