Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Topic started by: [Unknown] on May 30, 2004, 01:02:34 AM

Title: Can't get past FTP in the installer?
Post by: [Unknown] on May 30, 2004, 01:02:34 AM
For a more up to date version of this tutorial please see the doc site (http://docs.simplemachines.org/index.php?board=2.0;sort=subject)

The installer for Beta 5 does not actually require FTP, it only uses it if there is a problem with the permissions of some files.

If 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.  However, you can fix the problem manually, in which case the installer won't even bother to try itself.

If you are on a linux or other unix based server, which is what most servers are, you will need to chmod the following list of files to 777.  This can be done easily with most modern FTP clients, by right clicking on the files and going to "Permissions", "chmod", or "Properties..." (it varies...)  The files and directories are:

These files are exactly the ones the installer will try to make writable for you if it can connect through FTP.  It only asks for FTP information if one of these files is not writable.

These files and directories need to be writable so that all the features of SMF can work properly.  For information on why this is not really a security risk, please read the "Why chmod 777 is NOT a security risk (http://www.simplemachines.org/community/index.php?topic=2987.0)" topic.

If, on the other hand, you are under windows... you need to change the NTFS permissions for those same files.  If you do not know how to do this, please ask your host to do it for you or have them just make the entire forum's directory and all it's files writable. (the installer will not offer FTP on windows because it won't do any good...)

The next release will have more detail in its FTP error messages.

Thank you for your patience,
-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: 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)
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on June 07, 2004, 06:30:32 AM
Thanks, I'll change it so it supports being given URLs like such.

! The installer now supports using ftp://hostname.tld/ as the server.

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: 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.
Title: Re: Can't get past FTP in the installer?
Post by: Killer Possum on July 30, 2004, 05:09:07 PM
Try the CHMOD manually...

Quote from: [Unknown] on May 30, 2004, 01:02:34 AM
If you are on a linux or other unix based server, which is what most servers are, you will need to chmod the following list of files to 777.  This can be done easily with most modern FTP clients, by right clicking on the files and going to "Permissions", "chmod", or "Properties..." (it varies...)  The files and directories are:

  • attachments (directory)
  • avatars (directory)
  • Packages (directory)
  • Packages/installed.list
  • Packages/server.list
  • Smileys (directory)
  • Themes (directory)
  • Themes/default/languages/Install.english.php (and any other Install.language.php files.)
  • agreement.txt
  • Settings.php
  • Settings_bak.php
  • install.php

These files are exactly the ones the installer will try to make writable for you if it can connect through FTP.  It only asks for FTP information if one of these files is not writable.
Title: Re: Can't get past FTP in the installer?
Post by: sjkramer on August 14, 2004, 09:03:16 PM
What if you don't have a right click ??
Like us MAC users... ;D
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on August 14, 2004, 09:15:55 PM
Quote from: sjkramer on August 14, 2004, 09:03:16 PM
What if you don't have a right click ??
Like us MAC users... ;D

Then use a PC :P.

No, seriously, in the Mac FTP clients there's a way.  Sometimes you have to Control - Click, or get to it with a menu or button.

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: Dr_Doog on August 23, 2004, 05:20:25 PM
i've done it twice manually and it still comes up. one of these day's i'm switching from fuitadnet...

never mind, fixed it.

answer:  it has it set up to go to the full directory on the server, where as it should just be /var/www/forum
Title: Re: Can't get past FTP in the installer?
Post by: mediman on September 10, 2004, 08:55:26 AM
Quote from: [Unknown] on June 07, 2004, 06:30:32 AM
Thanks, I'll change it so it supports being given URLs like such.

! The installer now supports using ftp://hostname.tld/ as the server.

-[Unknown]
maybe it will work now with any ftpd´s but i know a lot of people who have a problem with ftp://domain.com/folder

maybe it would be better to open the ftp connection only with ftp://domain.com and add the folder "forum" or whatever in the chmod thing, or using change directory after etablish the connection...

mediman
Title: Re: Can't get past FTP in the installer?
Post by: hobo jim on December 31, 2004, 03:25:24 PM
What kind of a path do you write in the Install Path? /www/ or ftp:// or D:\ ?
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on December 31, 2004, 03:42:08 PM
Quote from: hobo jim on December 31, 2004, 03:25:24 PM
What kind of a path do you write in the Install Path? /www/ or ftp:// or D:\ ?

/www/ is the one.  So, if you see this in your FTP:

+ public_html
    - cgi-bin
    + forum
       - attachments
       - avatars
       - Packages
       - Smileys
       - Sources
       - Themes
    - some other folder


Type:

/public_html/forum/

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: admactanium on December 31, 2004, 10:13:57 PM
Quote from: sjkramer on August 14, 2004, 09:03:16 PM
What if you don't have a right click ??
Like us MAC users... ;D
control click on the file/s in your ftp client. it should bring up a menu. if you have one that says "file info" then use that and set the permissions to 777. i use transmit, seems to be the best ftp client for macs.
Title: Re: Can't get past FTP in the installer?
Post by: smooth_jake on February 18, 2005, 07:10:28 AM
Quote from: [Unknown] on May 30, 2004, 01:02:34 AM
The installer for Beta 5 does not actually require FTP, it only uses it if there is a problem with the permissions of some files.

If 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.  However, you can fix the problem manually, in which case the installer won't even bother to try itself.

If you are on a linux or other unix based server, which is what most servers are, you will need to chmod the following list of files to 777.  This can be done easily with most modern FTP clients, by right clicking on the files and going to "Permissions", "chmod", or "Properties..." (it varies...)  The files and directories are:

  • attachments (directory)
  • avatars (directory)
  • Packages (directory)
  • Packages/installed.list
  • Packages/server.list
  • Smileys (directory)
  • Themes (directory)
  • Themes/default/languages/Install.english.php (and any other Install.language.php files.)
  • agreement.txt
  • Settings.php
  • Settings_bak.php
  • install.php

These files are exactly the ones the installer will try to make writable for you if it can connect through FTP.  It only asks for FTP information if one of these files is not writable.

These files and directories need to be writable so that all the features of SMF can work properly.  For information on why this is not really a security risk, please read the "Why chmod 777 is NOT a security risk (http://www.simplemachines.org/community/index.php?topic=2987.0)" topic.

If, on the other hand, you are under windows... you need to change the NTFS permissions for those same files.  If you do not know how to do this, please ask your host to do it for you or have them just make the entire forum's directory and all it's files writable. (the installer will not offer FTP on windows because it won't do any good...)

The next release will have more detail in its FTP error messages.

Thank you for your patience,
-[Unknown]

i cannot copy these files to to the webserver.

[li]Packages/installed.list[/li]
[li]Packages/server.list[/li]

it says it has bad extension.
Title: Re: Can't get past FTP in the installer?
Post by: Oldiesmann on February 18, 2005, 09:45:48 AM
I don't know why you wouldn't be able to copy those to the server, unless your FTP client doesn't like uploading empty files.

My recommended FTP clients:

FileZilla (http://filezilla.sf.net) for Windows
RBrowserLite (http://www.rbrowser.com/RBrowserLite/RBrowserLite.html) for Mac OS X
Title: Re: Can't get past FTP in the installer?
Post by: davo88 on March 29, 2005, 06:34:28 PM
I can't get the FTP part working in Package Manager when installing updates. I have about 6 installations of SMF running (for testing and modding), I'd really like to get it working and not to have to chmod them all manually every time there's an update.  :)

So far I've tried

FTP Server:    ftp://my_domain.net , my_domain.net ,  ftp://66.98.123.45 , 66.98.123.45
Port:       21
Username:      xxxxx   
Password:      yyyyy
Local path to SMF:  /httpdocs/smf , httpdocs/smf ,  /smf , smf

And a whole lot of other variations.

Any suggestions on what to try next?
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on March 29, 2005, 07:06:01 PM
Your path is likely wrong.  What error message or path does this tool give you?

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

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: davo88 on March 29, 2005, 07:22:56 PM
This gives me...

An error occured while trying to connect. The error was:

530 Login incorrect.


Tried a couple of variations for the FTP server - both domain name and IP.
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on March 29, 2005, 08:00:50 PM
Quote from: davo88 on March 29, 2005, 07:22:56 PM
This gives me...

An error occured while trying to connect. The error was:

530 Login incorrect.


Tried a couple of variations for the FTP server - both domain name and IP.

That message means your username and/or password are incorrect, not that the domain/ip is wrong.

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: davo88 on March 29, 2005, 09:05:12 PM
I reset the FTP password in Plesk and tried again - similar error. Then found I had a trailing space on the end of my_domain.net !!

So fixed that and re-ran it. It detected the directory as /smf_2 and produced a different error as follows ...


An error occured while trying to connect. The error was:

550 /smf_2: No such file or directory



The detected directory then changed to httpdocs/smf_2 and it proceded to connect and arrive at Write this down! screen.

So then went to PM and tried an update again - this time it was v1.02 update on a v1.01 installation.

The FTP part connected and continued through to the Proceed link.

Proceeded, but then it generated this error on completion

2: copy(/home/httpd/vhosts/my_domain.net/httpdocs/smf_2/changelog.txt~): failed to open stream: Permission denied
File: /home/httpd/vhosts/my_domain.net/httpdocs/smf_2/Sources/Subs-Package.php
Line: 1285


So manually went in via FTP and none of the directories/files had changed to 777. So did all that manually and tried again and it completed successfully.

So did fix_ownerships.php do anything? ... other than detect the directories?

And the fact that the FTP part in PM appeared to complete its work successfully, yet no directories/files were 777'ed, does this indicate anything?

Dave





Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on March 29, 2005, 09:38:01 PM
Quote from: davo88 on March 29, 2005, 09:05:12 PM
So fixed that and re-ran it. It detected the directory as /smf_2 and produced a different error as follows ...

That's a total guess.. it can't really know until you give it a password.

Quote
550 /smf_2: No such file or directory [/i]

The detected directory then changed to httpdocs/smf_2 and it proceded to connect and arrive at Write this down! screen.

See, now it can know ;).  At this point, it has fixed *ownership* issues.  It has not made any permission changes, only safe mode issues.  I plan to change the tool so it does more.

Quote2: copy(/home/httpd/vhosts/my_domain.net/httpdocs/smf_2/changelog.txt~): failed to open stream: Permission denied
File: /home/httpd/vhosts/my_domain.net/httpdocs/smf_2/Sources/Subs-Package.php
Line: 1285

This means that httpdocs/smf_2 is not writable - that directory itself.

QuoteSo did fix_ownerships.php do anything? ... other than detect the directories?

In your case, that's the main change it made.  But, for example, attachments will now work even in safe mode if Apache runs as nobody.

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: jitspoe on April 04, 2005, 03:52:58 AM
A note: Since I didn't have FTP set up on the server, I had to manually set the permissions with sftp.  In addition to the directories/files you stated, you also need to chmod the directory containing all of them (in my case it was "forums") to 777.
Title: Re: Can't get past FTP in the installer?
Post by: toontastic on April 26, 2005, 04:39:42 AM
I was curious about this to try and get my package manager to work. So I tried that file and got this error

An error occured while trying to connect. The error was:

550 Failed to change directory.

Details I used were

FTP Server: Localhost Port:   21

Username:  my username
Password:  my password

FTP Path:  /virtual/newcastle-online.com/html/newnufcforum

Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on April 26, 2005, 03:13:43 PM
Try this path:

html/newnufcforum

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: toontastic on April 27, 2005, 06:24:54 AM
Quote from: [Unknown] on April 26, 2005, 03:13:43 PM
Try this path:

html/newnufcforum

-[Unknown]

Same error and it automatically reverts back to the old path.

An error occured while trying to connect. The error was:

550 Failed to change directory.
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on April 28, 2005, 04:23:34 AM
What directories do you see when you log into your FTP?  For example... well, as I said before:

Quote from: [Unknown] on December 31, 2004, 03:42:08 PM
So, if you see this in your FTP:

+ public_html
    - cgi-bin
    + forum
       - attachments
       - avatars
       - Packages
       - Smileys
       - Sources
       - Themes
    - some other folder


Type:

/public_html/forum/

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: toontastic on April 29, 2005, 06:25:25 AM
Ah right I put the full path in (was something daft like virtual/var/www/html/newcastle-online.com/nufcgallery) and that has worked. At last I can use package manager :) Thanks for all your help. Is there any reason why it picks up the wrong path when it does it automatically ?
Title: Re: Can't get past FTP in the installer?
Post by: scorptile on April 30, 2005, 11:07:32 PM
hi i get this error when i dont put in a password.

The installer was unable to access the "smf" database. With some hosts, you have to create the database in your administration panel before SMF can use it. Some also add prefixes - like your username - to your database names.

and i get this when i do put in the password

Cannot connect to the MySQL database server with the supplied data.

If you are not sure about what to type in, please contact your host.

i put in the correct information and i have manually went in and made all the files i am supposed to 7's and still get errors..can someone tell me what im doin wrong or is it that my host doesnt support this?
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on May 01, 2005, 12:11:40 AM
Quote from: toontastic on April 29, 2005, 06:25:25 AM
Ah right I put the full path in (was something daft like virtual/var/www/html/newcastle-online.com/nufcgallery) and that has worked. At last I can use package manager :) Thanks for all your help. Is there any reason why it picks up the wrong path when it does it automatically ?

Because it's impossible to know without knowing what FTP server is installed and how it is set up, usually.

Quote from: scorptile on April 30, 2005, 11:07:32 PM
The installer was unable to access the "smf" database. With some hosts, you have to create the database in your administration panel before SMF can use it. Some also add prefixes - like your username - to your database names.

I'm almost sure your host doesn't allow you to use just the "smf" database.  Read the installation readme, which came with the file you downloaded.  Contact your host if you don't know what information to use.

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: myst on June 19, 2005, 08:04:54 AM
i have installed the atributes manually but still the ftp asks to connect which i cant by givin the details of the ftp though those are corect
the message is
Unable to connect to FTP server with this combination of details.

plz help me
is the 1.0.4 also asks for the same thing
i had 1.0.3
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on June 19, 2005, 10:09:06 AM
What details are you using?  Are you sure the path is correct?

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: misscalais on June 20, 2005, 01:51:08 AM
I had heaps of probs trying to apply mods in the package manager via ftp and I couldnt figure out why?

then a light globe went off LOL

it comes up automatically as /forum as your local path to SMF but for me using cpanel it is :: /public_html/forum so it seems whatever u have directly behind your ftp domain address such as ftp://mydomain.com/public_html/forum is what you use !

lol seems so obvious now but think it would be better suited left blank if possible as to not confuse more ppl ??
Title: Re: Can't get past FTP in the installer?
Post by: myst on June 20, 2005, 09:18:25 AM
thank you
the mistake was of path
the default path was wrong
i changed it
and it worked
i m feeling great thank you
Title: Re: Can't get past FTP in the installer?
Post by: ">gagwae on June 22, 2005, 05:21:58 PM
Try CHMOD.
Title: Re: Can't get past FTP in the installer?
Post by: Tye on July 09, 2005, 12:03:46 PM
Okay I can not get to the page where you are supposed to install smf on to, once you have uploaded all of the files. I have followed all the instructions, created the directory called forum, uploaded smf install package and changed all of the chmod to 777. The problem is when I go to

http://tyrcar.100webcustomers.com/forum/install.php

all it does is leave me back to the cpanel home.

Now just so people don't add here is details of what I am using

100 web space as my hoster
FileZilla for my ftp manager.

Any suggestions would be appreciated
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on July 10, 2005, 05:42:57 AM
http://tyrcar.100webcustomers.com/forum/smf_1-0-5_install/

It doesn't look like it's uploaded completely/properly.

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: KingKoz on July 26, 2005, 03:34:21 AM
I'm running WinXP SP2 and when I try to add mods, some of them ask for the FTP info. Took me awhile to figure it out, but I finally got it to work (most of the time anyway)

- In the HOstname (where it defaults to "localhost" I use the IP
- Obviously, your username and password for the FTP and don't forget to  change the port if you don't use the default port 21.
- For the path to the forum (where it defaults to "/forum") I ended up getting it to work with the FULL path to the forum dir...i.e. c:/program files/apache group/apache2/httdoc/mydomain/forum (NO .com or whatever for the mydomain and it worked. I played with  it a little tonight and tried http://www.domain.com/forum but that didn't work. However, the error msg SMF gave me pointed me to just using domain/forum and that worked also. Now if I can just get past the error msgs, hacking attempts and the Not writable issues, everything would be hunky dory! ;-)

Hope that helps......

Koz
Title: Re: Can't get past FTP in the installer?
Post by: SmallTalkNation on August 06, 2005, 07:14:11 PM
If the ftp transfer does not work, am I supposed to get an error message?
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on August 06, 2005, 07:42:20 PM
Quote from: SmallTalkNation on August 06, 2005, 07:14:11 PM
If the ftp transfer does not work, am I supposed to get an error message?

No FTP transfer takes place.  It only changes the permissions on a set amount of files.  If it fails, partially, you may be able to continue.  I would suggest just making them writable yourself.

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: SmallTalkNation on August 06, 2005, 07:43:36 PM
Tried it, to no avail. 777'd every file listed, on Linux. Used right localhost, etc.
Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on August 06, 2005, 07:46:56 PM
Are you sure you are chmoding the directories, not just the files within them?  Actually, for example, the attachments directory should be 777, but attachments/index.php should probably not be.

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: SmallTalkNation on August 06, 2005, 07:53:08 PM
I'm 100% positive I CHMOD'd the directories.


Also, there was not a install.php in my /forum/ directory.
Title: Re: Can't get past FTP in the installer?
Post by: SiMoN-SaYs on August 15, 2005, 12:35:32 PM
i keep getting the error message
QuoteA critical error has occurred.

This installer was unable to find the installer's language file or files. They should be found under:
/forum/Themes/default/languages

i have tried removing all the files, re adding them, but i keep getting the same error. i have track the files and they are correct. i dont know what to do.  :'(
Title: Re: Can't get past FTP in the installer?
Post by: ripvanwinkle on August 15, 2005, 08:44:59 PM
Quote from: Killer Possum on July 30, 2004, 05:09:07 PM
Try the CHMOD manually...

Quote from: [Unknown] on May 30, 2004, 01:02:34 AM
If you are on a linux or other unix based server, which is what most servers are, you will need to chmod the following list of files to 777.  This can be done easily with most modern FTP clients, by right clicking on the files and going to "Permissions", "chmod", or "Properties..." (it varies...)  The files and directories are:

  • attachments (directory)
  • avatars (directory)
  • Packages (directory)
  • Packages/installed.list
  • Packages/server.list
  • Smileys (directory)
  • Themes (directory)
  • Themes/default/languages/Install.english.php (and any other Install.language.php files.)
  • agreement.txt
  • Settings.php
  • Settings_bak.php
  • install.php

These files are exactly the ones the installer will try to make writable for you if it can connect through FTP.  It only asks for FTP information if one of these files is not writable.

Just arrived at this point but have got further and have manually changed all the required files and folders to all the sevens (777).

However, when trying then to run install.php which is located int the smf root folder the following error appears "A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again."

What is it that I have to check?


Title: Re: Can't get past FTP in the installer?
Post by: [Unknown] on August 15, 2005, 09:41:31 PM
Try making them 755 instead.

-[Unknown]
Title: Re: Can't get past FTP in the installer?
Post by: ripvanwinkle on August 19, 2005, 04:11:46 PM
Perhaps my own and similar circumstances can help you.  I too came across the same error as you have.  Have a look at http://www.simplemachines.org/community/index.php?topic=45872.0  I eventually deleted all my files and uploaded them all over again.  Like British Rail says, "We're getting there".

Quote from: SiMoN-SaYs on August 15, 2005, 12:35:32 PM
i keep getting the error message
QuoteA critical error has occurred.

This installer was unable to find the installer's language file or files. They should be found under:
/forum/Themes/default/languages

i have tried removing all the files, re adding them, but i keep getting the same error. i have track the files and they are correct. i dont know what to do.
Title: Re: Can't get past FTP in the installer?
Post by: cibreso on August 25, 2005, 02:01:34 PM
hello there, I am new to smf, I actually have a phpbb board but really want to move to smf, anyway

went thru everything here but after I click continue on install.php i got this message

can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

any idea ? thx
Title: Re: Can't get past FTP in the installer?
Post by: cibreso on August 25, 2005, 03:51:58 PM
sorted  ;)
Title: Re: Can't get past FTP in the installer?
Post by: SiMoN-SaYs on August 29, 2005, 12:28:58 PM
thanks for the help, it was down to my host and me getting the wrong information. its all running fine now thanks. :D
Title: Re: Can't get past FTP in the installer?
Post by: MasterOfHyrule on September 14, 2005, 07:30:05 PM
I have a problem with the ftp thing also.

I don't know what to put for the "local path to SMF."  If I leave that part blank I get an error:

An Error Has Occurred!
2: copy(/home/jlieroxa/public_html/moh/outofsiteauctions/forums/Themes/default/images/english/chat.gif): failed to open stream: Permission denied
File: /home/jlieroxa/public_html/moh/outofsiteauctions/forums/Sources/Subs-Package.php
Line: 814

I get the almost the same error for the arcade.

Can anyone help?
Also I did tons of searching for this and tried different methods but no luck. My websites name is this:
http://www.lierox.net/moh/outofsiteauctions/forums/index.php?
Title: Re: Can't get past FTP in the installer?
Post by: Intbel on September 24, 2005, 06:42:23 PM
Read everything and after three days my brain hurts something awful.

Created a folder "Forum" and uploaded all files to it.
Couldn't make the necessary files wtiteable via ftp so did that manually, no worries.

The next step ... three days and not yet accomplished.

Question: does the databse folder (I'm using default smf folder) need to be inside my 'forum' folder or not?

Second question - is there anywayI am able to do this step manually?

>sigh< and I thought this was going to be such a simple thing to set up ...
Title: Re: Can't get past FTP in the installer?
Post by: Oldiesmann on September 28, 2005, 10:23:37 AM
Quote from: MasterOfHyrule on September 14, 2005, 07:30:05 PM
I have a problem with the ftp thing also.

I don't know what to put for the "local path to SMF."  If I leave that part blank I get an error:

An Error Has Occurred!
2: copy(/home/jlieroxa/public_html/moh/outofsiteauctions/forums/Themes/default/images/english/chat.gif): failed to open stream: Permission denied
File: /home/jlieroxa/public_html/moh/outofsiteauctions/forums/Sources/Subs-Package.php
Line: 814

I get the almost the same error for the arcade.

Can anyone help?
Also I did tons of searching for this and tried different methods but no luck. My websites name is this:
http://www.lierox.net/moh/outofsiteauctions/forums/index.php?

In your case, local path to SMF would be /public_html/moh/outofsiteauctions/forums

Intbel - send me a PM with a link to the install file and all the appropriate info (database name, username, password, what username and password you want to use for your board) and I'll see what I can do for you.
Title: Re: Can't get past FTP in the installer?
Post by: Intbel on September 28, 2005, 06:53:02 PM
Quote from: Oldiesmann on September 28, 2005, 10:23:37 AM
Quote from: MasterOfHyrule on September 14, 2005, 07:30:05 PM
Intbel - send me a PM with a link to the install file and all the appropriate info (database name, username, password, what username and password you want to use for your board) and I'll see what I can do for you.

Sorry for late response ... working long hours...
Thanks for your offer to help, but got that problem sorted.
I've admin'd a few forums but never set one up before.

Now I've screwed it up completely, however .. though I'm sure there must be a way of resolving things  ... but that is another topic so will post elsewhere ...

Thnx
Title: Re: Can't get past FTP in the installer?
Post by: webhostau on November 15, 2005, 11:17:48 PM
I just cant get past this install part

/domains/wiseguy.com/public_html/forum

Whats wrong? I chmod the folders and files 777.

Help pleaseeeeeeeeeeeeeeeeee
Title: Re: Can't get past FTP in the installer?
Post by: Oldiesmann on November 16, 2005, 10:32:37 AM
The path should be public_html/forum, not /domains/wiseguy.com/public_html/forum
Title: Re: Can't get past FTP in the installer?
Post by: uwak18 on November 18, 2005, 09:53:39 PM
need help.  I've already downloaded the file and extracted it.  But I can't install it. :-[
Title: Re: Can't get past FTP in the installer?
Post by: uwak18 on November 18, 2005, 09:57:14 PM
is there a very simple way to install smf. ???
Title: Re: Can't get past FTP in the installer?
Post by: Oldiesmann on November 21, 2005, 01:26:40 PM
What happens when you try to install it? If you're getting the FTP screen, make sure that the info you've entered is correct.

The path to SMF is the path from your root directory, not the complete server path.
Title: Re: Can't get past FTP in the installer?
Post by: OneShot on November 25, 2005, 10:15:43 AM
I have chmodded everything to 777, still no luck. It is stuck on the first screen - 'you have to chmod these files'. It says if I input my ftp password the program will do it for me. I don't think inputting my ftp password over an insecure channel is the smartest move. Any other ideas?

forgot to add, I am trying to install the latest version of SMF from your download page. Just checked - smf_1-0-5_install.zip is the file I downloaded, unzipped and ftpd to my server.

thank you.
Title: Re: Can't get past FTP in the installer?
Post by: OneShot on November 26, 2005, 10:35:56 PM
Quote from: OneShot on November 25, 2005, 10:15:43 AM
I have chmodded everything to 777, still no luck. It is stuck on the first screen - 'you have to chmod these files'. It says if I input my ftp password the program will do it for me. I don't think inputting my ftp password over an insecure channel is the smartest move. Any other ideas?

forgot to add, I am trying to install the latest version of SMF from your download page. Just checked - smf_1-0-5_install.zip is the file I downloaded, unzipped and ftpd to my server.

thank you.

Hello. I know it's a holiday weekend here in the States but I was really hoping someone could give me some help. :)
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on November 27, 2005, 12:25:52 AM
Try CHMODing them to 755.
Title: Re: Can't get past FTP in the installer?
Post by: rocket on December 11, 2005, 09:53:47 PM
OK, I have installed SMF on several domains, but have not had as much trouble as I have with GO DADDY.

I have manually chmod'd the directories, most files (Do all of the files in the directories need to be changed to 777?).

I am certain that there is a problem with the path.  I have tried every combination.  This is from Go Daddy's help system.

QuoteThis is the absolute path for your Linux hosting account:

/home/content/1/2/3/username/html/
Where "/1/2/3/" are the first three letters of your user name and "username" is the user name you used to set up your hosting account. For example, if your user name were "johndoe," then your absolute path would be:

/home/content/j/o/h/johndoe/html

am I looking at the right path?

Any suggestions?
Title: Re: Can't get past FTP in the installer?
Post by: redone on December 12, 2005, 09:26:31 AM
The path seems okay to me. Not all files need to be 755. Using the repair_settings tool will fix any path issues for your forum and my other bit of advice is to look closely at the mods you are installing and review the .mod or .xml file provided with each mod and set the files it is looking to change to 777.

If you are still having problems send me a pm.
Title: Re: Can't get past FTP in the installer?
Post by: NarrativeKnight on December 25, 2005, 02:24:58 PM
I am a Windows user and I have had the same FTP problem. I am however just trying to add avatars to my forum.  I down and then up loaded the avatars from the SMF forum so I know they are compatible but I cannot get them to add because of he error.  You said I should change the files to writable in my NTFS so I am assuming they are on my computer and I can just write click on them and make them writable. If this is the case then why would I need to call my host to do something as simple as changing file properties?  If it is not that simple then you could you please let me know since I want to learn how to fix this myself instead of calling my host.

Timothy of richtimothy.com
Title: Re: Can't get past FTP in the installer?
Post by: Oldiesmann on December 26, 2005, 06:42:46 PM
Make sure that the IUSR_{machine} account has "Modify", "read" and "write" priveleges on all folders. {machine} should be the name of your computer.
Title: Re: Can't get past FTP in the installer?
Post by: Der Helm on December 28, 2005, 04:08:23 PM
Hi there, guys. First post and I already need help.

All necessary files are set to 777 and are updated via my ftp-client (FTPUploader)

I get to the part where I enter the forum name and the ftp details. When I know click proceed, I get to a rather "blank" screen. SMF Installer is to be read in the left top corner, a graphic and a link to this forum in the top right and gray space beneath them. No error message, no reply at all, browser points to

smf/install.php?step=1

Any suggestions ?

Oh, using Windows XP SP and the Mozilla Firefox /1.0.7
Title: Re: Can't get past FTP in the installer?
Post by: StrangerWithin on January 09, 2006, 05:18:17 PM
Greetings :D

Ive read through most of the posts in this topic and many users seem to have a different approach.

Atm I have just uploaded all the files to my server. Then as instructed pointed my browser to http://mysite/forum/install.php and got the install screen.

That's where my problems began.

If someone could just clarify what the install screen is asking for as I am entering what I think should be there but it keeps getting rejected :(

Box 1: Server/ Local Host/Port 21              I believe this is correct and doesn't need changing?

Box 2: Username.    In here I have been entering my FTP username that I would use for a normal connection to upload files.

Box 3: Password.                As above^^^

Box 4: Install Path.              This one I have to admit to be 'unsure' about ???

I have Chmod all the necessary files to 777 but still no joy :-X

Any help greatly appreciated  :)

Many thanks
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on January 09, 2006, 05:28:35 PM
Try /forum/ as the path.

-JayBachatero
Title: Re: Can't get past FTP in the installer?
Post by: StrangerWithin on January 10, 2006, 02:43:20 AM
Quote from: JayBachatero on January 09, 2006, 05:28:35 PM
Try /forum/ as the path.

-JayBachatero

I have already tried that, in fact /Forum is the default path from what I can see :(
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on January 10, 2006, 09:16:39 AM
It should be /forum not /Forum.
Title: Re: Can't get past FTP in the installer?
Post by: kegobeer on January 10, 2006, 10:59:11 AM
Capitalization matters on *nix systems, but does not on Windows systems.  Always make sure to use proper capitalization regardless of the host's operating system.
Title: Re: Can't get past FTP in the installer?
Post by: Birger_Nord on January 10, 2006, 02:46:45 PM
I got an error and the DB was made but the FTP ****** didn't work >:( So I needed to clear the DB twice and change permission manualy.
Title: Re: Can't get past FTP in the installer?
Post by: StrangerWithin on January 11, 2006, 04:30:31 PM
Just to repeat my initial question.....

Please, can someone just tell me what to put in the text fields?


Box 1: Server/ Local Host/Port 21              I believe this is correct and doesn't need changing?

Box 2: Username.    In here I have been entering my FTP username that I would use for a normal connection to upload files.

Box 3: Password.                As above^^^

Box 4: Install Path.              /forum

I have tried this several times and always get this message.

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

On the point of giving up here tbh :(
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on January 12, 2006, 09:25:06 AM
Try putting the full path where the install path is.  You can get the full path frm your phpinfo.php file.

-JayBachatero
Title: Re: Can't get past FTP in the installer?
Post by: girls4christ on January 28, 2006, 03:07:01 PM
I changed the path to "public_html/smf" and kept everything else the same, the page then load and I click the proceed button...came up with this error:

2: copy(/home2/girls4c/public_html/smf/SSI.php~): failed to open stream: Permission denied
File: /home2/girls4c/public_html/smf/Sources/Subs-Package.php
Line: 1307

Does anyone know the problem?
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on January 28, 2006, 06:03:05 PM
Go to Admin > Package Manager > Settings > Create Backup versions of replaced files with a tilda (~) on the end of their names. index.php?action=packages;sa=options
Title: Re: Can't get past FTP in the installer?
Post by: FireJet on February 23, 2006, 03:41:21 PM
Quote from: [Unknown] on May 30, 2004, 01:02:34 AM
The installer for Beta 5 does not actually require FTP, it only uses it if there is a problem with the permissions of some files.

If 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.  However, you can fix the problem manually, in which case the installer won't even bother to try itself.

If you are on a linux or other unix based server, which is what most servers are, you will need to chmod the following list of files to 777.  This can be done easily with most modern FTP clients, by right clicking on the files and going to "Permissions", "chmod", or "Properties..." (it varies...)  The files and directories are:

  • attachments (directory)
  • avatars (directory)
  • Packages (directory)
  • Packages/installed.list
  • Packages/server.list
  • Smileys (directory)
  • Themes (directory)
  • Themes/default/languages/Install.english.php (and any other Install.language.php files.)
  • agreement.txt
  • Settings.php
  • Settings_bak.php
  • install.php

These files are exactly the ones the installer will try to make writable for you if it can connect through FTP.  It only asks for FTP information if one of these files is not writable.

These files and directories need to be writable so that all the features of SMF can work properly.  For information on why this is not really a security risk, please read the "Why chmod 777 is NOT a security risk (http://www.simplemachines.org/community/index.php?topic=2987.0)" topic.

If, on the other hand, you are under windows... you need to change the NTFS permissions for those same files.  If you do not know how to do this, please ask your host to do it for you or have them just make the entire forum's directory and all it's files writable. (the installer will not offer FTP on windows because it won't do any good...)

The next release will have more detail in its FTP error messages.

Thank you for your patience,
-[Unknown]
I've been having this problem on SMF 1.0.6, and even though I've set 777 to ALL of the directories, even the whole forum folder itself recursively, I can't get past the screen. I'm running on Linux, and I even checked the directories with mc just to make sure, but I've been having no luck so far. My server only supports SSH, and I've tried the installer on port 22, but that didn't work either. Can anyone help?

This is what I get when I try to connect on port 22:
QuoteUnable to connect to FTP server with this combination of details.

BTW: sorry if this has been posted before  :-[
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on February 23, 2006, 07:02:48 PM
Can you try by creating a dir called temp inside Packages and CHMOD it to 777.  The and port 21.
Title: Re: Can't get past FTP in the installer?
Post by: FireJet on February 24, 2006, 01:49:31 PM
The server doesn't have FTP(port 21) access, you have to login using SSH(port 22). I CHMODed the "temp" directory manually to 42777, and still nothing. before that I CHMODed the whole forum directory with "chmod -R 2777 forum" and then I made the temp directory. I even tried to chown the entire thing to my friend but it says that the action is not allowed  :o
Title: Re: Can't get past FTP in the installer?
Post by: hel8itch on February 25, 2006, 10:59:31 AM
oh god im going nuts..
i have an smf forum iv used for a long time..but unfortunately my host is having probs.so im trying to create a backup forum.
i signed up with byethost32.com
and uploaded all the smf files.
i try to install and all i get is this
Unable to connect to FTP server with this combination of details.
and at the bottom is says about chmod the folders to 777 which iv done and double checked over and over
as far as i know the server should be set to localhost.
but nothing will work.
i also dont think i have the install path correct.
i have the smf files uploaded into htdocs/forum
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on February 25, 2006, 06:47:37 PM
hel8itch make sure the path is correct.

nato CHMOD the required files to 777.
How do I use chmod? (http://www.simplemachines.org/community/index.php?topic=23690.0)
Title: Re: Can't get past FTP in the installer?
Post by: - danny on March 23, 2006, 06:36:31 PM
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.
Title: Re: Can't get past FTP in the installer?
Post by: - danny on March 23, 2006, 07:16:21 PM
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.
Title: Re: Can't get past FTP in the installer?
Post by: quinti on April 07, 2006, 07:13:18 AM
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:     ftp.quinti.net
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
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on April 07, 2006, 09:24:01 AM
For the "Directorio loca;" use /forum and CHMOD all of the files to 777 not just index.php
Title: Re: Can't get past FTP in the installer?
Post by: quinti on April 07, 2006, 10:15:34 AM
Hi, thanks


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

then
i put :

Servidor de FTP:     ftp.quinti.net
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 ...   
Title: Re: Can't get past FTP in the installer?
Post by: Kreuvf on April 11, 2006, 09:33:37 AM
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.
Title: Re: Can't get past FTP in the installer?
Post by: puttputt on April 12, 2006, 04:24:20 AM
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. 





Title: Re: Can't get past FTP in the installer?
Post by: Canih on April 12, 2006, 02:54:02 PM
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 include free scripts with every plan and it includes the SMF

goog luck ;D
Title: Re: Can't get past FTP in the installer?
Post by: Czech on April 12, 2006, 06:24:49 PM
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.
Title: Re: Can't get past FTP in the installer?
Post by: kegobeer on April 12, 2006, 06:45:41 PM
Is your site hosted on a Windows or Linux box?
Title: Re: Can't get past FTP in the installer?
Post by: softwaresupport on April 13, 2006, 05:29:31 AM
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
Title: Re: Can't get past FTP in the installer?
Post by: Kreuvf on April 14, 2006, 05:35:09 AM
Quote from: kegobeer on April 12, 2006, 06:45:41 PM
Is your site hosted on a Windows or Linux box?
Hosted on a Linux 'box'.
Title: Re: Can't get past FTP in the installer?
Post by: 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
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on April 14, 2006, 01:26:30 PM
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
Title: Re: Can't get past FTP in the installer?
Post by: CyberSongs on April 15, 2006, 03:33:40 PM
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>
Title: Re: Can't get past FTP in the installer?
Post by: AlexJ on April 28, 2006, 06:22:06 AM
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
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on April 28, 2006, 09:37:18 AM
The files the mods is editing. 
Title: Re: Can't get past FTP in the installer?
Post by: Patrickh on April 29, 2006, 05:29:02 PM
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
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://')
                        $ftp_server = 'ssl://' . 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.
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on April 29, 2006, 05:34:15 PM
The download/upload is corrupt.  Download again and reupload it.
Title: Re: Can't get past FTP in the installer?
Post by: mojito on May 23, 2006, 02:11:46 PM
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!
Title: Re: Can't get past FTP in the installer?
Post by: Welli on May 25, 2006, 03:49:13 PM
i followed all the instructions in the end every file has CHMOD 777 now and it still says it doesnt have permission to write to some files - any ideas?
Title: Re: Can't get past FTP in the installer?
Post by: mojito on May 25, 2006, 03:55:58 PM
find the right part of the function in install.php and hack the array so it doesnt check any pages for the permissions, then it will sail through, but you need to be sure the files are the correct permissions.

c
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on May 25, 2006, 04:26:10 PM
Quote from: papabill on May 25, 2006, 03:44:38 PM
No matter what I try to do, install packages or upgrade the board, I keep getting that "ftp connection information" screen. I'm running Linux here, and Win2K on the other machine. I DON'T HAVE the FTP on this machine-it's on another with the bigger hard drives.-this machine's FTP port is locked through my router.

Windows platform seemed to be easier, because there was not so much problem with the ftp connection information.

I guess I'll have to go back to phpBB-and I hate to do that because I ran a great SMF board for 2 years on the Win machine.

Thanks...
You MUST CHMOD all the files to 777 then if you don't have FTP.

Quote from: Welli on May 25, 2006, 03:49:13 PM
i followed all the instructions in the end every file has CHMOD 777 now and it still says it doesnt have permission to write to some files - any ideas?
Which files are not writeable?

Quote from: mojito on May 25, 2006, 03:55:58 PM
find the right part of the function in install.php and hack the array so it doesnt check any pages for the permissions, then it will sail through, but you need to be sure the files are the correct permissions.

c
Please don't advice people to do this.  It's best to just make the files writeable.
Title: Re: Can't get past FTP in the installer?
Post by: mojito on May 25, 2006, 04:28:32 PM
I wouldnt need to if the script or server correctly detected the permissions on the files. Do you think I would go to all that trouble if it was a matter of setting the file permissions. There is a problem with this script , just look at all the similar posts.
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on May 25, 2006, 04:31:59 PM
Quote from: mojito on May 25, 2006, 04:28:32 PM
I wouldnt need to if the script or server correctly detected the permissions on the files. Do you think I would go to all that trouble if it was a matter of setting the file permissions. There is a problem with this script , just look at all the similar posts.
How is there a problem with this script if mostly everybody here is able to install it w/o a problem.  I have like 6 versions of SMF installed on my website and local test server and they don't give me issues with permission.  The problem is hosts that don't allow CHMODing files to 777.  In that case you have to CHMOD to 755.
Title: Re: Can't get past FTP in the installer?
Post by: mojito on May 25, 2006, 04:35:59 PM
like i have time for this - I post to help people ok.

Dont be such a control freak and telling them what or what not to post.

Are you a  little cartmen telling me i must respect you ortority.

Sorry for the moderators who will now have to step in.

FYI I KNOW FOR A FACT THAT MY SERVER ALLOWS PERMISSION CHANGES AND THE FILES AND ALL FOLDERS WERE ALL 777 -before you ask i tried 755 too.
Title: Re: Can't get past FTP in the installer?
Post by: Oldiesmann on May 25, 2006, 05:49:10 PM
There is not a problem with the script, just as Jay stated. Thousands of people have installed SMF successfully, and I personally have installed at least half a dozen forums since the functionality to chmod files automatically via FTP was introduced, and several others before then. The script uses the standard PHP function is_writable to determine whether or not the files are writable. If the install script says some files or folders aren't writable, then it is just repeating what PHP told it.

Please refer to the post at the beginning of this topic for instructions on exactly what needs to be chmodded. If the script still says something isn't writable and you've verified that everything is, I would suggest contacting your host.
Title: Re: Can't get past FTP in the installer?
Post by: gfawce101 on June 05, 2006, 06:04:00 PM
I must admit, I too hav changed file permissions on all folders, my host does allow 777 changes but still I can't get past the first installer step that suggests I should change the following directories to be writeable . . .

Any thoughts?
Title: Re: Can't get past FTP in the installer?
Post by: JayBachatero on June 05, 2006, 06:18:08 PM
Are you installing 1.1 RC2 or 1.0.7?

Also did you try changing the permission by entering the FTP info on the login screen?
Title: Re: Can't get past FTP in the installer?
Post by: gfawce101 on June 05, 2006, 06:43:46 PM
I'm installing 1.1rc2 - I tried 1.0.7 and the installer worked just fine.

I've tried using the ftp connection with the installer but get this error:

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

550 /vhosts/mysite.com/httpdocs/forums: No such file or directory


Which is odd considering the installer seems to know what the path is (i know this because the installer has the field 'Install Path' filled in with the following)

/vhosts/mysite.com/httpdocs/forums

So I changed permissions manually. I tried first via my ftp software. Didn't work. Then tried to install again this time changing permissions using chmod at the command line, still the installer says permissions need to be set to 777.

Finally I try again with a different folder name. The installer still says the permissions on the files need changing. I'm reasonably competent at these kinds of things, have installed a bunch of stuff before. I know the permissions are correct and I know the folders are there.

Any help, greatly appreciated!


Title: Re: Can't get past FTP in the installer?
Post by: gfawce101 on June 05, 2006, 06:55:29 PM
[RESOLVED]

Sorry! My fault . . . didn't change permissions on the folder smf was installed in. If for example you install into www.mysite.com/forums/ make sure the folder "forums" also has permissions of 777!

I missed the period at the bottom of the "these files need 777 permissions" list on the install page which is unix for "This Directory".

Sorry if I wasted anyone's time! Maybe this should be clearer during install?

Thanks!
Title: Re: Can't get past FTP in the installer?
Post by: jax1tmo on June 06, 2006, 09:21:48 PM
I also overcame this issue by making sure that all the file and folder (including the install folder) permissions were set to 777.

This was, of course, after I pulled out a majority of my hair.  >:(

Many thanks to everyone on the forum that helped me troubleshoot this one.

Title: Re: Can't get past FTP in the installer?
Post by: blink on June 29, 2006, 07:05:18 PM
Just change the path at the bottom to

/forums


friggin wasted an hour on that! :'(
Title: Re: Can't get past FTP in the installer?
Post by: JoomlaJon on July 27, 2006, 09:56:44 PM
Quote from: [Unknown
and directories are:

  • attachments (directory)
  • avatars (directory)
  • Packages (directory)
  • Packages/installed.list
  • Packages/server.list
  • Smileys (directory)
  • Themes (directory)
  • Themes/default/languages/Install.english.php (and any other Install.language.php files.)
  • agreement.txt
  • Settings.php
  • Settings_bak.php
  • install.php
-[Unknown]

This list has  a few more files then what SMF told me needed to be chmodded. So when I finally found this my problem was solved. Now I have bookmarked it so I don't forget wear I found it.

Thanks
Title: Re: Can't get past FTP in the installer?
Post by: nitsua on November 07, 2007, 07:16:48 PM
I am still having problems installing mods can you list ALL file that may need chmodded
Title: Re: Can't get past FTP in the installer?
Post by: shadow82x on November 07, 2007, 07:41:39 PM
nitsua - All your SMF FTP files should be chmoded to 777 or 755.

# /attachments
# /packages
# /themes
# /smilies
# index.php
# settings.php andsettings_bak.php

How do I use chmod? (http://www.simplemachines.org/community/index.php?topic=23690.0)

I assume you mean the 1.1 installer?
Title: Re: Can't get past FTP in the installer?
Post by: nitsua on November 09, 2007, 10:47:46 AM
i already chmooded those to 777
Title: Re: Can't get past FTP in the installer?
Post by: shadow82x on November 09, 2007, 11:01:30 AM
Than try to chmod all the files to 755. (Some hosts only support that)

    * attachments (directory)
    * avatars (directory)
    * Packages (directory)
    * Packages/installed.list
    * Packages/server.list
    * Smileys (directory)
    * Themes (directory)
    * Themes/default/languages/Install.english.php (and any other Install.language.php files.)
    * agreement.txt
    * Settings.php
    * Settings_bak.php
    * install.php
Title: Re: Can't get past FTP in the installer?
Post by: muffinman on December 12, 2007, 05:33:33 AM
Quote from: mojito on May 25, 2006, 03:55:58 PM
find the right part of the function in install.php and hack the array so it doesnt check any pages for the permissions, then it will sail through, but you need to be sure the files are the correct permissions.

c

good idea, did that and it worked - except that the database settings were not accepted and I had to enter them in settings.php manually. I don't know what it is but the forum really seems to be unable to write anything.

I tried everything though - I chmodded all files 777 and 755 (even as root), included an echo in the install php to show if the path was correctly recognized and made my own file and used the iswritable method that was used in the install script - and it reported back that it was writable, yet this didn't change anything for the other files, it always showed all of them as unwritable.
Title: Re: Can't get past FTP in the installer?
Post by: metallica48423 on December 16, 2007, 02:30:40 AM
It still is not reccommended to edit the installer script to bypass, if it says its not writable it probably isnt.

You also need to make the directory the files are in writable as well.  so if your forum is in /forum then you need to make /forum writable, as well as those files.