Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Levi45 on August 16, 2022, 12:20:18 PM

Title: Installing to local host
Post by: Levi45 on August 16, 2022, 12:20:18 PM
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.  :)
Title: Re: Installing to local host
Post by: Doug Heffernan on August 16, 2022, 12:35:49 PM
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 (https://wiki.simplemachines.org/smf/Installing)

Title: Re: Installing to local host
Post by: noquiexis on August 17, 2022, 07:46:18 AM
     "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 (https://en.wikipedia.org/wiki/LAMP_(software_bundle) 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 (https://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages). 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!

:)  :)  :)
Title: Re: Installing to local host
Post by: Levi45 on August 17, 2022, 01:48:47 PM
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.
Title: Re: Installing to local host
Post by: iqbalresources on August 17, 2022, 06:16:44 PM
a bit weird, because mine localhost, do not have to create any database, The SMF would create it during installation.
Title: Re: Installing to local host
Post by: Kindred on August 17, 2022, 07:03:53 PM
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
Title: Re: Installing to local host
Post by: noquiexis on August 17, 2022, 10:31:08 PM
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.

:)  ;)  :)
Title: Re: Installing to local host
Post by: FredT on August 18, 2022, 02:27:58 AM
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.
Title: Re: Installing to local host
Post by: @rjen on August 18, 2022, 05:13:38 AM
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
Title: Re: Installing to local host
Post by: Levi45 on August 18, 2022, 06:17:31 AM
Excellent now installed and working fine many thanks :)  :) .
Title: Re: Installing to local host
Post by: Levi45 on August 19, 2022, 06:52:18 AM
One more question, i have installed more than 1 theme's  how can i make that all themes visible to everyone for selection thanks.
Title: Re: Installing to local host
Post by: @rjen on August 19, 2022, 06:57:13 AM
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...