smf hosting on vps - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion) +--- Forum: Tutorials (https://post4vps.com/Forum-Tutorials) +--- Thread: smf hosting on vps (/Thread-smf-hosting-on-vps) |
smf hosting on vps - Decent12 - 10-01-2016 by me [Proof] https://freedomain.club/showthread.php?tid=2502 hi guys today i will show you how to host Smf on Debian7 and unbuntu first of all you will need to install LAMP if you dont have already on your vps so first i will show you how to install LAMP if you dont have Before we start the process we should check the repositories are up to date or not Code: apt-get update Step 1 - Install apache open your vps terminal and type this cmd Code: apt-get install apache2 Step 2 Install mysql For installing mysql open your vps terminal and type the following commands Code: apt-get install mysql-server finishing up by runing mysql setup script Code: mysql-secure_installation type it in. "Enter current password for root (enter for none): OK, successfully used password, moving on..." the prompt will ask you if you want to change password go ahead and type No its easiest just to say yes for all questions its looks like this "By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Code: Remove anonymous users? [Y/n] y Step Three—Install PHP Open terminal and type the following command Code: apt-get install php5 php-pear php5-mysql finishing up by installing php Code: service apache2 restart checking result of php Well Lamp installed now we will create a small php info page to setup this first create a new file Code: nano /var/www/info.php Code: <?php at last now we will move to install smf on vps we should also install send mail as it will also send password reset link to forum users for installing this type the following command in terminal Code: apt-get -y install sendmail Step 2 Create a Database we will now make SMF database and SMF user with password "password" dont forget to change it in your own value Code: mysqladmin create SMF Code: mysql -Bse "create user 'SMF'@'localhost' identified by 'PassWord'; Code: mysql -Bse "grant all privileges on \`SMF\`.* to 'SMF'@'localhost';" Code: mysqladmin flush-privileges"[code] Code: cd /var/www Code: wget http://mirror.ord.simplemachines.org/downloads/smf_2-0-11_install.tar.gz Code: tar xvfz smf_2-0-11_install.tar.gz Code: rm -rf smf_2-0-11_install.tar.gz" open terminal and type the following commands Code: "cd /var/www Code: chmod 777 $dirs; done" now you will smf configuration page and fill it with correct details for database details enter the following details except your password which you changed Code: "Server name: localhost Code: "rm -rf /var/www/install.php RE: smf hosting on vps - YOuNeS_Dz - 11-04-2016 nice tut dude.. i'll test it soon(i need vps to do that :c) |