Server Freezes During Curl Command

Dec 2, 2007

I have a script that does a PHP Curl call where it downloads a large file (~20meg) to the local server.

While its doing the Curl Call, I open up a new window and keep working with the site, (ie. opening a simple image) and the browser keeps saying "Waiting for reply". As soon as the Curl Call stops, then the server works again.

What could course this?

The server is dedicated and only me using it:
Intel Core2Quad Q6600
2GB DDR RAM
Linux - CentOS 5 32bit

While its doing the curl call, I ran uptime and the load is 0.0 0.0 0.0.

From my PHPINFO:

Code:
Apache Version Apache/1.3.39 (Unix) mod_ssl/2.8.30 OpenSSL/0.9.8b
Apache Release 10339100
Apache API Version 19990320
Hostname:Port localhost:80
User/Group apache(100)/500
Max Requests Per Child: 1000 - Keep Alive: off - Max Per Connection: 100
Timeouts Connection: 120 - Keep-Alive: 1
Server Root /etc/httpd
Loaded Modules mod_php5, mod_ssl, mod_setenvif, mod_so, mod_headers, mod_expires, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_log_referer, mod_log_agent, mod_log_config, mod_env, mod_vhost_alias, http_core
HTTP_CONNECTION Keep-Alive
php.ini

Code:
max_execution_time = 1000 ; Maximum execution time of each script, in seconds
max_input_time = 1000 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = Off

; Maximum number of persistent links. -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
mysql.max_links = -1

httpd.conf

Code:
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 1000
httpd-mpm.conf - changing this made no difference

Code:
<IfModule mpm_prefork_module>
StartServers 30
MinSpareServers 10
MaxSpareServers 20
MaxClients 200
MaxRequestsPerChild 0
</IfModule>

View 2 Replies


ADVERTISEMENT

Apache :: Server Completely Freezes Until It Gets Restarted

Apr 21, 2014

We are using Apache 2.4.7 as Reverse Proxy & Using only for Single sign on. At random times our server crashes (every 1/2 weeks) in our environment.

Find the code that we put in httpd.conf file ....

View 1 Replies View Related

Yum Hangs/freezes

Oct 28, 2008

I seem to be having troubles getting yum to run. The problem occurs when I try to run yum via ssh using putty or install perl modules through whm.

When I try to run it, I generally get:
Loading "fastestmirror" plugin
And nothing after that, even if I wait a while. This happens when I run:
yum update
yum install imagemagick (my current reason for trying to get yum to run)
yum clean all
(probably other yum commands)
If I run yum with --noplugins, it just skips putting out the fastestmirror message.
Some info on my system:
CENTOS Enterprise 5.2
Kernel Version: 2.6.18-92.el5
Intel C2D e6750
WHM 11.23.2
cPanel 11.23.6-R27698

I'm not sure what other information be relevant;

View 7 Replies View Related

Server Security - PHP CURL

Aug 10, 2008

after following the perfect server setup - centos5.2 guide I have setup a home server on my dsl connection and installed openfire with relative ease. I have a paid hosting server which runs my website but I want to have it access the userservice plugin of openfire to add/remove users (which is installed on my new home webserver).

After trying fopen and CURL to post GET data to my home server without any luck I did some reading and came accross the snoopy php class. The snoopy class now allows me to get the default apache test page on my home server but when i try to point snoopy to my openfire admin on port 9090 it throws up a timeout error (but i think this may be an error in the snoopy class?).

CURL and fopen allowed me to get data from google and some other sites but not from my home server.

View 2 Replies View Related

MySQL 'freezes' Every Few Hours

Jul 9, 2007

Im running MySQL 5.0.32 on a Debian Etch server. I recently moved a couple sites from a Debian Sarge (with MySQL 4.1) server over, and now MySQL has become very unstable.

Every few hours mysql just hangs on a query. All the following queries are queued and never get executed. The only way to get things running again is forcefully killing and restarting the mysql process. After that things work again...for a few hours.

The logs (error and query log) show nothing exceptional. When it hangs and I do a 'show processlist;' I noticed that everytime a SELECT....IN (a,b,c) query is holding up everything. Could the 'IN ()' be the reason for mysql not completing the query and holding up the rest?

Another option might be to temp. go back to MySQL 4.1...but that is going to be a real problem on Debian Etch

View 5 Replies View Related

Command To Stop The Wget Command

Apr 30, 2007

Is there a command i can type into the ssh console to stop a current transfer that i started wit the wget command?

the file im wgeting always stuffs up at 51% but then the server just retries and starts again, its done it 3 times so far and i just want to completely cancle the process if possible....

View 9 Replies View Related

Rsync Command To Backup On Other Server

Mar 27, 2009

We want to backup the contents of our public_html dir to another server we sue for backups. What is the proper rsnyc command to use. I am currently in the source server and want to send it to a specific user account on the destination server.

View 2 Replies View Related

How To : Change ( Wget ) Command In Your Server

Jun 21, 2007

Most popular way of downloading these scripts is to use "wget" comman

when we need to change the command wget in our server for download some destructive script and run it through some server side program such as PHP or PERL ...

now i try to start this session by this command ...

PHP Code:

pico /usr/bin/wget 

it's show me like this!

PHP Code:

?ELF^A^A^A^@^@^@^@^@^@^@^@^@^B^@^C^@^A^@^@^@^&#65533;¡^D^H4^@^@^@ u^C^@^@^@^@^@4^@ ^@^H^@(^@^[^@^Z^@^F^@^@^@4^@^@^@4^&#65533;^D^H4^&#65533;^D^H^$^@^@^@^&#1591;^@^@^@^Û^@^@^@c^@^@^@C^@^@^@^@^@^@^@^@^@^@^@^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^E^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^@^@^@  ^@^@$^@^@^@P&#1575;^G^H^@^@^@^@^Q^@ø&#65533;^É^D^@^@^@^@^@^@Æ^@^@^@^R^@^@^@^È^E^@^@^@^@^@^@v^@^@^@^R^@^@^@Û^A^@^@^@^@^@^@&^@^@^@^R^@^@^@^O^E^@$^@I^F^@^@^@^@^@^@<^@^@^@^R^@^@^@^A^E^@^@^@^@^@^@~^A^@^@^R^@^@^@&#1589;^G^@^@^@^@^@^@1^@^@^@^R^@^@^@ñ^@^@^@^@^@^@^@ð^C^@^@^R^@^@^@r$^@^@^@^R^@^@^@A^G^@^@^@^@^@^@M^@^@^@^R^@^@^@^&#1589;^D^@^@^@^@^@^@E^@^@^@^R^@^@^@&#65533;^D^@^@^@^@^@^@=^A^@^@^R^@^@^@Ç^@^@^@^@^@^@^@J^@^$^@&#1588;^D^@^@^@^@^@^@'^@^@^@^R^@^@^@y^D^@^@^@^@^@^@^Z^A^@^@^R^@^@^@^_^F^@^@^@^@^ 

now how can i change this command ? or change anything in this file ( wget ) ...

View 14 Replies View Related

How To Set Up Exim On Linux Server To Not Allow More Than One Recipient Per Command

Nov 28, 2008

how to set up exim on a bare linux server to not allow more than one recipient per command?

I don't want to allow, for example, mail lists.

Example of exim command
2008-11-19 20:14:11 [2135] cwd=/path/to/account 3 args: /usr/sbin/sendmail -t -i
2008-11-19 20:14:11 [2135] 3L5JXP-0001bH-MF <= apache@server.com U=apache P=local S=1091 T="Bla bla" from <apache@server.com> for mail1@ee.com mail2@dd.com mail3@dfffg.com ETC ETC ETC

View 3 Replies View Related

Server Refused To Start Shell/command

Apr 28, 2008

I am having some server issues.

A part of my sshd_config:
Port 2255
Protocol 2
ListenAddress 8x.xx.xx.46
PermitRootLogin no

Recently, when I want to connect to my server using putty, I get "Connection Refused" using the above IP address and port.
When I enter the above IP address (or any other IP address that is stored/set on the server) and port 22, I get "Server refused to start shell/command".

It did work before, using 8x.xx.xx.46:2255 and when I enter 8x.xx.xx.46:22 it will block. But now... not anymore.

I am using "Direct Admin" to do a "System Backup". I do see the right port and IP address in the sshd_config file.

How can I fix this? I can not login the server anymore, however I am going to the datacenter tomorrow.

OS: CentOS
Installed firewall / protection: APF + BFD
Control Panel: Direct Admin

View 5 Replies View Related

Which Command To See What Is Causing High Server Load.

