News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Install: ftp mandatory?

Started by digit, May 23, 2004, 01:13:37 AM

Previous topic - Next topic

digit

I chmodded the files, but when I pull up install.php, it asks me for my ftp info (not the MySQL database username, etc)  Is there a way to bypass this?
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

David

FTP access is only used by the installer if needed files are not already made writable when you uploaded them and PHP does not have access to change them to be.
This space for rent.

digit

ok, I did this, what else do I need to do?

Thanks.

chmod 666 Settings.php
chmod 666 Settings_bak.php
chmod 777 Themes
chmod 777 Packages
chmod 777 attachments

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

digit

I was working from that page -

From that page -

Once all the files are uploaded, if you are using a *nix server, which is likely the case, you will need to change the permissions [chmod] on a few of the files and directories. The procedure to do this varies between different FTP programs, but generally you right click on the file or directory whose permissions you wish to change and select properties and enter a number in the permissions field. If you are unsure, consult the help file of the ftp program you are using.

The files you need to change the permissions for are Settings.php and Setting_bak.php. The permissions for these two files should be set to 666.

The directories you need to change the permissions for are attachments, Packages and Themes. The permissions for these three directories should be set to 777.

Installing SMF

Assuming the previous steps went well, you should now have the SMF source files on your server and their relevant permissions set, all that is needed now is to run the install.php file to configure your MySQL database, settings and your admin account.

Open up your favourite web browser and browse to http://www.yourdomain.tld/smf/install.php (where smf is the directory name you chose earlier). Provided you set the permissions correctly on Settings.php and Setting_bak.php you should see a form asking for various settings. Fill these in as follows:

orum Name: This will be the name of your forum.  It starts as "My Community" but you should probably change it.
Forum URL: This is the url your forum will be located at, the SMF installer should have worked this out for itself so in most cases you can leave this setting at its default value.
MySQL server name: This is where we specify the server that the MySQL database resides on. 99% of the time this will be localhost.
MySQL username: This is the username for your MySQL database, often you will have to set this up in your web hosts control panel, if in doubt, consult your host.
MySQL password: This is the password for your MySQL database, often you will have to set this up in your webhosts control panel, if in doubt, consult your host.
MySQL Database name: This is the name of your MySQL database, often you will have to set this up in your webhosts control panel, if in doubt, consult your host.
MySQL Database prefix: This is a prefixed to the table names in your database, it enables you to run more than one application on a single MySQL database, you should generally leave it as smf_, unless you are installing a second copy of SMF on the same database.





problem is, after setting the prermissions as shown above, I still get a page asking me for my ftp info (not the mySQL server info)
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Owdy

Try chmod all 777

chmod -R 777 smf
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Oldiesmann

Make sure all the default languages are chmodded to 666...
Michael Eshom
Christian Metal Fans

digit

ok, now I feel dumb - where are the languages?
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Oldiesmann

Actually, you just need to make sure Install.english.php is chmodded to 0666. It can be found in Themes/default/languages.
Michael Eshom
Christian Metal Fans

digit

gawd

chmod 666 Install.english.php

still get the same ftp screen.

:-(
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Oldiesmann

Ok... Make sure everything is chmodded properly:

All directories (and their subdirectories), including the one that SMF is in, should by chmodded to 777

The following should be chmodded to 666:
Packages/installed.list
Packages/server.list
Themes/default/languages/Install.english.php
agreement.txt
install.php
Settings.php
Settings_bak.php

In addition, you should also chmod the following files to 666, although it isn't required for the install:
Themes/classic/index.template.php
Themes/classic/style.css
Themes/default/index.template.php
Themes/default/style.css

CHMod all other .php files to 755
Michael Eshom
Christian Metal Fans

digit

Cool. I managed to get past the ftp screen by doing chmod 777 f/*.php (and setting the other permissions) :-)

This is nice looking software guys! :-) Wow.

Now, should I set some of the permissions so they aren't so wide open?
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Grudge

Not really. There's a nice piece by Unknown here about why it's not a problem leaving stuff 777. In fact if you ever want to use the package manager you should leave stuff at 777. The only thing I personally would change is Settings.php to 644 or 666, not that it should make any difference to security as I understand - but oh well :)
I'm only a half geek really...

Advertisement: