News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Installing to local host

Started by Levi45, August 16, 2022, 12:20:18 PM

Previous topic - Next topic

Levi45

Hi to all , this is my first post. I like to know how can I install smf 2.1 to my local host for test many thanks.  :)

Doug Heffernan

Quote from: Levi45 on August 16, 2022, 12:20:18 PMHi to all , this is my first post. I like to know how can I install smf 2.1 to my local host for test many thanks.  :)

Have a look at this link on how to install smf.

Installing SMF


noquiexis

     "Localhost" refers to your home or office computer. It is not online, but it needs all of the software that an online web server uses. See LAMP at Wikipedia.

     If your computer operates on Linux, then you need the LAMP (Linux, Apache, MySQL, PHP/ or Perl/ or Python).

Linux for the operating system
Apache HTTP Server
MySQL for the relational database management system
PHP, Perl, or Python programming language

     If the system uses Microsoft Windows, then you need the WAMP package (Windows, Apache, MySQL, PHP/ or Perl/ or Python).

     There are "All-in-One" packages for these, and Wikipedia does have a list. They will get you up and running quickly, but I prefer to get the individual software packages from the original designers. There is a bit of a learning curve building your localhost from scratch, but you will come out ahead in the long run. Upgrading the individual packages is much easier, too.

     If the localhost computer uses something other than Linux or Windows, you may have to search for compatible software.

     I knew nothing about localhost when I started, and it took me seven (7) weeks to see the first web page, I kid you not! It was only afterwards that I discovered that here even were "All-in-One" packages. I was on dial-up networking, too, so downloading the software and all of the manuals took part of that time.

     After I bought my website (years later), I uploaded duplicate software for the products I use. You get a better 'real world' experience with an online testbed, too.

     I hope this helps, and best of luck!

:)  :)  :)
"To me the meanest flower that blows can give
 Thoughts that do often lie too deep for tears."

    William Wordsworth

Levi45

Im little bit stuck on creating Privileges on database that i created for smf . I get this error i wonder what to do next thanks.

iqbalresources

a bit weird, because mine localhost, do not have to create any database, The SMF would create it during installation.

Kindred

#5
SMF does not create the database. You need to give it a valid existing database, and SMF will fill the database with the correct tables and data...


As for the comments above on local host, they are only partially correct. Local hosts can be used to refer to your local physical computer, but It is also used to refer to a server that talks to itself And is a valid setting for many SQL database connections on many hosts
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

noquiexis

Levi45,

     If you are not familiar with MySQL, you might use a third party database tool like phpMyAdmin. It has a graphic user interface and can provide the correct syntax for you.

:)  ;)  :)
"To me the meanest flower that blows can give
 Thoughts that do often lie too deep for tears."

    William Wordsworth

FredT

#7
Xampp is the tool I usualy use. It comes with newest Apache and MySQL and is also able to use Tomcat, Mercury, Filezila.

Install Xampp without all the Bitnami stuff. It is not needed.

After you installed Xampp, go to the MySQL "Admin" tab over to myphpadmin.

Make a new database in myphpmyadmin with a new user.
You should know (or google) the proper MySQL statements such as:

CREATE DATABASE mydatabasename;
CREATE USER 'userme'@'localhost' IDENTIFIED BY 'mypassword';
GRANT ALL PRIVILEGES ON mydatabasename . * TO 'userme'@'localhost';
FLUSH PRIVILEGES;

Now move your smf files via FTP to your virtual/local htdocs folder and what Xampp made for you

Go to your internet browers addressbar and type
127.0.0.1
or
localhost

And now start installation of the forum.

@rjen

Quote from: Levi45 on August 17, 2022, 01:48:47 PMIm little bit stuck on creating Privileges on database that i created for smf . I get this error i wonder what to do next thanks.

This is not an SMF issue, but an issue in your local MySQL install.
You will need to repair the tables in the mysql database...

An instruction:
https://youtu.be/aSVjUmpda5Q
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Levi45

Excellent now installed and working fine many thanks :)  :) .

Levi45

One more question, i have installed more than 1 theme's  how can i make that all themes visible to everyone for selection thanks.

@rjen

In standard SMF members can only change the theme from their user settings (Under look and layout).

If you want something more fancy you need a theme changer... portals have blocks for that... I use TinyPortal to do that...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Advertisement: