943,925 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 6725
  • PHP RSS
Apr 1st, 2008
0

Warning: exec(): Unable to fork

Expand Post »
I am very new to php programming, but not new to web programming. I am setting up an osCommerce store on a W2k03/IIS server and have run into the error below. This happens on the final submit order button. I've done some searching on the web and the general concensus was that it may be a permissions issue. I need to get this resolved and I've not gotten any response in the osCommerce forum which leads me to believe tha maybe it isn't an osCommerce issue. Can anyone tell me if that appears to be the problem? What do I do to correct it? The store is set up at thehoglady.com/catalog if you want to see the problem for yourself.

Thanks in advance for any help.


Warning: exec(): Unable to fork [/usr/local/bin/curl -d "target_app=WebCharge_v5.06&fulltotal=8.98&ordernumber=0&ccname=PayPal&baddress=2436+x+xxxx+xxxx+Drive&bcity=xxxxx&bstate=Arkansas&bzip=xxxxx-5337&bcountry=Array&bphone=479-571-xxxx&email=cmr@xxxxx.com&trantype=sale&response_mode=simple&username=thehoglady@xxx.xxx&pw=xxxxxxxx&ccidentifier1=244&ccnumber=xxxxxxxx64&month=06&year=2009&connection_method=POST&delimited_fmt_field_delimiter==&delimited_fmt_include_fields=true&delimited_fmt_value_delimiter=|&delimitedresponse=Y&include_extra_field_in_response=N&last_used_response_num=5&response_fmt=delimited&upg_auth=zxcvlkjh&merch_ip=&upg_version=version&yes=Y" http://transactions.innovativegatewa...teway.aai.Aai] in D:\hshome\hers2kee\thehoglady.com\catalog\includes\modules\payment\innovative.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at D:\hshome\hers2kee\thehoglady.com\catalog\includes\modules\payment\innovative.php:111) in D:\hshome\hers2kee\thehoglady.com\catalog\includes\functions\general.php on line 29
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Hers2keep is offline Offline
22 posts
since Jul 2007
Apr 1st, 2008
0

Re: Warning: exec(): Unable to fork

Hi there,
I run PHP on a Windows box but with Apache (very easy to set up with XAMPP http://www.apachefriends.org/en/xampp.html).
I didn't hit this problem even though I worked with osCommerce.

Could this be the solution for you?
http://www.somacon.com/p255.php
Reputation Points: 27
Solved Threads: 16
Junior Poster
petr.pavel is offline Offline
116 posts
since Mar 2008
Apr 1st, 2008
0

Re: Warning: exec(): Unable to fork

/usr/local/bin/curl seems to refer to a linux filesystem. Have you checked the file to make sure you have got the includes/require pointing to the correct place?

To resolve the headers sent issue you need to ensure no data is populated to the browser before the header is changed. Unless you use

ob_start();

Regards,
Alex
Reputation Points: 15
Solved Threads: 17
Junior Poster
phper is offline Offline
189 posts
since Nov 2006
Apr 1st, 2008
0

Re: Warning: exec(): Unable to fork

Right now the domain is hosted on a Windows box elsewhere that I can't install anything to, so I don't think this is an option. But, if I'm not able to resolve the issue, I may have to look at moving it to a linux server. I'll keep digging...

Click to Expand / Collapse  Quote originally posted by petr.pavel ...
Hi there,
I run PHP on a Windows box but with Apache (very easy to set up with XAMPP http://www.apachefriends.org/en/xampp.html).
I didn't hit this problem even though I worked with osCommerce.

Could this be the solution for you?
http://www.somacon.com/p255.php
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Hers2keep is offline Offline
22 posts
since Jul 2007
Apr 2nd, 2008
0

Re: Warning: exec(): Unable to fork

I'm currently hosted on a Windows box and don't have any idea how to find out what you're asking. I can get the php info easily, but I'm not sure how to find this out. I am so new to php I don't know where the file is supposed to be pointing to. I've only made style modifications to the site so far. So would it be possible for you to give me a little more detail?

Click to Expand / Collapse  Quote originally posted by phper ...
/usr/local/bin/curl seems to refer to a linux filesystem. Have you checked the file to make sure you have got the includes/require pointing to the correct place?

To resolve the headers sent issue you need to ensure no data is populated to the browser before the header is changed. Unless you use

ob_start();

Regards,
Alex
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Hers2keep is offline Offline
22 posts
since Jul 2007
Apr 2nd, 2008
0

Re: Warning: exec(): Unable to fork

your problem is you're pointing to a Linux location in a Windows environment.

Install curl (if not installed), change the path to point to it, or check if curl is bundled with the PHP install.
Reputation Points: 59
Solved Threads: 16
Junior Poster
hacker9801 is offline Offline
129 posts
since Aug 2007
Apr 8th, 2008
0

Re: Warning: exec(): Unable to fork

Now my host is saying curl isn't installed on the Windows servers. That seems rather crazy to me if they're going to offer osCommerce on their Windows plans, you'd think the server was set up to actually allow it to run.

Click to Expand / Collapse  Quote originally posted by hacker9801 ...
your problem is you're pointing to a Linux location in a Windows environment.

Install curl (if not installed), change the path to point to it, or check if curl is bundled with the PHP install.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Hers2keep is offline Offline
22 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: system("ls") okay, system("cp") not. Why?
Next Thread in PHP Forum Timeline: I can i build a customiseable form for internet user?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC