Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Wednesday, May 22 2013 @ 10:54 AM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Unable to Fork
   
Anonymous: Domokun
 07/21/06 10:32AM (Read 4496 times)  



I looked thru the forum posts and reviewed all the suggestions for "Unable to Fork" issues but I cannot get my GL DB to backup. I am currently using WIN2003, IIS, mySQL 5.0.22 & PHP 5.0 and everything works fine except this backup procedure. This is the error I get:

Warning: exec() [function.exec]: Unable to fork [C:/mysql/mysqldump.exe -hlocalhost -uroot -p -Q geeklog > "D:/Websites/geeklog/backups/geeklog_db_backup_2006_07_21_10_13_19.sql"] in D:/Websites/Sitea.com/admin/database.php on line 166

My mysqldump.exe resides in the correct folder above which I made. That folder has Read/Write & Execute permissions for the IUSR_WEBUSER. The backup folder for GL also has these same permissions.

The code in the config.php looks as follows:

// full path to mysqldump executable (Windows users: add ".exe"!)
$_DB_mysqldump_path = 'C:/mysql/mysqldump.exe';

Anyone have any suggestions?

TIA - DK

 
 Quote
Blaine
 07/21/06 12:14PM  
+++++
Full Member

Status: offline


Registered: 07/16/02
Posts: 1233
Try copy windows/system32cmd.exe to your PHP directory (default is c:/php). Also make sure it has execute permissions for the IIS user. For testing - set execute perms for group everyone.

Geeklog components by PortalParts -- www.portalparts.com
 
Profile Email Website
 Quote
domokun
 07/21/06 01:51PM  
+++--
Chatty

Status: offline


Registered: 06/12/05
Posts: 37
Is that a Windows System file? Because to be honest with you I have never heard of that file nor is there one on my server. I made sure all hidden and system files were visible and a search on system32cmd.exe results in nothing.

Perhaps you meant a different file name or I am very stupid right now?

Thanks for your help.

TIA - DK

 
Profile Email
 Quote
Blaine
 07/21/06 04:21PM  
+++++
Full Member

Status: offline


Registered: 07/16/02
Posts: 1233
I missed a directory separator. It should have been windows/system32/cmd.exe

The file cmd.exe is actually the windows program you run to get a DOS window or to run a DOS batch file.

Geeklog components by PortalParts -- www.portalparts.com
 
Profile Email Website
 Quote
domokun
 07/21/06 04:29PM  
+++--
Chatty

Status: offline


Registered: 06/12/05
Posts: 37
That didn't seem to work. I restarted IIS as well to make sure and I still receive the same error.

Any other tricks up your sleeve?

Thanks for your persistence..I hate bothering you guys.

-DM

 
Profile Email
 Quote
domokun
 07/26/06 02:45PM  
+++--
Chatty

Status: offline


Registered: 06/12/05
Posts: 37
That did not work. I DC'd permissions on cmd.exe and IUSR_NAME has write access to it. I also made sure that Backups/ also has the same access which is does. The mysqldump.exe also has the same access. CMD.exe is in the PHP folder as well. I also tried to give the IUSR write permission to the PHP folder and that did not work either. The TEMP folder also has the same writes.

Am I missing one more folder or file which needs write permission for the IUSR user?

Any help to solve this is VERY appreciated...its causing problems with IIS...
TIA

 
Profile Email
 Quote
KungfuBeer
 01/07/08 01:02AM  
+----
Newbie

Status: offline


Registered: 01/11/06
Posts: 14
Grant permissions to the Internet Guest Account - read and execute, as Blaine suggested.

Also, Grant modify permissions to the same user for /pathtogeeklog/backups

That works for me and I've done this alot!

 
Profile Email
 Quote
Content generated in: 0.70 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content