Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-09-2004, 07:38 AM   #1
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default Can't create TCP/IP socket (10106)

Hello.

I've created a batch file wich works v good when i run it by myself.
I've add it on the upload event but i always have this message when the php script try to use mysql_connect:
Can't create TCP/IP socket (10106)

I've try to add these lines in my ioftpd.env:
SYSTEMROOT=%[environment(SYSTEMROOT)]
WINDIR=%[environment(WINDIR)]

but always the same thing happends. I don't know what to do.

During my researches I read that this problem exists just after the 5.4 version of ioFTPD.

Where can I find a old version to fix this problem.

Thank for advance.

Yosh
Yosh is offline   Reply With Quote
Old 09-09-2004, 07:39 AM   #2
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

"The requested service provider could not be loaded or initialized. " Perhaps it needs path environment variable defined?
darkone is offline   Reply With Quote
Old 09-09-2004, 07:48 AM   #3
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

what can I do ?
Yosh is offline   Reply With Quote
Old 09-09-2004, 08:17 AM   #4
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

Maybe these lines aren't initialized as they should.
SYSTEMROOT=%[environment(SYSTEMROOT)]
WINDIR=%[environment(WINDIR)]


Is there a solution to put the good values directly ?
......

Or should I find an old version ?
Yosh is offline   Reply With Quote
Old 09-09-2004, 09:05 AM   #5
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

This is not related to any versions.
Your problem is that those aren't set correctly, so io can't open any outbound tcp connections.

Enable site exec, then try "site exec set",
systemroot and windir needs to be there. If they're not, try again to add them to your ioftpd.env and to restart io until they show in "site exec set".
If they are, check they have the same value as in a command prompt "set".
Mouton is offline   Reply With Quote
Old 09-09-2004, 09:51 AM   #6
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

I'm sorry, I don't understand what to do ????

I'm sure you're right, but I don't know what am I suppose to do to fix it.....


Yosh is offline   Reply With Quote
Old 09-09-2004, 11:04 AM   #7
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Enable site exec:
change your ioftpd.ini to be able to use site exec on your ftp. search on this forum to know how to do this. not sure if the default ioFTPD package comes with it.

Then, use site exec to check your environment variables. site exec allows u to execute anything from ioFTPD as if you would be in a command prompt. In a command prompt, executing "set" shows you the current environment variables. "site exec set" would do the same in ioFTPD. Execute that using the raw command feature of your Ftp client (CTRL-R in FlashFXP, or "quote" in ftp.exe).
Mouton is offline   Reply With Quote
Old 09-09-2004, 11:25 AM   #8
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

ok, I've enable the exec command.
And the var are set

[R] 200-SYSTEMROOT=C:\WINNT
[R] 200-WINDIR=C:\WINNT


but I still have the ": mysql_connect(): Can't create TCP/IP socket (10106)" error.....


Is there another way to fix it ?
Yosh is offline   Reply With Quote
Old 09-09-2004, 11:38 AM   #9
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

That's the only known fix.
Mouton is offline   Reply With Quote
Old 09-09-2004, 11:41 AM   #10
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

I've read that the previous version doesn't have this "bug".
Is it true ?
Where can I find a compatible version ?
Yosh is offline   Reply With Quote
Old 09-09-2004, 11:51 AM   #11
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Old versions are available to registered users.
But I don't suggest using anything else than the latest version. Much more problems than solutions.

You could try site exec ping www.google.com to make sure outbound tcp connections are working.
Mouton is offline   Reply With Quote
Old 09-09-2004, 12:05 PM   #12
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

[R] site exec ping google.fr
[R] 200-'ping' is not recognized as an internal or external command,
[R] 200-operable program or batch file.
[R] 200 Command successful.



??? doesn't work.

I don't want to use some advanced function of ioftpd, I just need the onupload event.
If I'm sure that the functions I want to use works, I'd like to register.
Yosh is offline   Reply With Quote
Old 09-09-2004, 01:21 PM   #13
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

site exec c:\winnt\system32\ping www.google.fr

Makes me think the problem might be with the active directory in your batch file...
at the top of your .bat file, do this:

c:
cd c:\some.dir

replace c: by the right drive
and some.dir by the dir in which your .bat is located.
this will better reproduce the way you execute the .bat from the command prompt...

you could also try from a command prompt:
cd c:\ioftpd\system
c:\some.dir\your.bat

this will simulate the way ioftpd executes your .bat file.
Mouton is offline   Reply With Quote
Old 09-10-2004, 03:35 AM   #14
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

I don't understand.

the site exec c:\winnt\system32\ping ip@dress works good, so, there's no problem with tcp .....

But still the same message appears.....

I've created a new bat file at c:\majbdd.bat
Inside, I've only this :
echo "cat2"
cd \
cd c:\program files\easyphp1-7\php\
php -f C:\users\ApacheServerFiles\THC\root\nouvelleiemevi deo.php 2


Here is the log of flashfxp :
Opening BINARY mode data connection for writerstz4.war.
[R] 226-
[R] 226-C:\Program Files\ioftpd\ioFTPD-beta5-8-4u\ioFTPD\system>echo "cat2"
[R] 226-"cat2"
[R] 226-
[R] 226-C:\Program Files\ioftpd\ioFTPD-beta5-8-4u\ioFTPD\system>cd \
[R] 226-
[R] 226-C:\>cd c:\program files\easyphp1-7\php\
[R] 226-
[R] 226-C:\Program Files\EasyPHP1-7\php>php -f C:\users\ApacheServerFiles\THC\root\nouvelleiemevi deo.php 2
[R] 226-<br />
[R] 226-<b>Warning</b>: mysql_connect(): Can't create TCP/IP socket (10106) in <b>C:\users\ApacheServerFiles\THC\root\nouvelleiem evideo.php</b> on line <b>7</b><br />
[R] 226 Transfer complete.




I'm so desesperated, I NEED this, and don't understand why it doesn't work...
someone has an idea to check comething ???

pleeeeeeeease
Yosh is offline   Reply With Quote
Old 09-10-2004, 09:17 AM   #15
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Try stuff...
Try to connect to other ports in your php script, to other pc, etc.
Search how other php scripts are run from ioftpd. there's a php zs. see it's documentation to know how it calls php files. you might need a special switch.
etc.
Mouton is offline   Reply With Quote
Reply

Tags
add, create, problem, upload, version

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading to several servers alftore General Discussion 6 05-25-2005 08:33 AM
CHMOD bug iXi Bug Reports 2 12-23-2002 07:53 AM


All times are GMT -5. The time now is 05:59 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)