الجمعة، 4 يناير 2013

Wordpress on SourceForge Webserver

Building blog and sites from WordPress is really a easy work. So we can use wordpress as a CMS for our sourceforce project web pages. This guide would serve as step by step procedure to setup WordPress on your sourecforge project page.
Logging in
After logging in to your sourceforge account, go to the concerned project page, which will be something like this [http://sourceforge.net/projects/examples]
Database Setup
WordPress requires MySQL database management system for its beck-end as it stores all the CONTENT of its pages in the database.
To set it up, in the Project Admin menu click on Features. There in the Database Service heading click on Manage link of “Project Databases”. (If you already have setup a database, in that case the password for all the users will be visible in plain text, so be aware of this fact). The project databases are not activated by default, they are activated only after you set password for different user permission sets. So set passwords for all the three users listed there.
Wait for some time and the databases will be active. Keep the username admin and it’s password noted or remember.
On the same page, the phpmyadmin URL would be listed. Press your left mouse button over it. It should lead you to a username password authentication dialogue. Enter your admin username and its password. If you have entered the username and password correctly, then you should be taken to the phpmyadmin welcome page.
Delete the three dots (…) after the underscore ( _ ) in the Create new database entry cell and replace them with your database name. say ‘site’, write it there and click on create.
WordPress package upload to sourceforge.
After setting up the database, download the latest version of WordPress from ‘http://wordpress.org/download/’
To transfer the file to the web server, we can use any of the methods described in file transfers page on the sourceforge wiki. I personally use scp method.
scp –r  <source_file>/* username,project_name@frs.sourceforge.net:/home/project_web/project_name/htdocs/
-r for uploading directory recursively
source_file : wordpress package
username: username of sourceforge account
project_name : name of your project registered on sourceforge
Configuring WordPress
Inside the wordpress folder find the wp-config-sample.php file. Edit it as described below and rename it to wp-config.php
// ** MySQL settings ** //
define(‘DB_NAME’, ‘yourdbnamehere’); // name of the database
define(‘DB_USER’, ‘usernamehere’); // MySQL username
define(‘DB_PASSWORD’, ‘yourpasswordhere’); // password
define(‘DB_HOST’, ‘mysql-d);

define (‘DB_CHARSET’, ‘utf8′);
define(‘DB_COLLATE’, ”);

As commented in the code, first replace ‘putyourdbnamehere’ with your database name which you created in phpmyadmin. (e.g.gs39056_site). Then enter the admin username and the password for the same account and leave the database host to the default value.
After completing all the above steps, enter the installation address in your web browser’s address bar http://projectname.sourceforge.net/wp-admin/install.php
That’s it!!! WordPress should now be installed.

ليست هناك تعليقات:

إرسال تعليق