News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Can't get past FTP in the installer?

Started by [Unknown], May 30, 2004, 01:02:34 AM

Previous topic - Next topic

- danny

I'm trying to install the RC2 version in a new section of my website, but I can't get passed Install.php.

I get this:

Unable to connect to FTP server with this combination of details.

530 Authentication failed, sorry

...Any clues? All permissions are as requested and my login credentials are correct.

- danny

Ok...Got that one figured out.

Can someone tell me what's going on here though:

http://www.simplemachines.org/community/index.php?topic=77763.0

::)

Any help would be appreciated.

quinti

Hi

i have the same problem...

i'm read all but no solution...

i have 1.5 and in the admin tell me what there are new version 1.7
well.
when i clic there, shows me the files will update your forum to SMF 1.0.7.

but when i put the password in the ftp, nothing, go up and no show error and nothing

i put:

Servidor de FTP:     hxxp:ftp.quinti.net [nonactive]
Puerto:                     21
Nombre de usuario:     XXXXX
Contraseña:              XXXXXXXX
Directorio local a SMF: /vhosts/quinti.net/httpdocs/forum   

i have the file attachments 777 and his index.php too

what i need?

thank u very much
and all the best from Galicia
hxxp:www.fotosdesarria.com [nonactive]

JayBachatero

For the "Directorio loca;" use /forum and CHMOD all of the files to 777 not just index.php
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

quinti

Hi, thanks


but...i put all the files CHMOD 777, all

then
i put :

Servidor de FTP:     hxxp:ftp.quinti.net [nonactive]
Puerto:                     21
Nombre de usuario:    XXXXX
Contraseña:               XXXX
Directorio local a SMF:  /forum

and no...

is as i cliced in "up"

mmm...?
i don't no ...   
hxxp:www.fotosdesarria.com [nonactive]

Kreuvf

Package-file (in this case: smf_1-0-6_package.tar.gz) is located in Packages-folder.

Package Manager says "[Install modification]" (or similar, I'm using German language-file ^^).

Ok, clicking it brings up a new page telling me:
"Please remember to make backup.. blabla."
k, already done.

"Installation instructions:
This patch file will update your forum to SMF 1.0.6."
Yes, exactly what I want :D

Then it gives me a list of commands it will execute and it tells me "Successful"... but when I refresh the page, it's still SMF 1.0.5 and checking the files manually proves this to be right.

Then it wants to have my FTP-data. k, no problem

FTP-Server: subdomain.domain.tld
Port: 21
Username: verified to be the correct one
Password: verified to be the correct one
local path to smf: verified to be the correct one (/www/htdocs/[ACCOUNTNUMBER])

Entering the same values in my FTP-program is working properly. Additionally all files/folders on the FTP are 777.

As I once manually updated an SMF-1.0.6 to 1.0.7 I know that it's alot of work and I want this update-function to work >.<.

Please help me :)


EDIT: Additionally I don't get any error messages when entering wrong data.

puttputt

#86
Add me to the list of unsuccessful installers. I'm certainly no expert, but can, and do follow CLEAR instructions. One more time...
I download, unzipped and uploaded. After initiating the install.php, I was... and still am faced with the persistant "SMF Installer" which ask for, "FTP Connection Information". After several failed attempts, I reentered the server via FTP and changed all necessary file attributes to "777", but to no avail. Upon rechecking individual files, I notice that the file "server.list" is missing. It is not in my download zip either. Is this a problem?

I am installing: 1.1.rc2

[added] Well.. I managed to get past the first SMF install screen, and now see a second "SMF install" screen. However, after plugging in what i thought was the correct info, it dissapeared and left me with "http://***********.com/install.php?step=1" And, I am unable to make it reappear to input the correct information. 






Canih

if u still have problems installing the message board than try a host that will include free instalation for the SMF and u won't need to use the FTP. ex.  excellhoste.com [nofollow] include free scripts with every plan and it includes the SMF

goog luck ;D
Host'Em
best value / support
www.hostem.us

Czech

hi,
i have the same problem as lot of others, i cant pass the first step of the installation. there is still the info about changing the permisions of the files, no matter how many times i changed them (tried 777 and 755 as well), so why is the system ignoring it???


j.

kegobeer

Is your site hosted on a Windows or Linux box?
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

softwaresupport

Quote from: Thing on July 30, 2004, 04:32:15 PM
Chmod - ?? What? ???