May 18, 2007

Which command do we type to see what is causing a high server load?

I've restarted the VPS numerous of times, and I wish to found out the problem

View 7 Replies View Related

Internal Server Error - Invalid Command Php_value

Jul 17, 2009

I just went to log on to my site and noticed that I have an "Internal Server Error". I checked the cpanel error log and found:

/home/foo/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration,

Last night, one of my admins updated php to use suPHP...I guess it broke this.

View 10 Replies View Related

Linux Proc Command & Which HDD On Server Scsi Or Sata

Jun 20, 2008

1) what is the command to find out what processor is installed on the server

2) how do i find out what type on hdd i have sata or scsi?

whats the ssh command to find these two things out?

View 3 Replies View Related

Export All SSL Certificates Via Command Line On Windows Server 2003

Jun 20, 2008

way to automatically export/backup all the certificates on our Windows Server 2003 boxes every night (through a command line scheduled task).

I can do it manually via Certificates MMC (by selecting all certs and exporting them as an SST file). But I would prefer this process to be automated.

View 0 Replies View Related

Plesk 12.x / Linux :: Server Running Out Of Memory By Sort Command

Mar 26, 2015

Why servers are being run out of memory by the 'sort' command even when the logs are small? Here's what is currently on a site:

-rw-r--r-- 2 root root 22392143 Mar 26 11:40 access_log
-rw-r--r-- 2 root root 68018869 Mar 26 10:50 access_log.processed.1
-rw-r--r-- 3 root root 67671664 Mar 26 09:50 access_log.processed.2
-rw-r--r-- 1 root root 69908 Mar 26 10:50 access_log.stat

[Code] .....

View 1 Replies View Related

Need CURL Enabled

Apr 9, 2009

I have a Linux-Debian server, I have Apache2, PHP ect setup for a basic website im running on it too, However I need cURL enabled, I cant seem to find any options in the php.ini files to enable cURL at all.

I know that you just uncomment it to enable it however I dont see it at all, even it being disabled. I opened it in notepad and used the SEARCH feature and it couldnt find it eithier.

View 5 Replies View Related

CURL Library

Jan 9, 2009

Do you know what cURL Library means?

I have seen that in apthost.com reseller plan.

View 0 Replies View Related

Install CURL

Oct 14, 2009

I got some one to help me install cURL. Now all I have to do is change the permissions for the /usr/bin file for the crons and such.

View 2 Replies View Related

How To Downgrade CURL

May 8, 2008

I'm now running curl 7.18.1 and would like to donwgrade it to the previous version.

View 4 Replies View Related

Curl & GD On PHP5.2.5

Apr 12, 2008

I have PHP 5.2.5 compiled with GD library working on my webserver,
yesterday i wanted to add Curl Support, so i had to recompile php.

I downloaded and installed Curl latest version and tried to recompile PHP :

'./configure'
'--prefix=/usr/local/php'
'--enable-discard-path'
'--disable-force-cgi-redirect'
'--enable-shared'
'--disable-static'
'--disable-debug'
'--disable-rpath'
'--enable-pic'
'--enable-inline-optimization'
'--enable-memory-limit'
'--with-gd'
'--with-png-dir'
'--with-jpeg-dir'
'--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php'
'--with-pear=/usr/share/pear'
'--enable-magic-quotes'
'--enable-debugger'
'--enable-track-vars'
'--with-exec-dir=/usr/bin'
'--with-versioning'
'--with-mod_charset'
'--with-regex=php'
'--enable-track-vars'
'--enable-trans-sid'
'--enable-safe-mode'
'--enable-ctype'
'--enable-ftp'
'--with-gettext=/usr'
'--enable-posix'
'--enable-session'
'--enable-sysvsem'
'--enable-sysvshm'
'--with-openssl=/usr'
'--without-kerberos'
'--with-freetype-dir=/usr'
'--with-zlib=/usr'
'--with-zlib=/usr'
'--with-zlib-dir=/usr'
'--with-zlib-dir'
'--enable-xslt'
'--with-xslt-sablot'
'--with-iconv-dir=/usr/local/lib'
'--with-mysql-sock=/var/lib/mysql/mysql.sock'
'--with-mysql'
'--enable-mbstring=all'
'--enable-fastcgi'
'--enable-discard-path'
'--enable-force-cgi-redirect'
'--with-curl=/usr/local/curl'

