FTP settings Magento Connect

When I configure the settings for Magento Connect, I get the following error:

    Deployment FTP Error. Local file doesn't exist:
    Settings has not been loaded. Used default settings
    Config file does not exists please save Settings

Details I use:

ftp.mysite.com.au
myftpusername
myftppassword
install path: public/www/shop (advise by web host to use this)

Magento is located in the folder called / shop

Any help. I went through this site and Magento forums and did not find a solution.

+5
source share
5 answers

Set the chmod of the downloader directory to temporary number 777 (and return it back) so that magento-connect can write the connect.cfg file.

+7
source

There may be nothing to do with this, but I found deleting the connect.cfg file when it is difficult or connecting to the manager will not change the settings.

+5
source

- ? , .

Magento Connect Manager 2.0, FTP. , .

Magento sys_get_temp_dir . , /tmp. , , Magento , FTP Magento Connect. .

​​/var/tmp .

11 /downloader /lib/Mage, . , , . , , , , . . , sys_get_temp_dir .

, , :

/var/package/tmp/
/downloader/.cache
/media

FTP , root Magento .

Magento Connect, , **. , , , , . , , - magento_root. , .

, , -, , . , Varien tmpDir , . .

downloader\lib\Mage\Connect\Config.php, 207:

//  $tempFile = tempnam(sys_get_temp_dir(),'config');
$tempFile = tempnam($this->magento_root. '/var/tmp/' ,'config');

downloader\lib\Mage\Connect\Command\Registry.php, 315:

//$localXml = tempnam(sys_get_temp_dir(),'package');
$magento_root =  dirname(dirname(__FILE__)) . '/../../../..';
$localXml = tempnam($magento_root. '/var/tmp/' ,'package'); 

downloader\lib\Mage\Connect\Loader\Ftp.php, 107:

//   $tmpDir = sys_get_temp_dir();
$magento_root =  dirname(dirname(__FILE__)) . '/../../../..';
$tmpDir = $magento_root . '/var/tmp/';

downloader\Maged\Controller.php, 869 **:

//$tempFile = tempnam(sys_get_temp_dir(),'maintenance');
$tempFile = tempnam($config->__get('magento_root') . '/var/tmp/' ,'maintenance'); 

: \Maged\Model\Connect.php, 404:

//$tempFile = tempnam(sys_get_temp_dir(),'config');
$tempFile = tempnam($configObj->magento_root. '/var/tmp/' ,'config');

downloader\Maged\Model\Config\Abstract.php, 88 **:

//  $tempFile = tempnam(sys_get_temp_dir(),'configini');
$magento_root =  dirname(dirname(__FILE__)) . '/../../..';  
$tempFile = tempnam($magento_root. '/var/tmp/' ,'configini');

downloader\lib\Mage\Connect\Packager.php - 5 .

96 - , :

// $tempConfigFile = tempnam(sys_get_temp_dir(),'conf');
$magento_root =  dirname(dirname(__FILE__)) . '/../../..';
$tempConfigFile = tempnam($magento_root . '/var/tmp/' ,'conf');

111:

// $tempCacheFile = tempnam(sys_get_temp_dir(),'cache');
$magento_root =  dirname(dirname(__FILE__)) . '/../../..';
$tempCacheFile = tempnam($magento_root . '/var/tmp/' ,'cache');

135, if:

$magento_root =  dirname(dirname(__FILE__)) . '/../../..';

if else:

//  $configFile=tempnam(sys_get_temp_dir(),'conf');
$configFile = tempnam($magento_root. '/var/tmp/' ,'conf');

158:

//$tempConfigFile = tempnam(sys_get_temp_dir(),'conf_');
$magento_root =  dirname(dirname(__FILE__)) . '/../../..';
$tempConfigFile = tempnam($magento_root. '/var/tmp/' ,'conf_');
+4

, "connect.cfg".

, 666 connect.cfg, . /Downloader Magento. Magento Connect "". , " ",.

0

Magento Connect , .

SSH- , Magento. , , :

find . -type d -exec chmod 777 {} ;

cPanel, :

find . -type f -exec chmod 755 {} ;

( 755)

Magneto cpanel , 777!. , Magento Connect.

, Magento Connect:

chmod 777 downloader/pearlib/download/package.xml
Magento Connect write permissions error 

, , Magento Connect, reset .

. , PHP Apache (mod_php, DSO). , Magento Connect, nobody . SSH Magento.

0

All Articles