Home arrow Forum

Remository Forum

 


bitpt

Karma: 0  
SOLVED: Changing server from DSO to Fascgid. - 2012/01/08 20:53 I have remository working with more then 29000 files, without large problems in 5 years, more then 30000 unique visitors daily.

I change server and change DSO handler to Fastcgi

Old joomla 1.0.15 with some modz.
Remository 3.52.8 with some modz, double loging, avoid partial content download pass log file
PHP 5.2.17 already used in old server
eaccelarator already used in old server
Mod_deflate and GZIP on already used in old server

first, upload size only work with 100k files, solved

FCGID need:

FcgidMaxRequestLen 51200000

In this case 50M


Upload seems to slow i don't know why.
Observ: In site logs i saw many users give up when uploading files, i ask why ? and most answers was, when i upload files i really don't see whats up,
this a electronics website with large files, many visitors giving up when upload large files.... files with 30M 30k/s in some cases, what the visitor do in that time ?....... (upload progress bar or upload page in new window seems a solution for this)

logs have many error500, i try do the same, but seems all is working well, i can't generate the error myself.

Most of this error 500 happen because dir owners need change from DSO (need to be 777) to FCGI (need to be 755), in this case, it isn't.

checking apache error logs, i can't see nothing can do this.

In all my 22 sites in this server, no problems with DSO to FCGI changes, only remository have this little problem.
Remository have all functions and work, users can do downloads, except this in servers logs with error 500.

Anyone can help with this issue ?
Thanks in advance.
(sorry my bad english)

PS- In some cases(few).... i have this error ... (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server....

Post edited by: bitpt, at: 2012/01/10 01:32
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:Changing server from DSO to Fascgid. - 2012/01/09 19:14 I'm sorry you're having problems.

Standard PHP upload happens outside the control of an application such as Remository, so upload speed is not affected by Remository.

Having an upload progress indicator is a long standing request, but has been difficult to implement in PHP, especially for a product that gets installed into many different hosting environments. I am hoping that maybe the latest JavaScript uploaders may offer a solution.

It can be difficult to track 500 errors - the main hope is looking through all the server logs - not forgetting the suexec.log.

Connection reset may indicate a timeout - you may need to adjust timeouts - if handling large files Remository will inevitably take time to complete requests.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
bitpt

Karma: 0  
Re:Changing server from DSO to Fascgid. - 2012/01/09 20:10 Thanks for your reply

This error:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server....

Happen because of eaccelerator.so.... mpm-worker being multithreaded and eaccelerator not... APC installed, no error after.

error 500:
Thanks for your reply... really SUEXE have some cmd : php5 errors not related with this error500.... let me see if i catch origin of this.

For upload i do a little php script with ajax and swf bar, insert data in jos_remository_files but i need to check complet upload (don't work, file missing in download), the goal is, send files and populate db, need more work to check how upload works(take time i have a slow brain).

Thanks for your reply... let me see if i solve this one.

This error 500 happen always when startdown function start...



Post edited by: bitpt, at: 2012/01/09 20:11

Post edited by: bitpt, at: 2012/01/09 20:16
  | | Sorry, you do not currently have permission to write here.
bitpt

Karma: 0  
SOLVED - Re:Changing server from DSO to Fascgid. - 2012/01/10 00:35 The problem was in FCGI settings, FCGI like SuPHP use a individual php.ini or php.conf for each user, but, the way FCGI load php.ini is diferent from SuPHP.

Made correct config to FCGI to load individual php.ini.

In .htaccess
Code:

  Action php5-fastcgi /cgi-bin/php5.fcgi  



copy php.ini to /username/public_html/cgi.bin

create a file in /cgi-bin/php5.fcgi the add the following lines in it:
Code:

 #!/bin/sh export PHP_FCGI_CHILDREN=1 export PHP_FCGI_MAX_REQUESTS=10 exec /usr/local/ cpanel/cgi-sys/php5  



If you have cpanel, if not, use correct path
then
Code:

 chmod -x php5.fcgi



.....carefull with permissions.....

don't forget php.conf (this change after new apache rebuild) use instead include in httpd.conf

restart httpd

Code:

 service restart httpd



and all errors 500 gone!!!

THIS CAN TURN YOUR SERVER OFF... IF YOU DON'T KNOW WHAT YOU ARE DOING.... PLEASE LEAVE YOUR SERVER ALONE

Post edited by: bitpt, at: 2012/01/10 00:40

Post edited by: bitpt, at: 2012/01/10 00:49
  | | Sorry, you do not currently have permission to write here.

Save FM Radio

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 11 guest online