MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: suplover on 2013-08-08, 19:59:47
-
I was having some problems with dns and webserver while i try to fix it i tried a few things but after i run "yum update"
/script/cleanup command give me "-bash: /script/cleanup: Permission denied"
and then i run sh /script/upcp and reboot but now /script/cleanup command gives me "line 14: lxphp.exe: command not found"
What should i do? Thanks.
-
First be sure you updated to newest MR repo.
cd /etc/yum.repos.d/
rm kloxo-mr.repo
wget https://raw.github.com/mustafaramadhan/kloxo/release/kloxo-mr.repo
Then just to be safe:
yum update
yum remove lxphp
yum install php52s
sh /script/cleanup
sh /script/restart-all
If you get an error like no lxphp package installed that is ok. :)
That will fix everything :)
-
Don't install lxphp but php52s.
It's look like your Kloxo-MR not latest version. So, need update.
-
Thats what I said :)
-
Don't install lxphp but php52s.
It's look like your Kloxo-MR not latest version. So, need update.
I just did what Christopher said and kloxo works again (thanks for that) now but still have problem with webserver
Current Kloxo Version: 6.5.0.f-2013080701
-
Look like you have custom files inside /home/<driver>/tpl. You need modified custom files. Different from previous, latest upload use socket rather then ip-port based for php-fpm.
-
Look like you have custom files inside /home/<driver>/tpl. You need modified custom files. Different from previous, latest upload use socket rather then ip-port based for php-fpm.
sorry i confused a little bit now but as i remember i modified only this file
'/etc/sysconfig/network-scripts/ifcfg-eth0'
and i think now i have a progress, i see 502 Bad Gateway, nginx/1.5.2
-
If you have custom. tpl files you will need to update them accordingly. If you have no idea what we are talking about :) you don't have them.
If not try this: Kloxo panel. Switch Programs. Change Webserver to a different webserver. Wait for it to update properly. Switch back to your webserver. Update.
So: if use apache: try
nginx then back to apache.
This old trick sometimes fixes problems :)
-
If you have custom. tpl files you will need to update them accordingly. If you have no idea what we are talking about :) you don't have them.
If not try this: Kloxo panel. Switch Programs. Change Webserver to a different webserver. Wait for it to update properly. Switch back to your webserver. Update.
So: if use apache: try
nginx then back to apache.
This old trick sometimes fixes problems :)
Yes mine was "i have no idea" :) now i'm playing with those settings as you suggest thanks
-
Ok i tried nginx then back to apache also reverse and different Php Branch and i also run sh /script/fixweb and sh /script/restart-all to be sure but still same
-
Try looking here please:
www.nginxtips.com/502-bad-gateway-using-nginx/ (http://www.nginxtips.com/502-bad-gateway-using-nginx/)
Let me know if any of that helps.
-
Does apache run? Try suphp. Does any other combination work?
I am not familiar with nginx. But it appears to be a php-fpm issue. Try running straight apache.
If nothing. Try apache / suphp. Be sure to click fix all permissions at bottom of webconfig area.
-
Does apache run? Try suphp. Does any other combination work?
I am not familiar with nginx. But it appears to be a php-fpm issue. Try running straight apache.
If nothing. Try apache / suphp. Be sure to click fix all permissions at bottom of webconfig area.
before i was using nginx but i can use apache too no problem just both doesn't work. I set apache and then when i try to set suphp it says " httpd_restart_failed" and remain as it is.
-
What does the error logs say? Mustafa WILL know better than me since he has ran into many problems and solved them!
Interesting that appache won't start. Sounds like a conf problem.
Was this a fresh install or upgrade?
-
I have the same problem with nginx but apache runs fine... Already tried all the known solutions.. nginx wont work...
-
nginx error.log :
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:80 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: bind() to [::]:443 failed (98: Address already in use)
2013/08/08 22:40:44 [emerg] 448#0: still could not bind()
Then saw that httpd was still running !
So i restarted the server and just in case i did service httpd status
httpd is stopped <--correct now
sh script/fixweb
service php-fpm restart
service nginx restart
Then it seems from error log that nginx was running (*but only when i acessed from browser [ip adress]:80)
here is the log output:
2013/08/08 22:43:14 [warn] 551#0: *36 using uninitialized "rootdir" variable, client: 208.xx.x.xxxx, server: _, request: "GET /apple-touch-icon.png HTTP/1.1", host: "xxxx.xxxxxxx.info"
But when i access a domain then nothing on the log and still 502 error on browser...
Any idea ?
-
Depend on using apache, nginx or nginx-proxy (nginx as frontend and apache in backed).
Frontend (also apache and nginx alone) using port 80 and backend using port 30080. If you found issue for port conflict it's maybe this port try to use by more then 1 applications.
Another issue, Kloxo-MR using 'special' /etc/httpd/conf/httpd.conf and /etc/nginx/nginx.conf where taken from /home/apache/etc/conf and /home/nginx/etc/conf. Running /script/cleanup will be fix this issue. If still not fixed after, need reboot or stop apache and or nginx manually with 'service httpd stop' and 'service nginx stop' before running 'sh /script/restart-services'.
-
on me it was like this;
# service httpd status
httpd: unrecognized service
then i run
yum update
yum install httpd nginx
switched between nginx and apache and run
sh /script/fix-chownchmod
script/cleanup
sh /script/restart-all
now i again have same;
# service httpd status
httpd: unrecognized service
-
Inform here 'cat /usr/local/lxlabs/kloxo/etc/slavedb/driver'
-
Inform here 'cat /usr/local/lxlabs/kloxo/etc/slavedb/driver'
# cat /usr/local/lxlabs/kloxo/etc/slavedb/driver
O:6:"Remote":1:{s:4:"data";a:4:{s:3:"web";s:6:"apache";s:3:"dns";s:4:"bind";s:4:"spam";s:12:"spamassassin";s:7:"pserver";s:9:"localhost";}}[root@simonov ~]#
-
So, you see that.
Your setting using apache/httpd as web server. Install/reinstall httpd and nginx and then running clean will be remove nginx and update httpd config.
That it.
-
So, you see that.
Your setting using apache/httpd as web server. Install/reinstall httpd and nginx and then running clean will be remove nginx and update httpd config.
That it.
Ok i did
yum install httpd
yum install nginx
script/cleanup
sh /script/restart-all
and i get;
Stopping named: . [ OK ]
Starting named: [ OK ]
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Sy ntax error on line 3 of /etc/httpd/conf.d/suphp52.conf: Cannot load /etc/httpd/m odules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: cannot open sh ared object file: No such file or directory
[FAILED]
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 ]
Stopping kloxo-phpcgi: [ OK ]
Starting kloxo-phpcgi: [ OK ]
Stopping kloxo-hiawatha: [ OK ]
Starting kloxo-hiawatha: [ OK ]
-
Try running 'sh /script/cleanup'.
-
Try running 'sh /script/cleanup'.
ok this time i only get this error
cp: cannot stat `/home/kloxo/httpd/webmail/horde/scripts/sql/horde_groupware.mys ql.sql': No such file or directory
sh: /home/kloxo/httpd/webmail/horde/scripts/sql/groupware.mysql.sql: No such fil e or directory
cp: cannot stat `/home/kloxo/httpd/webmail/horde/config/horde_conf.php': No such file or directory
cp: cannot stat `/home/kloxo/httpd/webmail/t-dah/inc/config/t-dah_config.mail.ph p': No such file or directory
cp: cannot stat `/home/kloxo/httpd/webmail/t-dah/inc/config/t-dah_config.paths.p hp': No such file or directory
cp: cannot stat `/home/kloxo/httpd/webmail/t-dah/inc/config/t-dah_config.php': N o such file or directory
and sh /script/restart-all gives me;
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf.d/suphp52.conf: Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: cannot open shared object file: No such file or directory
[FAILED]
-
Horde and t-dah already remove from Kloxo-MR. delete /home/kloxo/webmail/horde and /home/kloxo/webmail/t-dah.
For httpd issue, try change to another web server (say it lighttpd) and change back to previous (say it apache or nginx-proxy) on 'switch applications'.
-
Horde and t-dah already remove from Kloxo-MR. delete /home/kloxo/webmail/horde and /home/kloxo/webmail/t-dah.
For httpd issue, try change to another web server (say it lighttpd) and change back to previous (say it apache or nginx-proxy) on 'switch applications'.
ok i did it and then i run these commands to see if i can get back web server working but didn't helped;
sh /script/fix-chownchmod
sh /script/fixweb
sh /script/fixdns
sh /script/fixphp
sh /script/cleanup
sh /script/restart-all
and restart i get again same error;
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf.d/suphp52.conf: Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: cannot open shared object file: No such file or directory
[FAILED]
now playing with Php Branch and Php Type
-
Try disable secondary php. And then enable again.
-
Try disable secondary php. And then enable again.
I don't able to disable, it says; Alert: httpd_restart_failed and remain as enabled.
-
and also don't able to change Php Type it stuck as php-fpm_event every time i try i get same alert "httpd_restart_failed" but i able to play with Php Branch
-
Try copy /home/apache/etc/conf/httpd.conf to /etc/httpd/conf/httpd.conf. It's because because use 'modified' httpd.conf and Kloxo-MR think this 'modified' file already overwrite 'original' httpd.conf.
-
In many situation, change to another webserver (better lighttpd) and change back to previous (apache or nginx-proxy) will be fix apache issue.
-
In many situation, change to another webserver (better lighttpd) and change back to previous (apache or nginx-proxy) will be fix apache issue.
i try many time but unfortunately it didn't worked for me...
-
Try copy /home/apache/etc/conf/httpd.conf to /etc/httpd/conf/httpd.conf. It's because because use 'modified' httpd.conf and Kloxo-MR think this 'modified' file already overwrite 'original' httpd.conf.
I did it but still have issue
on sh /script/fixphp i'm getting this for every clients
PHP Fatal error: Directive 'register_long_arrays' is no longer available in PHP in Unknown on line 0
-
Look like your php.ini still using from php 5.2 where in your server using php 5.3/5.4.
I don't know what happens until you found this situation. Usually run 'sh /script/fixweb' will be fixed web server, php.ini and php-fpm configs.
-
Look like your php.ini still using from php 5.2 where in your server using php 5.3/5.4.
I don't know what happens until you found this situation. Usually run 'sh /script/fixweb' will be fixed web server, php.ini and php-fpm configs.
Well everything was fine, i was using nginx, djbdns, php53u, php-fpm_event then i had problem with webmail and to fix it updated kloxo then i had a problem with dns server, all i did is using those fix comments and yum update
-
after update and then always run 'sh /script/cleanup' and then restart services and kloxo with 'sh /script/restart-all'.
-
Looks like apache mod_suphp is missing for some reason.
Try
yum install mod_suphp
And when restart services if you get another http error like: cannot load mod_rewrite... or whatever mod_??? just install them UNTIL you can get httpd to start.
Then use Kloxo to switch php branch. Version. Then web server switch.
I agree with Mustafa - usually all problems can be fixed with switch webserver / sh/script/cleanup.
Something went bad :( If you still cannot get it to work you may need to yum remove both webservers - manually delete all config files (not kloxo files) then re-install. sh/script/cleanup. It appears your config files are not getting fixed.
-
I'm still not able to use lxphp. If I install it using yum, when I run /script/cleanup, it will automatically vanish lxphp.
What's the fix for this issue?
-
There is no lxphp any longer. Mustafa replaced it with php52s.
-
Yes, I read that. But /script/upcp tries to run lxphp.exe when executing some scripts like fixdns. I'm wondering if my scripts are outdated or I'm missing something.
If anyone was able to fix the same issue, please share :)
-
It sounds like you didn't update your repo file. I would suggest doing that first:
cd /etc/yum.repos.d/
rm -rf kloxo-mr.repo
wget https://raw.github.com/mustafaramadhan/kloxo/release/kloxo-mr.repo
yum update
yum reinstall kloxomr
yum remove lxphp
yum install php52s
sh /script/cleanup
sh /script/restart-all
That should do it.
-
Everything works fine on me now thanks to Mustafa, just have one question; when i run sh /script/restart-all there is problem with one client
Stopping php-fpm: [FAILED]
Starting php-fpm: [10-Aug-2013 10:55:46] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/nefiarda.sock
[10-Aug-2013 10:55:46] ERROR: FPM initialization failed
[FAILED]
i deleted this user from kloxo and run
adduser nefiarda; sh /script/fixweb; service php-fpm restart;
but still same do you guys have any idea what can i do about it?
-
Try run 'service php-fpm stop; rm -rf /home/php-fpm/sock/nefiarda.sock; sh /script/fix-phpfpm; service php-fpm start'.
So, it's delete file first and then fixweb and restart php-fpm. If not work, try delete client the name nefiarda.
-
Try run 'service php-fpm stop; rm -rf /home/php-fpm/sock/nefiarda.sock; sh /script/fix-phpfpm; service php-fpm start'.
So, it's delete file first and then fixweb and restart php-fpm. If not work, try delete client the name nefiarda.
[root@simonov ~]# service php-fpm stop; rm -rf /home/php-fpm/sock/nefiarda.sock; sh /script/fix-phpfpm; ser vice php-fpm start
Stopping php-fpm: [FAILED]
sh: /script/fix-phpfpm: No such file or directory
Starting php-fpm: [10-Aug-2013 11:50:40] ERROR: An another FPM instance seems to already listen on /home/ph p-fpm/sock/moche.sock
[10-Aug-2013 11:50:40] ERROR: FPM initialization failed
[FAILED]
[root@simonov ~]#
-
Sorry, wrong. Use 'sh /script/fixphpfpm'.
-
Sorry, wrong. Use 'sh /script/fixphpfpm'.
Perfect! Thanks again Mustafa