Installing WordPress on your Webserver

[caption id="attachment_1480" align="alignnone" width="399"] Installing Wordpress on your Webserver[/caption] Installing Wordpress 1. Download the WordPress package from here. 2. Create a database and user. I use PHPadmin to administer my MYSQL databases. 3. Find and rename wp-config-sample.php to wp-config.php, then edit the file. You need to edit the italicized database settings below: /** The name of the database for WordPress */ define('DB_NAME', 'databasename'); /** MySQL database username */ define('DB_USER', 'databaseusername'); /** MySQL database password */ define('DB_PASSWORD', 'databasepassword'); You need to go to https://api.wordpress.org/secret-key/1.1/salt/ and copy and replace the 8 lines of text in your wp-config.php file. For example purposes only: define('AUTH_KEY', '#{. C`UN|)6_=1^h>JjQ?ca+Lw@tcBQ+Zfjg|loq[C?DBTs%}^,L<gY<+qM+J3kt'); define('SECURE_AUTH_KEY', 'X[=iKOtB@YU8TbT?3UJdfhHw)2uw|A|HOX==m%6X+//9^iUe$9%DXR42:]~7x=[+'); define('LOGGED_IN_KEY', 'kWQ|(ZVpCaifAOEoS|E#(Bf)P}CWZ=lxAF|6A(S5):d# q|%4C*H|+y?F _B+EA-'); define('NONCE_KEY', 'N,V~=-qBk]Jg|+Ch|x:@-!nC>!=+&?!U4CJkm^f5HG)[Q/]-sM6})<dH;qiFElJO'); define('AUTH_SALT', 'b/|ufGg2.zmRru 0[M`%AM8eu!%y6%)obkn*rNLKNFoN;[}=mwcU}L};t.`!U3:s'); define('SECURE_AUTH_SALT', '*RcU,<Rk3meDC%wz:-yc8~J6Gm*[^q~9 ~;A*x<-)12,a4;|xG]-{.lE>+`[|S}X'); define('LOGGED_IN_SALT', '-_;E]q<ca HFFHQf+7qI.pC0ri$hvd5!K;3j>|nu |}*.F<j;xw:Qhf=!:8Vtj`='); define('NONCE_SALT', '97J![-g^w/w%DKL 508NGRfi76I+VoI]G1H+3BXk 9347{Q`H$57!fvx1NC|wwei'); 4. Upload the WordPress files to your desired directory on the Webserver. 5. Run the installation script by going to your website. More information WordPress is well-known for its ease of installation. Under most circumstances, installing WordPress is a very simple process and takes less than five minutes to complete. Many web hosts now offer tools (e.g. Fantastico) to automatically install WordPress for you. However, if you wish to install WordPress yourself, the following guide will help. Now...Read More

Installing Minecraft Server Manager on a Linux Server

[caption id="attachment_1476" align="aligncenter" width="500"] Installing Minecraft Server Manager on a Linux Server[/caption] Login via SSH with root access and issue the bolded commands. 1. Install Java. sudo apt-get install openjdk-7-jre 2. Install Minecraft Server Manager. sudo wget -q http://git.io/Sxpr9g -O /tmp/msm && bash /tmp/msm 3. Create your Minecraft Server in MSM. sudo msm server create <servername> 4. Update to latest Minecraft version on MSM. sudo msm jargroup create mc172 https://s3.amazonaws.com/Minecraft.Download/versions/1.7.2/minecraft_server.1.7.2.jar sudo msm jargroup getlatest mc172 sudo msm jar mc172 5. Restart Minecraft Server Manager. sudo msm server restart Minecraft Server Manager Documentation Minecraft Server Manager Commands: --Setup Commands------------------------------------------------ server list                                   List servers server create <name>                          Creates a new Minecraft server server delete <name>                          Deletes an existing Minecraft server server rename <name> <new-name>               Renames an existing Minecraft server --Server Mangement Commands------------------------------------- <server> start                                Starts a server <server> stop [now]                           Stops a server after warning players, or right now <server> restart [now]                        Restarts a server after warning players, or right now <server> status                               Show the running/stopped status of a server <server> connected                            List a servers connected players <server> worlds list                          Lists the worlds a server has <server> worlds load                          Creates links to worlds in storage for a server <server> worlds ram <world>                  ...Read More

How to set up your domain Virtual Hosts on a Linux server

[caption id="attachment_1478" align="alignnone" width="297"] How to set up your domain Virtual Hosts on a Linux server[/caption]  Linux Server Domain Virtual Hosts are used to run more than one domain off of a single IP address. 1. Create a Directory. sudo mkdir -p /var/www/yourdomain.tld/public_html 2. Grant Permissions. sudo chown -R $USER:$USER /var/www/yourdomain.tld/public_html sudo chmod -R 755 /var/www 3. Create a page. sudo nano /var/www/yourdomain.tld/public_html/index.html Type in nano "Your domain is set up!" then Save and Exit 4, Create the new Virtual Host File. sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/yourdomain.tld.conf 5. Turn on Virtual Hosts in the configuration. sudo nano /etc/apache2/sites-available/yourdomain.tld.conf Change or Add the following lines. ServerAdmin webmaster@yourdomain.tld ServerName yourdomain.tld ServerAlias www.yourdomain.tld DocumentRoot /var/www/yourdomain.tld/public_html Save sudo a2ensite yourdomain.tld 6. Restart Apache sudo service apache2 restart Domain Virtual Hosts To use name-based virtual hosting, you must designate the IP address (and possibly port) on the server that will be accepting requests for the hosts. This is configured using the NameVirtualHost directive. In the normal case where any and all IP addresses on the server should be used, you can use * as the argument to NameVirtualHost. If you're planning to use multiple ports (e.g. running SSL) you should add a Port to the argument, such...Read More

Installing FTP on a Linux server

[caption id="attachment_1461" align="alignnone" width="142"] Installing FTP on a Linux server[/caption] Enter the commands in Bold sudo apt-get install vsftpd If you would like to change options in vsftpd (optional). sudo nano /etc/vsftpd.conf Restart FTP service service vsftpd restart *Do NOT use the root user to login. To create a user to upload web files. adduser <username> adduser <username> sudo usermod --home /var/www <username>

Basic LAMP (Linux, Apache, MySQL, PHP) installation on a Linux Server

I will assume you have a base system with Ubuntu 13.04 installed and updated. 1. Install Apache2. sudo apt-get install apache2 [To verify] Direct a browser to the ip address of your server and you should see the placeholder page. 2. Install PHP5. sudo apt-get install php5 libapache2-mod-php5 Restart Apache after PHP5 installation is completed. sudo service apache2 restart [To verify] Create a file named info.php with the following code. <?php phpinfo(); ?> Place the file in the directory /var/www/html Display the file in a browser by going to youripaddress/info.php You should see something similiar to the following. 3. Install MySQL5. sudo apt-get install mysql-server mysql-client 4. MySQL support in PHP5 Too see the various PHP5 modules available. apt-cache search php5 Pick the ones you desire and install them. (php5-mysqlnd is the native MySQL driver) apt-get install {module} Restart Apache. sudo service apache2 restart