I've changed the FTP address to the one the previous poster said - still no luck. dfghhj

Kreuvf


jiveviber

I have to say, this is very puzzling, lots of suggestions, but very little which works!

on my forum admin page it says upgrade, it'll only take a minute or two! That was 2 weeks ago! i keep going back to it, trying new things, but still simply end up with the ftp page!

Clearly, someone somewhere hasn't tested these upgrade tools properly. I suspect if they had, there wouldn't be a 7 page thread here!

My specific issue is, no matter what you type in the ftp box, and no matter that you've manually chmod'ed the files that are indicated within this thread, it still wont budge past this page.

the system is UNIX, 1 was on SMF 1.0.5 and tried to upgrade to 1.0.6 which is when the upgrade stopped working, this is where i still am, and will probably remain until i end up in a wooden box with an epitaph which reads "died trying an upgrade".

So perhaps it would be beneficial if those nice people from SMF issues a technical note on how to manually install the latest version without losing data and style. then we can all get past the FTP constipation we seem to be suffering and start living our lives again....

too much to ask?

PJ
Hope for the Best, Expect the Worst, Take What Comes

JayBachatero

These upgrade are tested before they are release.  You are having a problem with a host setting and not SMF.  To manually apply the mod take a look at http://docs.simplemachines.org/index.php?topic=402.msg531#msg531
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

CyberSongs

Quote from: welo on June 07, 2004, 05:58:26 AM
Quote from: [Unknown] on May 30, 2004, 01:02:34 AMIf you have trouble using the FTP client, chances are you are entering the FTP details incorrectly, or the FTP server is denying access from itself.

Just a quick point of note here because on a preliminary search I don't see anyone pointing it out: When the installer asks for your FTP username (predefined as "localhost" in the first box), just use yoursite.com (rather than http://yoursite.com, ftp://yoursite.com etc.). Took me several tries before I figured it out.

(Good to meet ya btw ;). Looks like a promising script indeed)
Don't you mean when the Installer asks for Server in the first box?  Server is a funny concept; on a domain it can be only the domainname with type ending, and on other setups it can be ftp.<hostname.domain.tld>  Technically, the server is the hostname.domain.tld  But in a lot of DNS setups for domains, the domain is first <domainname.tld> which will contact any live server host in the domain, or aliased as ftp.domainname.tld in which case something has to answer as ftp.domainname.tld

localhost will not work on real physical site servers in fully qualified domain names.  Secondly, localhost should never be used outside of the local console [the server machine itself, access via the keyboard or gui].  And Apache httpd daemon must adjust accordingly.   If Apache runs on host apache then localhost becomes apache.domainname.tld which usually requires an alias or pointer from the upstream ISP and/or DNS server, unless you're running your own, but they will still need the A records and pointers for such.

Webhosting is a lot different because webhosts are usually virtual hosts themselves run also under Apache.  Which means, basically, your domain is an Apache virtual host.

You cannot connect to your webhosted site using localhost, since that is the machine that is at your webhost [often your ISP or similar].

chrooted jail is fine, but really shouldn't be run su.  su itself has many weaknesses.  Apache usually runs as nobody nobody and that should work fine as long as no one can change anything other than nobody and user nobody is disabled.  How that works is kind of strange, but it does work.

htaccess is also a little wierd.  If you set htaccess plainly, without parenting, then every file and every directory must have an .htaccess file.  According to Apache.org, this will slow down things considerably and the preferred method is to properly define .htaccess in httpd.conf for both realy servers and virtual servers.

An example:
#    /I
##################################################################################
## Extra Directory   /I                     ##
##                               ##
##    SlackWare 10.2  Base Directory                  ##
##    Access Restricted                     ##
##################################################################################
#
<Directory /I/slakware>
      Options All
      AllowOverride All
      <Files ~ (search|source|ident|diff|find)$>
      SetHandler cgi-script
      </Files>
     
#    #DirectoryIndex index.html index.html.var
#    #AllowOverride FileInfo AuthConfig Limit Indexes
#    # Kill htacces usage, uses server login instead
#    AllowOverride None
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    AuthType Basic
#    AuthName "Restricted Files"
#    AuthUserFile /usr/local/apache2/passwd/passwords
#    Require user name1 name2 name3
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
     
</Directory>

AlexJ

My problem is with pa packege manager
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
What files do i need to make 777?
thx
All4U Forum http://forum.all4u.dyn.ro/ [nofollow] Powered by SMF 1.1 RC2

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Patrickh

