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

Welli

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?

mojito

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
SMF 1.1 RC2 bridge 1.4

JayBachatero

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.
Follow me on Twitter

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

mojito

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.
SMF 1.1 RC2 bridge 1.4

JayBachatero

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.
Follow me on Twitter

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

mojito

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.
SMF 1.1 RC2 bridge 1.4

Oldiesmann

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.
Michael Eshom
Christian Metal Fans

gfawce101

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?

JayBachatero

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?
Follow me on Twitter

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

gfawce101

#109
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!



gfawce101

[RESOLVED]

Sorry! My fault . . . didn't change permissions on the folder smf was installed in. If for example you install into hxxp:www.mysite.com/forums/ [nonactive] 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!

jax1tmo

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.


blink

Just change the path at the bottom to

/forums


friggin wasted an hour on that! :'(

JoomlaJon

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

nitsua

I am still having problems installing mods can you list ALL file that may need chmodded

shadow82x

#115
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?

I assume you mean the 1.1 installer?
Colin B
Former Spammer, Customize, & Support Team Member

nitsua


shadow82x

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
Colin B
Former Spammer, Customize, & Support Team Member

muffinman

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.

metallica48423

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.
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Advertisement: