Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-29, 11:57:55

Author Topic: 500 error on uploading files and stats problem  (Read 6091 times)

0 Members and 1 Guest are viewing this topic.

Offline Nightmaster

  • Junior Member
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
500 error on uploading files and stats problem
« 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
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error on uploading files and stats problem
« Reply #1 on: 2013-02-25, 17:36:21 »
Awstat not work for nginx and nginx-proxy.

For error 500, try 'sh /script/fixweb; sh /script/fix-chownchmod; sh /script/restart-services'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Nightmaster

  • Junior Member
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: 500 error on uploading files and stats problem
« Reply #2 on: 2013-02-25, 19:10:33 »
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:
Quote
[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 /]#
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error on uploading files and stats problem
« Reply #3 on: 2013-02-25, 19:18:48 »
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Nightmaster

  • Junior Member
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: 500 error on uploading files and stats problem
« Reply #4 on: 2013-02-25, 19:21:24 »
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! :)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 error on uploading files and stats problem
« Reply #5 on: 2013-02-25, 19:26:47 »
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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Nightmaster

  • Junior Member
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: 500 error on uploading files and stats problem
« Reply #6 on: 2013-02-26, 04:49:16 »
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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.043 seconds with 18 queries.

web stats analysis