I get this when I use the tool:

Quotefix_ownership.php
File Type: PHP script text

                       
                               
       
                       
                        ', file_exists(dirname(__FILE__) . '/Themes/default/images/smflogo.gif') ? '
                        ' : '', '
Permissions Tool

               

               
';

if (make_files_writable())
        echo '
                       
                               
Write this down!


                                In some cases, SMF 1.0.x does not detect your FTP path correctly.  This tool has successfully used the (possibly detected) path below.  You may wish to write this down, and make sure to use it when installing mods.

                               

                                ', $_POST['ftp_path'], '

                               

                                This problem should be resolved in the next major release of SMF.

                               

                                Thank you.
                       
';

echo '
               

       
';

function initialize_inputs()
{
        // Turn off magic quotes runtime and enable error reporting.
        @set_magic_quotes_runtime(0);
        error_reporting(E_ALL);

        ob_start();
        if (function_exists('session_start'))
                @session_start();

        // Add slashes, as long as they aren't already being added.
        if (get_magic_quotes_gpc() == 0)
        {
                foreach ($_POST as $k => $v)
                        $_POST[$k] = addslashes($v);
        }
}

// http://www.faqs.org/rfcs/rfc959.html [nofollow]
class ftp_connection
{
        var $connection = 'no_connection', $error = false, $last_message, $pasv = array();

        // Create a new FTP connection...
        function ftp_connection($ftp_server, $ftp_port = 21, $ftp_user = 'anonymous', $ftp_pass = '[email protected]')
        {
                if ($ftp_server !== null)
                        $this->connect($ftp_server, $ftp_port, $ftp_user, $ftp_pass);
        }

        function connect($ftp_server, $ftp_port = 21, $ftp_user = 'anonymous', $ftp_pass = '[email protected]')
        {
                if (substr($ftp_server, 0, 6) == 'ftp://')
                        $ftp_server = substr($ftp_server, 6);
                elseif (substr($ftp_server, 0, 7) == 'ftps://& [nofollow]#39;)
                        $ftp_server = 'ssl://&#39; . substr($ftp_server, 7);
                if (substr($ftp_server, 0, 7) == 'http://')
                        $ftp_server = substr($ftp_server, 7);
                $ftp_server = strtr($ftp_server, array('/' => '', ':' => '', '@' => ''));

                // Connect to the FTP server.
                $this->connection = @fsockopen($ftp_server, $ftp_port, $err, $err, 5);
                if (!$this->connection)
                {
                        $this->error = 'bad_server';
                        return;
                }

                // Get the welcome message...
                if (!$this->check_response(220))
                {
                        $this->error = 'bad_response';
                        return;
                }

                // Send the username, it should ask for a password.
                fwrite($this->connection, 'USER ' . $ftp_user . "\r\n");
                if (!$this->check_response(331))
                {
                        $this->error = 'bad_username';
                        return;
                }

                // Now send the password... and hope it goes okay.
                fwrite($this->connection, 'PASS ' . $ftp_pass . "\r\n");
                if (!$this->check_response(230))
                {
                        $this->error = 'bad_password';
                        return;
                }
        }

        function chdir($ftp_path)
        {
                if (!is_resource($this->connection))
                        return false;

                // No slash on the end, please...
                if (substr($ftp_path, -1) == '/')
                        $ftp_path = substr($ftp_path, 0, -1);

                fwrite($this->connection, 'CWD ' . $ftp_path . "\r\n");
                if (!$this->check_response(250))
                {
                        $this->error = 'bad_path';
                        return false;
                }

                return true;
        }

        function chmod($ftp_file, $chmod)
        {
                if (!is_resource($this->connection))
                        return false;

                // Convert the chmod value from octal (0777) to text ("777").
                fwrite($this->connection, 'SITE CHMOD ' . decoct($chmod) . ' ' . $ftp_file . "\r\n");
                if (!$this->check_response(200))
                {
                        $this->error = 'bad_file';
                        return false;
                }

                return true;
        }

        function unlink($ftp_file)
        {
                // We are actually connected, right?
                if (!is_resource($this->connection))
                        return false;

                // Delete file X.
                fwrite($this->connection, 'DELE ' . $ftp_file . "\r\n");
                if (!$this->check_response(250))
                {
                        $this->error = 'bad_file';
                        return false;
                }

                return true;
        }

        function check_response($desired)
        {
                // Wait for a response that isn't continued with -, but don't wait too long.
                $time = time();
                do
                        $this->last_message = fgets($this->connection, 1024);
                while (substr($this->last_message, 3, 1) != ' ' && time() - $time < 5);

                // Was the desired response returned?
                return is_array($desired) ? in_array(substr($this->last_message, 0, 3), $desired) : substr($this->last_message, 0, 3) == $desired;
        }

        function passive()
        {
                // We can't create a passive data connection without a primary one first being there.
                if (!is_resource($this->connection))
                        return false;

                // Request a passive connection - this means, we'll talk to you, you don't talk to us.
                @fwrite($this->connection, "PASV\r\n");
                $time = time();
                do
                        $response = fgets($this->connection, 1024);
                while (substr($response, 3, 1) != ' ' && time() - $time < 5);

                // If it's not 227, we weren't given an IP and port, which means it failed.
                if (substr($response, 0, 4) != '227 ')
                {
                        $this->error = 'bad_response';
                        return false;
                }

                // Snatch the IP and port information, or die horribly trying...
                if (preg_match('~\((\d+),\s*(\d+),\s*(\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))\)~', $response, $match) == 0)
                {
                        $this->error = 'bad_response';
                        return false;
                }

                // This is pretty simple - store it for later use ;).
                $this->pasv = array('ip' => $match[1] . '.' . $match[2] . '.' . $match[3] . '.' . $match[4], 'port' => $match[5] * 256 + $match[6]);

                return true;
        }

        function create_file($ftp_file)
        {
                // First, we have to be connected... very important.
                if (!is_resource($this->connection))
                        return false;

                // I'd like one passive mode, please!
                if (!$this->passive())
                        return false;

                // Seems logical enough, so far...
                fwrite($this->connection, 'STOR ' . $ftp_file . "\r\n");

                // Okay, now we connect to the data port.  If it doesn't work out, it's probably "file already exists", etc.
                $fp = @fsockopen($this->pasv['ip'], $this->pasv['port'], $err, $err, 5);
                if (!$fp || !$this->check_response(150))
                {
                        $this->error = 'bad_file';
                        @fclose($fp);
                        return false;
                }

                // This may look strange, but we're just closing it to indicate a zero-byte upload.
                fclose($fp);
                if (!$this->check_response(226))
                {
                        $this->error = 'bad_response';
                        return false;
                }

                return true;
        }

        function list_dir($ftp_path = '', $search = false)
        {
                // Are we even connected...?
                if (!is_resource($this->connection))
                        return false;

                // Passive... non-agressive...
                if (!$this->passive())
                        return false;

                // Get the listing!
                fwrite($this->connection, 'LIST -1' . ($search ? 'R' : '') . ($ftp_path == '' ? '' : ' ' . $ftp_path) . "\r\n");

                // Connect, assuming we've got a connection.
                $fp = @fsockopen($this->pasv['ip'], $this->pasv['port'], $err, $err, 5);
                if (!$fp || !$this->check_response(array(150, 125)))
                {
                        $this->error = 'bad_response';
                        @fclose($fp);
                        return false;
                }

                // Read in the file listing.
                $data = '';
                while (!feof($fp))
                        $data .= fread($fp, 4096);;
                fclose($fp);

                // Everything go okay?
                if (!$this->check_response(226))
                {
                        $this->error = 'bad_response';
                        return false;
                }

                return $data;
        }

        function locate($file, $listing = null)
        {
                if ($listing === null)
                        $listing = $this->list_dir('', true);
                $listing = explode("\n", $listing);

                $current_dir = '';
                for ($i = 0, $n = count($listing); $i < $n; $i++)
                {
                        if (trim($listing[$i]) == '' && isset($listing[$i + 1]))
                        {
                                $current_dir = substr(trim($listing[++$i]), 0, -1);
                                $i++;
                        }

                        // Okay, this file's name is:
                        $listing[$i] = $current_dir . '/' . trim(strlen($listing[$i]) > 30 ? strrchr($listing[$i], ' ') : $listing[$i]);

                        if (substr($file, 0, 1) == '*' && substr($listing[$i], -(strlen($file) - 1)) == substr($file, 1))
                                return $listing[$i];
                        if (substr($file, -1) == '*' && substr($listing[$i], 0, strlen($file) - 1) == substr($file, 0, -1))
                                return $listing[$i];
                        if (basename($listing[$i]) == $file || $listing[$i] == $file)
                                return $listing[$i];
                }

                return false;
        }

        function create_dir($ftp_dir)
        {
                // We must be connected to the server to do something.
                if (!is_resource($this->connection))
                        return false;

                // Make this new beautiful directory!
                fwrite($this->connection, 'MKD ' . $ftp_dir . "\r\n");
                if (!$this->check_response(257))
                {
                        $this->error = 'bad_file';
                        return false;
                }

                return true;
        }

        function detect_path($filesystem_path, $lookup_file = null)
        {
                $username = '';

                if (isset($_SERVER['DOCUMENT_ROOT']))
                {
                        if (preg_match('~^/home[2]?/([^/]+?)/public_html~', $_SERVER['DOCUMENT_ROOT'], $match))
                        {
                                $username = $match[1];

                                $path = strtr($_SERVER['DOCUMENT_ROOT'], array('/home/' . $match[1] . '/' => '', '/home2/' . $match[1] . '/' => ''));

                                if (substr($path, -1) == '/')
                                        $path = substr($path, 0, -1);

                                if (strlen(dirname($_SERVER['PHP_SELF'])) > 1)
                                        $path .= dirname($_SERVER['PHP_SELF']);
                        }
                        elseif (substr($filesystem_path, 0, 9) == '/var/www/')
                                $path = substr($filesystem_path, 8);
                        else
                                $path = strtr(strtr($filesystem_path, array('\\' => '/')), array($_SERVER['DOCUMENT_ROOT'] => ''));
                }
                else
                        $path = '';

                if (is_resource($this->connection) && $this->list_dir($path) == '')
                {
                        $data = $this->list_dir('', true);

                        if ($lookup_file === null)
                                $lookup_file = $_SERVER['PHP_SELF'];

                        $found_path = dirname($this->locate('*' . basename(dirname($lookup_file)) . '/' . basename($lookup_file), $data));
                        if ($found_path == false)
                                $found_path = dirname($this->locate(basename($lookup_file)));
                        if ($found_path != false)
                                $path = $found_path;
                }
                elseif (is_resource($this->connection))
                        $found_path = true;

                return array($username, $path, isset($found_path));
        }

        function close()
        {
                // Goodbye!
                fwrite($this->connection, "QUIT\r\n");
                fclose($this->connection);

                return true;
        }
}

function make_files_writable()
{
        $writable_files = array(
                'attachments',
                'avatars',
                'Packages',
                'Packages/installed.list',
                'Packages/server.list',
                'Smileys',
                'Themes',
                'agreement.txt',
                'Settings.php',
                'Settings_bak.php',
        );
        $extra_files = array(
                'Themes/classic/index.template.php',
                'Themes/classic/style.css',
                'Packages/temp',
        );

        $failure = false;

        // On linux, it's easy - just use is_writable!
        if (substr(__FILE__, 1, 2) != ':\\')
        {
                foreach ($writable_files as $file)
                        $failure |= !is_writable(dirname(__FILE__) . '/' . $file) && !@chmod(dirname(__FILE__) . '/' . $file, 06777);
                foreach ($extra_files as $file)
                        @chmod(dirname(__FILE__) . '/' . $file, 06777);
        }
        // Windows is trickier.  Let's try opening for r+...
        else
        {
                foreach ($writable_files as $file)
                {
                        // Folders can't be opened for write... but the index.php in them can ;).
                        if (is_dir(dirname(__FILE__) . '/' . $file))
                                $file .= '/index.php';

                        // Funny enough, chmod actually does do something on windows - it removes the read only attribute.
                        @chmod(dirname(__FILE__) . '/' . $file, 0777);
                        $fp = @fopen(dirname(__FILE__) . '/' . $file, 'r+');

                        // Hmm, okay, try just for write in that case...
                        if (!$fp)
                                $fp = @fopen(dirname(__FILE__) . '/' . $file, 'w');

                        $failure |= !$fp;
                        @fclose($fp);
                }
                foreach ($extra_files as $file)
                        @chmod(dirname(__FILE__) . '/' . $file, 0777);
        }

        // It's not going to be possible to use FTP on windows to solve the problem...
        if (substr(__FILE__, 1, 2) == ':\\')
        {
                echo '
                               
                                       
Sorry, this tool doesn\'t work on Windows servers (and you\'re on one!)

                                       

                                        Click here to try again.
                               
';

                return false;
        }
        // We're going to have to use... FTP!
        else
        {
                // Load any session data we might have...
                if (!isset($_POST['ftp_username']) && isset($_SESSION['installer_temp_ftp']))
                {
                        $_POST['ftp_server'] = $_SESSION['installer_temp_ftp']['server'];
                        $_POST['ftp_port'] = $_SESSION['installer_temp_ftp']['port'];
                        $_POST['ftp_username'] = $_SESSION['installer_temp_ftp']['username'];
                        $_POST['ftp_password'] = $_SESSION['installer_temp_ftp']['password'];
                        $_POST['ftp_path'] = $_SESSION['installer_temp_ftp']['path'];
                }

                if (isset($_POST['ftp_username']))
                {
                        $ftp = new ftp_connection($_POST['ftp_server'], $_POST['ftp_port'], $_POST['ftp_username'], $_POST['ftp_password']);

                        if ($ftp->error === false)
                        {
                                // Try it without /home/abc just in case they messed up.
                                if (!$ftp->chdir($_POST['ftp_path']))
                                {
                                        $ftp_error = $ftp->last_message;
                                        $ftp->chdir(preg_replace('~^/home[2]?/[^/]+?~', '', $_POST['ftp_path']));
                                }
                        }
                }

                if (!isset($ftp) || $ftp->error !== false)
                {
                        if (!isset($ftp))
                                $ftp = new ftp_connection(null);
                        // Save the error so we can mess with listing...
                        elseif ($ftp->error !== false && !isset($ftp_error))
                                $ftp_error = $ftp->last_message === null ? '' : $ftp->last_message;

                        list ($username, $detect_path, $found_path) = $ftp->detect_path(dirname(__FILE__));

                        if ($found_path || !isset($_POST['ftp_path']))
                                $_POST['ftp_path'] = $detect_path;

                        if (!isset($_POST['ftp_username']))
                                $_POST['ftp_username'] = $username;

                        echo '
                               
                                       
FTP Information

                                       
Please enter your FTP information below.

';

                        if (isset($ftp_error))
                                echo '
                                       
                                               
                                                        An error occured while trying to connect.  The error was:

                                                       

                                                        ', $ftp_error, '
                                               

                                       

                                       
';

                        echo '
                                       
                                               
FTP Server:   
Port: 

The address (often localhost) and port for your FTP server.
Username:   
The username to login with. This will not be saved anywhere.
Password:   
The password to login with. This will not be saved anywhere.
FTP Path:   
', !empty($found_path) ? 'The path in the box above was automatically detected.' : 'This is the relative path you use in your FTP server.', '


                                               


                                       
                               
';

                        return false;
                }
                else
                {
                        $_SESSION['installer_temp_ftp'] = array(
                                'server' => $_POST['ftp_server'],
                                'port' => $_POST['ftp_port'],
                                'username' => $_POST['ftp_username'],
                                'password' => $_POST['ftp_password'],
                                'path' => $_POST['ftp_path']
                        );

                        foreach ($writable_files as $file)
                                $ftp->chmod($file, 06777);

                        $ftp->close();
                }
        }

        return true;
}

?>

That should be a simple solve.

JayBachatero

The download/upload is corrupt.  Download again and reupload it.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

mojito

Quote from: jiveviber on April 14, 2006, 06:08:57 AM
I have to say, this is very puzzling, lots of suggestions, but very little which works!

on my forum admin page it says upgrade, it'll only take a minute or two! That was 2 weeks ago! i keep going back to it, trying new things, but still simply end up with the ftp page!

Clearly, someone somewhere hasn't tested these upgrade tools properly. I suspect if they had, there wouldn't be a 7 page thread here!

My specific issue is, no matter what you type in the ftp box, and no matter that you've manually chmod'ed the files that are indicated within this thread, it still wont budge past this page.

the system is UNIX, 1 was on SMF 1.0.5 and tried to upgrade to 1.0.6 which is when the upgrade stopped working, this is where i still am, and will probably remain until i end up in a wooden box with an epitaph which reads "died trying an upgrade".

So perhaps it would be beneficial if those nice people from SMF issues a technical note on how to manually install the latest version without losing data and style. then we can all get past the FTP constipation we seem to be suffering and start living our lives again....

too much to ask?

PJ

I couldnt agree more, why is this made sticky as there arent any solutions here.

I dont care about doing the permissions with the ftp i just want this page to recognise my permissions correctly, then it will move on by itself.

grrrrr!
SMF 1.1 RC2 bridge 1.4

Advertisement: