Thread: FTP Put Error
View Single Post
Old 05-26-2004, 03:07 AM   #1
cash4read
Green Mole
 
Join Date: May 2004
Posts: 4
Unhappy FTP Put Error

Hi all,
so let me tell my Problem

I have install all the things for phpdig 1.8.0 .
It spiders well but if i configure the ftp things i get a ftp put error.
Nothing will write into the text_content directory.
1.) the direktory ist writable by world. (security risk i know, but for the tests it is better )

2 all other Directory having the same rights.

I start to dig some sites, but when ftp is set to 1 nothing will write into it.
I have set this to 0 and the textfiles are in there after spidering.

So let me explain the directory structure of this :
My Webserver has the Domain www.xyz.de
Phpdig is called under search.xyz.de that works fine.

phpdig is installed under : /home/www/webxyz/html/search
when i connect to my ftp server i see html
so i have to change to html/search
thats my ftp config in Dig :

define('FTP_ENABLE',1);//enable ftp content for distant PhpDig
define('FTP_HOST','ftp.cash4read.de'); //if distant PhpDig, ftp host;
define('FTP_PORT',21); //ftp port
define('FTP_PASV',1); //passive mode
define('FTP_PATH','html/search'); //distant path from the ftp root
define('FTP_TEXT_PATH','text_content');//ftp path to text-content directory
define('FTP_USER','myuser');
define('FTP_PASS','mypw');

what goes wrong here ?

And the second thing is : The automatic spidering via cron doesnt work. cause : with php -f /directorytosearch/spider.php bla.txt brings up many errors like cant include config.php and so on. thats because relative script_path is used and not the complete path to the script. I mean /home/www/bla/search is the path from digger. you use the server variables , but that doesnt work correctly for commandline processing.

I hope you understand my english sorry for that. I am german an shooltime is long ago
cash4read is offline   Reply With Quote