View Full Version : FTP TEST PROCEDURE STARTED
Clarke222
16th of June 2005 (Thu), 17:17
Hello to all,
Hopefully someone can enlighten me on this matter.
I am very new at this and I tried searching but could not find the answer.
I am wondering how long it takes to test my ftp when I click "test now" for some reason when I do the this part it just stops at that screen and not do anything else.
this is the only thing I see:
msg 335 | ftp: ftp.mydomain.com (ftp://ftp.mydomain.com/)
msg 334 | ftp: EE PROGRAM SERVER: FTP TEST PROCEDURE STARTED
I was able to UPLOAD some files using the UPLOAD TO DATABASE tool and found it in the UPLOAD folder but I am not able to view or process them in the EE.
Also, in Server Info I see that FTP MODULE IS NOT INSTALLED ON THIS SERVER.
TO MAKE SURE PHP'S FTP INSTALLATION IS WORKING PLEASE DO ALL FTP TESTS ON FTP SERVER PAGE. SECURE FTP IS NOT YET SUPPORTED.
But I do not know how to fix it. Please help this newbie!
Thanks!
Pekka
16th of June 2005 (Thu), 17:45
a) switch to "INTERNAL FTP" engine (in ftp editor).
b) if you have your domain name as ftp server, use localhost instead.
What I suspect you have there is firewall problem.
First step is to get your ftp working.
Then set up graphics modules.
The set up paths.
That is the basic one-time setup. Then check that exhibition has correct thumb paths (they are created on upload) and test uploading.
Clarke222
16th of June 2005 (Thu), 19:11
Thanks Pekka,
I have disabled my firewall and now am able to login into my ftp server using CuteFTP (I was not able to do so before, I used my laptop to upload files but I had the same issues when loggin into EE from my laptop.) I verified if I have the same info from my FTP client compared to the EE FTP SERVER SETUP.
For some reason now I am getting this:
msg 126 | internal ftp: ERROR: unable to connect to server (server not responding in 30 seconds). Exiting...
msg 125 | internal ftp: ftp.mydomain.com (ftp://ftp.mydomain.com/)
msg 124 | internal ftp: local: FTP TEST PROCEDURE STARTED
msg 123 | internal ftp: local
----------------------------------------------------------------------------------------
:( Am I missing something? Thanks in advance!
Clarke
Clarke222
16th of June 2005 (Thu), 19:19
I have this in my TEST REPORT
server: ftp.mydomain.com
port: 21
errno: 111
errstr: Connection refused
timeout: 30
I am not sure why my data would be refused eventhough I have check, recheck, and triple checked my data. I also tried localhost and it would send me this:
server: localhost
port: 21
errno: 111
errstr: Connection refused
timeout: 30
Sorry for having such newbie questions!
Clarke
Pekka
17th of June 2005 (Fri), 05:01
Well, I tried it from my EE (your server IP number was in posts, I removed it), and EE connects to your server just fine (of course no login because username and pass are unknown). So I'm afraid the problem there is still some firewall problem, in the server. I have seen server installations where firewall is set to prevent connections from "inside" but allow external connections (pointless). Usually setting servername localhost or 127.0.0.1 remedies that. But if not, then the only way is to contact server support and request that they loose the firewall settings.
Clarke222
19th of June 2005 (Sun), 23:25
Thanks Pekka. I hope I can find the solution to this issue and hopefully can use your EE. I have seen how talented you are from the start. When I bought my G1 searched for people who had the same camera as I did. When I saw your site I was amazed at how excellent your photos were and this prompted me to go deeper into photography. I then bought the D30, D60, 10D and a couple of lenses (my CFO wouldn't let me buy anymore for now) in hopes that I can improve my skills. Now I have a few photos that I may be proud to present to the world using your EE.
Thank you for your assistance.
Clarke
Clarke222
21st of June 2005 (Tue), 09:19
I am wondering if someone here has Domain Direct as their host server and made EE work. Support told me they do not have a firewall that will stop the FTP from running from "within" their servers. They instead gave me a piece of code that they said works in their system. But does not make sense to me :cry:
<HTML>
<HEAD>
<TITLE> File Upload </TITLE>
</HEAD>
<BODY>
<?php
if ( $userfile )
{
@$res=copy($userfile,"$userfile_name");
if ( !$res )
print "Upload failed!
\n";
else
print "Upload of $userfile_name successful
\n";
}
?>
<FORM method=POST ENCTYPE="multipart/form-data">
File to Upload
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="25000000">
<INPUT NAME="userfile" TYPE="file" size=35>
<INPUT TYPE="submit">
</FORM>
<IMG SRC="test_image.jpg" ALT="Test Image">
</BODY>
</HTML>
Pekka
21st of June 2005 (Tue), 15:36
I am wondering if someone here has Domain Direct as their host server and made EE work. Support told me they do not have a firewall that will stop the FTP from running from "within" their servers. They instead gave me a piece of code that they said works in their system. But does not make sense to me :cry:
<HTML>
<HEAD>
<TITLE> File Upload </TITLE>
</HEAD>
<BODY>
<?php
if ( $userfile )
{
@$res=copy($userfile,"$userfile_name");
if ( !$res )
print "Upload failed!
\n";
else
print "Upload of $userfile_name successful
\n";
}
?>
<FORM method=POST ENCTYPE="multipart/form-data">
File to Upload
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="25000000">
<INPUT NAME="userfile" TYPE="file" size=35>
<INPUT TYPE="submit">
</FORM>
<IMG SRC="test_image.jpg" ALT="Test Image">
</BODY>
</HTML>
That code writes file locally, and has nothing to do with problem in hand. Problem is that socket connections from PHP seem to be firewalled in their server. There is no reason for server admin to do that, except attitude "shut down everything that I do not know about".
Which hosting account type you have in Domain Direct, "standard"? I think I'll have to get one and start talking with the support. Same thing with GoDaddy.
Here is the REAL test they should run. First it checks that socket function is available (it's standard PHP function). The it checks socket connection to port 80 (http), the to port 21 (ftp) and then to localhost's ftp port. It has 5 seconds timeout which is plenty in this application because only connection "touch" is tested, nothing is transferred.
-------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Socket test</title>
</head>
<body><p>
<?php
if (!function_exists("ee_print_array")) {
// function for printing arrays (for debugging)
function ee_print_array($array) {
if (gettype($array)=="array") {
echo "<ul>";
while (list($index, $subarray) = each($array) ) {
echo "<li>$index <code>=></code>";
ee_print_array($subarray);
echo "</li>";
}
echo "</ul>";
}
else echo $array;
}
}
if (!function_exists("fsockopen")) {
print "<p style=\"font-family: Verdana; font-size: 10px;\">";
print "<b>{$test}. Function fsockopen() is not installed in your PHP. Internal FTP functions and export is not functional.</b>";
} else {
print "<p style=\"font-family: Verdana; font-size: 10px;\">";
print "<b>Function "fsockopen()" exists.</b>";
}
print "<hr>";
print "<p style=\"font-family: Verdana; font-size: 10px;\">";
$Xresource = @fsockopen ("www.google.com", "80", $errno, $errstr, "5");
if ($errno != 0) {
print "server: " . "www.google.com";
print "<br>port: " . "80";
print "<br>errno: " . $errno;
print "<br>errstr: " . $errstr;
print "<br>timeout: " . "5";
print "<br><span class=\"error\">ERROR</span>: unable to connect to remote http server (server not responding in 5 seconds)";
} else {
print "<b>Socket to remote port 80 appears to work ok.</b>";
print "<br>server: " . "www.google.com";
}
socket_set_timeout($Xresource, 1, 0);
$status = socket_get_status ($Xresource);
ee_print_array($status);
flush();
print "<hr>";
print "<p style=\"font-family: Verdana; font-size: 10px;\">";
unset($GLOBALS['{$Xresource}']);
$Xresource = @fsockopen ("ftp.funet.fi", "21", $errno, $errstr, "5");
if ($errno != 0) {
print "server: " . "ftp.funet.fi";
print "<br>port: " . "80";
print "<br>errno: " . $errno;
print "<br>errstr: " . $errstr;
print "<br>timeout: " . "5";
print "<br><span class=\"error\">ERROR</span>: unable to connect to remote ftp server (server not responding in 5 seconds)";
} else {
print "<b>Socket to remote port 21 appears to work ok.</b>";
print "<br>server: " . "ftp.funet.fi";
}
socket_set_timeout($Xresource, 1, 0);
$status = socket_get_status ($Xresource);
ee_print_array($status);
unset($GLOBALS['{$Xresource}']);
flush();
print "<hr>";
print "<p style=\"font-family: Verdana; font-size: 10px;\">";
unset($GLOBALS['{$Xresource}']);
$Xresource = @fsockopen ("localhost", "21", $errno, $errstr, "5");
if ($errno != 0) {
print "server: " . "localhost";
print "<br>port: " . "80";
print "<br>errno: " . $errno;
print "<br>errstr: " . $errstr;
print "<br>timeout: " . "5";
print "<br><span class=\"error\">ERROR</span>: unable to connect to local ftp server (server not responding in 5 seconds)";
} else {
print "<b>Socket to local port 21 appears to work ok.</b>";
print "<br>server: " . "localhost";
}
@socket_set_timeout($Xresource, 1, 0);
$status = @socket_get_status ($Xresource);
ee_print_array($status);
unset($GLOBALS['{$Xresource}']);
flush();
?>
</body>
</html>
...............
Clarke222
21st of June 2005 (Tue), 18:49
I have the advanced Hosting with them. Can you suggest another host if they can't help me?
Thanks!
wkitty42
23rd of June 2005 (Thu), 20:08
I have the advanced Hosting with them. Can you suggest another host if they can't help me?
i'd take pekka's posted code and try it on your site, first... see what it says... i'd also pass it to their administrator and ask them to run it... compare what your results are with what they get... then go from there...
as i run my own server(s), i can't help you with other hosts or recommendations other than the above...
just my 2 cents, FWIW ;)
EricKonieczny
23rd of June 2005 (Thu), 21:01
If you do decide to chnage hosts, this is who I use
Take a look here http://www.midphase.com (http://www.midphase.com/)
Have only had to call them like 3 times in 7 months about tech support, and talk to a person in like 2 minutes each time,and they tell me what to fix, or they fix it within minutes.
Great hosting deal with the Mega Phase package,
Clarke222
24th of June 2005 (Fri), 00:16
Thanks wkitty42, I did try Pekka's recommendation but I received the same problem. I emailed it to tech support and am trying just waiting for their response. As you can tell I do not know much about web hosting. I'll figure it out someday.
Thanks!
i'd take pekka's posted code and try it on your site, first... see what it says... i'd also pass it to their administrator and ask them to run it... compare what your results are with what they get... then go from there...
as i run my own server(s), i can't help you with other hosts or recommendations other than the above...
just my 2 cents, FWIW ;)
Clarke222
24th of June 2005 (Fri), 00:18
EricKonieczny, I only have 7 months more with these folks if I do not get these things fixed I will probably switch. Even before the 7 months end.
Thanks for the recommendation.
Clarke
If you do decide to chnage hosts, this is who I use
Take a look here http://www.midphase.com (http://www.midphase.com/)
Have only had to call them like 3 times in 7 months about tech support, and talk to a person in like 2 minutes each time,and they tell me what to fix, or they fix it within minutes.
Great hosting deal with the Mega Phase package,
Clarke222
24th of June 2005 (Fri), 08:48
That sounds like a very good idea WarrenO but I remembered reading from a Mods post that Pekka does not want banners in his site (Of course you can do it someplace and send the payments to Pekka.)
Anyway, maybe we should start a thread about WebHosts that are EE friendly (anyone who got EE to work in their server start the post?)
Thanks!
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.