I can't get it working, this is the error i get :

..

checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
If configure fails try --with-freetype-dir=<DIR>
configure: error: GD build test failed. Please check the config.log for
details.

I think i'm not the only one who is experiencing this problem, take a look here:
[url]

Why do PHP.net don't give much importance to this BUG?

I'm using the same OS : Centos 5

View 4 Replies View Related

Curl And Emails

Dec 5, 2007

I wanna install curl on my server its Centos 4.5 and SL told me I have around 30K mails pending on the serve can anyone tell me how to remove them from pending?

View 6 Replies View Related

Installing Curl?

Mar 16, 2007

I am trying to install curl on my server...

wget [url]
make
make install
ldconfig -v

This is what I haved done so far. Where do I go from here?
"Then use --with-curl in PHP's configure" this was the last step on the instructions but i do not know what it means.

View 1 Replies View Related

Install CUrl

Feb 9, 2007

I have been attempting to get curl installed on my server, but seem to have run into a snag. When I type:

curl-config --version

I get a response that I have: libcurl 7.16.0

However, when I try to install WHMCS, it still shows I do not have Curl with SSL support. I have used /scripts/easyapache, however there was never an option under 6 or 7 with CURL. I also tried with Cpanel WHM and used the Apache Update to 4.4.4 and checked both Curl options and OpenSSL. However still no luck.

I have also restarted services and rebooted the server.

View 14 Replies View Related

How To Install CURL With SSL Support

Dec 8, 2008

CURL installed with SSL Support one of the programs I am trying to use on my servers needs the above programs. How do I find and install these? Running CentOS 5

View 5 Replies View Related

How Many Hosts Support CURL

Nov 29, 2008

how many web hosts support cURL? Is it widely supported? Do LAMP setups come with this?

View 14 Replies View Related

Cannot Compile PHP5 With CURL

Jul 29, 2008

I'm trying to compile PHP with curl enabled but I cannot get it work.

Here is the part of config.log

....
configure:32740: checking whether to enable calendar conversion support
configure:32778: result: no
configure:33078: checking whether to enable ctype functions
configure:33116: result: yes
configure:33416: checking for cURL support
configure:33455: result: yes
configure:33464: checking if we should use cURL for url streams
configure:33482: result: no
configure:33492: checking for cURL in default path
configure:33497: result: found in /usr
configure:33515: checking for cURL 7.10.5 or greater
configure:33529: result: libcurl 7.15.5
configure:33538: checking for SSL support in libcurl
configure:33542: result: yes
configure:33560: checking how to run the C preprocessor
configure:33678: result: gcc -E
configure:33702: gcc -E conftest.c
configure:33708: $? = 0
configure:33740: gcc -E conftest.c
conftest.c:201:28: error: ac_nonexistent.h: No such file or directory
configure:33746: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
...

As you can see it shows "ac_nonexistent.h: No such file or directory" I installed both gcc and gcc-c++ libraries but it doesn't work.

PHP version is 5.2.6 and OS is CentOS 5 64bit

View 7 Replies View Related

Strange Hostname- With Curl

Sep 25, 2008

I have one server with multiple websites hosted on it. It's powered with Cpanel / WHM.

When I run the command 'wget mydomain.com' from this server, I download a Cpanel / WHM landing page instead of the actual homepage from mydomain.com.

I can successfully load mydomain.com in a browser. I can also run the 'wget' command from my local computer and download the correct homepage.

When I run this command from the server mydomain.com is hosted on, Apache returns the home page for the default virtual host for my IP address (ie. cpanel landing page). I encounter this same problem when using CURL or PHP Sockets.

I am behind a firewall. Could this be causing the issue? Does anyone have any ideas how I could fix this?

This is a big problem as I have websites that need to use a web service from a domain hosted on the same machine.

View 3 Replies View Related

Valueweb.com Path To CURL

Nov 28, 2007

Im having problems configuring my shopping cart.

Im hosting with www.valueweb.com

Does anybody know what is the path to curl?

I called them but they gave me 2 paths and none of them work.

View 2 Replies View Related

CURL Named Lookup

Sep 26, 2007

Friend of mine asked me what "CURL named lookup issue resolved" means, he's got a CentOS 4 machine, with cPanel/WHM latest builds I tried recompiling apache and even cPanel at some point but no good..

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved