MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Nightmaster on 2013-02-25, 17:31:45
-
Heya all! :)
I installed latest Kloxo-MR version yesterday on my VPS and it works just fine. :)
However i have a problem like this. When i try to upload files (as an attachments on forum, avatars, plugins in worpress/joomla atc) i got 500 internal server error. Actually that seems to be happening when i try to upload files bigger than about 150kb which is weird. It doesn't matter if the file is in zip, png, pdf, txt, jpg or some other extension, it's always the same.
I'm using fcgid_worker and i tried to use Fix 'ownership' And 'permissions' feature, but that doesn't seems to help.
Also the second "problem" i have is that stats are not loading. It's turned on but when i hit "awstats" button or when i go to domain.com/stats/ i got just white page and The page is not found error. Don't have an idea where to go on from there...
Let me know if you need any more informations that i can provide...
Any help is highly appreciated.
Regards,
Nikola
-
Awstat not work for nginx and nginx-proxy.
For error 500, try 'sh /script/fixweb; sh /script/fix-chownchmod; sh /script/restart-services'.
-
Still the same.
The only difference is that i got notice on my forum that cache/attachments directory are not writable, so i changed chmod back to 777.
Here's the results of runned queries:
[root@vserver /]# sh /script/fixweb
- For help, type '/script/fixweb --help'
- No argument supplied. Defaulting to localhost (master) servers
Fixing Web server config
- 'defaults' and 'php-fpm' at 'localhost'
- 'razmena.samo-opusteno.info' ('admin') at 'localhost'
- 'samo-opusteno.info' ('admin') at 'localhost'
- 'static.samo-opusteno.info' ('admin') at 'localhost'
- 'vesti.samo-opusteno.info' ('admin') at 'localhost'
[root@vserver /]# sh /script/fix-chownchmod
- For help, type '/script/fix-chownchmod --help'
- No argument supplied. Defaulting to all
Fixing Chown and Chmod
- chmod 755 FOR /usr/local/lxlabs/kloxo/cexe AND INSIDE
- chown apache:apache FOR /home/kloxo/httpd/ AND INSIDE
- chmod 644 FOR *.php* INSIDE /home/kloxo/httpd/
- chmod 755 FOR /home/kloxo/httpd/ AND INSIDE
- chmod 771 FOR /home/kloxo/httpd/
- chown root:root FOR /home/apache/ AND INSIDE
- chown root:root FOR /home/lighttpd/ AND INSIDE
- chown root:root FOR /home/nginx/ AND INSIDE
- chown admin:apache FOR /home/admin/
- chmod 751 FOR /home/admin/
- chown admin:admin FOR INSIDE /home/admin/kloxoscript/
- chown admin:apache FOR /home/admin/kloxoscript/
- chmod 644 FOR *.php* INSIDE /home/admin/kloxoscript/
- chmod 755 FOR /home/admin/kloxoscript/ AND INSIDE
- chown admin:admin FOR INSIDE /home/admin/opusteno/razmena/
- chmod 644 FOR *.php* INSIDE /home/admin/opusteno/razmena/
- chmod 755 FOR /home/admin/opusteno/razmena/ AND INSIDE
- chown admin:admin FOR /home/admin/opusteno/razmena/
- chmod 755 FOR /home/admin/opusteno/razmena/cgi-bin AND FILES
- chown admin:admin FOR INSIDE /home/admin/opusteno/
- chmod 644 FOR *.php* INSIDE /home/admin/opusteno/
- chmod 755 FOR /home/admin/opusteno/ AND INSIDE
- chown admin:admin FOR /home/admin/opusteno/
- chmod 755 FOR /home/admin/opusteno/cgi-bin AND FILES
- chown admin:admin FOR INSIDE /home/admin/opusteno/static/
- chmod 644 FOR *.php* INSIDE /home/admin/opusteno/static/
- chmod 755 FOR /home/admin/opusteno/static/ AND INSIDE
- chown admin:admin FOR /home/admin/opusteno/static/
- chmod 755 FOR /home/admin/opusteno/static/cgi-bin AND FILES
- chown admin:admin FOR INSIDE /home/admin/opusteno/vesti/
- chmod 644 FOR *.php* INSIDE /home/admin/opusteno/vesti/
- chmod 755 FOR /home/admin/opusteno/vesti/ AND INSIDE
- chown admin:admin FOR /home/admin/opusteno/vesti/
- chmod 755 FOR /home/admin/opusteno/vesti/cgi-bin AND FILES
[root@vserver /]# sh /script/restart-services
Stopping named: . [ OK ]
Starting named: [ OK ]
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Stopping nginx:. [ OK ]
Starting nginx: [ 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@vserver /]#
-
http://razmena.samo-opusteno.info/ (http://razmena.samo-opusteno.info/) and http://vesti.samo-opusteno.info/ (http://vesti.samo-opusteno.info/) look like normal but very slow.
-
Yeah, it works fine... I don't see that it's slow right now, but it may be as i didn't turned on the cache and things yet.
Any other suggestion to fix those 500 errors maybe?
Stats is not important, so let's forget about that one :P
Thanks for your quick answers man! :)
-
Usually error 500 related to php itself and or ownership and permissions of files (especially php files) and directory.
About stats, use webalizer instead awstats. This forum using webalizer.
-
Hello there again,
I tried to change chmod of all directories to 777/755 as well as of files (777/644) but all combinations i tried didn't gave result as i wanted. Still got that 500 error whatever i do.
I also tried to run this in ssh:
find . -type f -print0 | xargs -0 chown admin:admin
find . -type d -print0 | xargs -0 chown admin:admin
That also didn't help.
Should I maybe try to change php type to smth else?
Regards.