MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: vinceent on 2013-06-15, 23:05:05
-
Hello all after update Kloxo-MR 6.5.0.f-2013031821 wwebpage not worked
i try thhis:
./fixphp
./fixphpfpm
./fixweb
And all webpage not worked.
Tnx
-
[root@srv script]# ./restart-all
Stopping kloxo:
Waiting for the process to die.....
Stopped kloxo
Starting kloxo: 11
Started kloxo
Stopping named: . [ OK ]
Starting named: [ OK ]
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
Stopping php-fpm: [ OK ]
Starting php-fpm: [ OK ]
Restarting qmail:
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
-
Try 'sh /script/fixweb; sh /script/restart-all'
-
[root@srv script]# sh /script/fixweb; sh /script/restart-all
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or d irectory
- For help, type '/script/fixweb --help'
- No argument supplied. Defaulting to localhost (master) servers
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or direct ory
Fixing Web server config
- 'defaults' and 'php-fpm' at 'localhost'
- 'bazartimisoara.ro' ('alex') at 'localhost'
- 'crearewebsite.md' ('alex') at 'localhost'
- 'date.inscriereindirectoare.net' ('alex') at 'localhost'
- 'inscriereindirectoare.net' ('alex') at 'localhost'
- 'obiectebisericesti.com' ('alex') at 'localhost'
- 'pizzeriihunedoara.ro' ('alex') at 'localhost'
- 'projecttracking.inscriereindirectoare.net' ('alex') at 'localhost'
- 'anuntxxx.ro' ('anunt') at 'localhost'
- 'jobacademy.ro' ('anunt') at 'localhost'
- 'koketnails.ro' ('anunt') at 'localhost'
- '4gaming.org' ('gaming') at 'localhost'
- 'admin.4gaming.org' ('gaming') at 'localhost'
- 'download.4gaming.org' ('gaming') at 'localhost'
- 'gametracker.4gaming.org' ('gaming') at 'localhost'
- 'metin2.4gaming.org' ('gaming') at 'localhost'
- 'metin2skyfall.4gaming.org' ('gaming') at 'localhost'
- 'minecraft.4gaming.org' ('gaming') at 'localhost'
- 'radio.4gaming.org' ('gaming') at 'localhost'
- 'hostgame.org' ('hostgame') at 'localhost'
- 'servere.hostgame.org' ('hostgame') at 'localhost'
- 'forum.cs.ilia.ro' ('ilia') at 'localhost'
- 'ilia.ro' ('ilia') at 'localhost'
- 'cs-16.ro' ('killer2') at 'localhost'
- 'remi-nou.tk' ('killer2') at 'localhost'
- 'oniasi.com' ('oniasico') at 'localhost'
- 'sd.oniasi.com' ('oniasico') at 'localhost'
- 'primariadobra.ro' ('primariadobra') at 'localhost'
- 'sportfloresti.ro' ('sportfloresti') at 'localhost'
- 'vio.sportfloresti.ro' ('sportfloresti') at 'localhost'
- 'xteamzone.tk' ('xteam') at 'localhost'
- 'billing.netlinkunix.eu' ('admin') at 'localhost'
- 'netlinkunix.eu' ('admin') at 'localhost'
- 'vps.netlinkunix.eu' ('admin') at 'localhost'
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or d irectory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or d irectory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or direct ory
Stopping kloxo:
Waiting for the process to die.....
Stopped kloxo
Starting kloxo: 11
Started kloxo
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or d irectory
Stopping named: [ OK ]
Starting named: shell-init: error retrieving current directory: getcwd: cannot access parent directories: N o such file or directory
[ OK ]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or d irectory
Stopping httpd: [ OK ]
Starting httpd: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[ OK ]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping php-fpm: [ OK ]
Starting php-fpm: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[ OK ]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Restarting qmail:
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping xinetd: [ OK ]
Starting xinetd: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[ OK ]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
-
Webmail shows Internal Server Error on latest version of alpha !
-
Why you are always using 6.5.1.a and report error?.
6.5.1.a not always the same with 6.5.0.f latest update.
I will avoid every report from 6.5.1.a and only care for 6.5.0.f.
-
Why you are always using 6.5.1.a and report error?.
6.5.1.a not always the same with 6.5.0.f latest update.
I will avoid every report from 6.5.1.a and only care for 6.5.0.f.
I'm doing testing on 6.5.1.a because I need the latest apache configs to make redirections finally work ;)
-
Alpha of 6.5.1 not always the same as Final of 6.5.0.
-
@vinceent,
Have you run 'sh /script/cleanup' after update?.
-
I got such errors after upgrade:
[Sat Jun 15 20:16:47 2013] [error] [client 62.21.61.1] (111)Connection refused: FastCGI: failed to connect to server "/home/kloxo/httpd/webmail/webmail.nowosci.org.0fake": connect() failed
[Sat Jun 15 20:16:47 2013] [error] [client 62.21.61.1] FastCGI: incomplete headers (0 bytes) received from server "/home/kloxo/httpd/webmail/webmail.nowosci.org.0fake"
[Sat Jun 15 20:16:48 2013] [error] [client 62.21.61.1] (111)Connection refused: FastCGI: failed to connect to server "/home/kloxo/httpd/webmail/webmail.nowosci.org.0fake": connect() failed
[Sat Jun 15 20:16:48 2013] [error] [client 62.21.61.1] FastCGI: incomplete headers (0 bytes) received from server "/home/kloxo/httpd/webmail/webmail.nowosci.org.0fake"
[Sat Jun 15 20:16:49 2013] [error] [client 62.21.61.1] (111)Connection refused: FastCGI: failed to connect to server "/home/kloxo/httpd/webmail/webmail.nowosci.org.0fake": connect() failed
[Sat Jun 15 20:16:49 2013] [error] [client 62.21.61.1] FastCGI: incomplete headers (0 bytes) received from server "/home/kloxo/httpd/webmail/webmail.nowosci.org.0fake"
-
yes mustafa i run sh /script/cleanup
-
yes mustafa i run sh /script/cleanup
Try 'yum clean all; yum update; sh /script/cleanup; sh /script/restart-all'.
Already update certain rpms but related to your issue.
Your issue is weird. Try 'sh /script/fixweb; sh /script/restart-services'.
-
[root@srv ~]# sh /script/restart-services
Stopping named: . [ OK ]
Starting named: [ OK ]
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
Stopping php-fpm: [ OK ]
Starting php-fpm: [ OK ]
Restarting qmail:
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
And all webpage not worked
-
Look like something trouble with dualstack for IPv4 and IPv6 on your server.
-
I do not understand what you say and where to watch
-
In previous nginx config:
server {
listen *:80;
The new one:
server {
listen 0.0.0.0:80;
listen [::]:80;
Previous only accept IPv4 but latest accept IPv4 and IPv6.
You can back to previous code with copy /home/nginx/tpl/defaults.conf.tpl and domains.conf.tpl to custom.default.conf.tpl and custom.domains.conf.tpl and then modified this custom files:
from
listen 0.0.0.0:<?php echo $port; ?>;
listen [::]:<?php echo $port; ?>;
to:
listen *:<?php echo $port; ?>;
and
listen 0.0.0.0:<?php echo $port; ?><?php echo $asdefault; ?>;
listen [::]:<?php echo $port; ?><?php echo $asdefault; ?>;
to:
*:<?php echo $port; ?><?php echo $asdefault; ?>;
and then run 'sh /script/fixweb; sh /script/restart-services'.
-
Mustafa
I do not know exactly what should be modified
-
It's hard to understand?. Set by yourself.
-
Inform here for 'ip -6 addr show' from ssh.
-
nginx: [emerg] unknown directive "*:80" in /home/nginx/conf/defaults/_default.conf:6
nginx: configuration file /etc/nginx/nginx.conf test failed
in: /home/nginx/conf/defaults
nano _default.conf
## 'default' config
server {
*:80 default;
*:80 default;
server_name _;
set $domain '';
index index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl;
include '/home/nginx/conf/globals/proxy.conf';
}
## 'default' config
server {
*:443 default;
*:443 default;
==============================================
-
[root@srv ~]# ip -6 addr show
[root@srv ~]#
-
Why setting:
*:<?php echo $port; ?><?php echo $asdefault; ?>;
*:<?php echo $port; ?><?php echo $asdefault; ?>;
Better change '*:' to '<?php echo $ip; ?>'.
-
in: /home/nginx/tpl
nano defaults.conf.tpl
listen 0.0.0.0:<?php echo $port; ?><?php echo $asdefault; ?>;
listen [::]:<?php echo $port; ?><?php echo $asdefault; ?>;
============
nano domains.conf.tpl
listen 0.0.0.0:<?php echo $port; ?>;
listen [::]:<?php echo $port; ?>;
-
This is information in my servers:
'> ip -6 addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 fe80::ff:fe18:46a2/64 scope link
valid_lft forever preferred_lft forever
You must edit custom.defaults.conf.tpl and custom.domains.conf.tpl.
-
Read http://www.roothelp.net/enable-ipv6-on- ... at-server/ (http://www.roothelp.net/enable-ipv6-on-your-centos-redhat-server/) to enable IPv6 on your server.
-
my server no use IPV6 why to be activated IPV6 on my server?
-
At this moment, it's make Kloxo-MR web config not appearing error!.
By default, standard Centos installer have IPv6 enable.
-
Copy and extract tpl.zip inside /home/nginx/tpl and then run 'sh /script/fixweb; sh /script/restart-services'.
Code inside this tpl files will be ready for next update of Kloxo-MR
-
Hello again mustafa i copy your file in my server and after fixweb and restart all recive this:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
and all webpage not worked
-
For awhile switch nginx-proxy to apache and then try back to nginx-proxy.
-
I try this but not worked
-
Nice to know that Kloxo-MR suppport IPV6 :)
Thanks pak Ramadhan :)
-
@vinceent,
Copy, extract, run fixweb and then run restart-all.
It's zip file and need to extract.
-
Mustafa i extract your files and put in TPL and i fixweb and restat all and not worked
[root@srv script]# ./restart-all
Stopping kloxo:
Waiting for the process to die.....
Stopped kloxo
Starting kloxo: 11
Started kloxo
Stopping named: . [ OK ]
Starting named: [ OK ]
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
Stopping php-fpm: [ OK ]
Starting php-fpm: [ OK ]
Restarting qmail:
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
-
Inform here 'dir /home/nginx/tpl'.
Have you try switch to apache and then switch back to nginx-proxy?.
-
[root@srv tpl]# pwd
/home/nginx/tpl
[root@srv tpl]# ls
cgi-bin.php custom.defaults.conf.tpl custom.domains.conf.tpl
[root@srv tpl]#
yes i change nginx to apache an apache to nginx and not worked
-
[root@srv tpl]# pwd
/home/nginx/tpl
[root@srv tpl]# ls
cgi-bin.php custom.defaults.conf.tpl custom.domains.conf.tpl
[root@srv tpl]#
yes i change nginx to apache an apache to nginx and not worked
Reboot?
-
mustafa i restart server and after
[root@srv script]# ./restart-all
Stopping kloxo:
Waiting for the process to die.....
Stopped kloxo
Starting kloxo: 11
Started kloxo
Stopping named: . [ OK ]
Starting named: [ OK ]
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
Stopping php-fpm: [ OK ]
Starting php-fpm: [ OK ]
Restarting qmail:
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
I send you e_mail to see in my server and put here solution
-
Ok, the old code if after reboot still not work for nginx-proxy.
-
i put this files in TPL and after i run fixweb and restart-all
and recive this:
[root@srv script]# ./restart-all
Stopping kloxo:
Waiting for the process to die.....
Stopped kloxo
Starting kloxo: 11
Started kloxo
Stopping named: [ OK ]
Starting named: [ OK ]
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
nginx: [warn] conflicting server name "hostgame.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.hostgame.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "ilia.ro" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.ilia.ro" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "inscriereindirectoare.net" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.inscriereindirectoare.net" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "netlinkunix.eu" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.netlinkunix.eu" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "radio-host.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.radio-host.org" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Stopping nginx:. [ OK ]
Starting nginx: nginx: [warn] conflicting server name "hostgame.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.hostgame.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "ilia.ro" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.ilia.ro" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "inscriereindirectoare.net" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.inscriereindirectoare.net" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "netlinkunix.eu" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.netlinkunix.eu" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "radio-host.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.radio-host.org" on 0.0.0.0:80, ignored
[ OK ]
Stopping php-fpm: [ OK ]
Starting php-fpm: [ OK ]
Restarting qmail:
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
[root@srv script]#
and webpage worked
-
I think something wrong with your servers setting before update. Look error/warning like 'nginx: [warn] conflicting server name "hostgame.org" on 0.0.0.0:80, ignored'.
-
Hmm before update new version kloxo-mr nginx worked fine and all OK
i send you mail to my server detalies to put login in my server and see error and post here
-
Hmm before update new version kloxo-mr nginx worked fine and all OK
i send you mail to my server detalies to put login in my server and see error and post here
No need login to your server.
Look like you set 2 domains as domain.com and www.domain.com (http://www.domain.com).
It's not 'standard'.
-
Now i send again mail to you.
-
Your disconnected (not able pinging). Un-finish file save.
So, reupload tpl2.zip and then extract, fixweb and restart-all.
-
My server is ONLINE
-
i reupload tpl2 and fixwe and restart-all and again recive this:
[root@srv script]# ./restart-all
Stopping kloxo:
Waiting for the process to die.....
Stopped kloxo
Starting kloxo: 11
Started kloxo
Stopping named: . [ OK ]
Starting named: [ OK ]
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
nginx: [warn] conflicting server name "hostgame.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.hostgame.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "ilia.ro" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.ilia.ro" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "inscriereindirectoare.net" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.inscriereindirectoare.net" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "netlinkunix.eu" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.netlinkunix.eu" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "radio-host.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.radio-host.org" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Stopping nginx:. [ OK ]
Starting nginx: nginx: [warn] conflicting server name "hostgame.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.hostgame.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "ilia.ro" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.ilia.ro" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "inscriereindirectoare.net" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.inscriereindirectoare.net" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "netlinkunix.eu" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.netlinkunix.eu" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "radio-host.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.radio-host.org" on 0.0.0.0:80, ignored
[ OK ]
Stopping php-fpm: [ OK ]
Starting php-fpm: [ OK ]
Restarting qmail:
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
-
Not able access to your server from my pc. Always timeout.
-
i resend you mail