Installing sNews

The sNews website provides detailed instructions regarding how to set things up. I still managed to get myself muddled up but soon had things going after some assistance from a user at the sNews forum.

After realising where I went wrong I decided to practice installing sNews for myself. Using the readme.html file that comes with the sNews download I have detailed the steps I went through.

In addition to the instructions contained in the file mentioned above, these are the steps I followed to install sNews.

1.a) Creating the database using cPanel > MySQL Databases.

- create database
- create user
- add user to database and assign permissions (I gave user full permissions)

b) Copy text from sNews instructions to set up MySQL Database.

- copy text
- from cPanel go to phpMyAdmin
- select database
- click 'SQL' tab
- paste text and click 'Go'

The message "Your SQL query has been executed successfully" told me I had done it correctly.

2. Editing snews.php file. The only changes I made were to near the very top of the file. I entered my own values for DATABASE_NAME, DATABASE_USER and DATABASE_PASSWORD as follows:

// DATABASE VARIABLES
function db($variable) {
$db = array(
// Edit here for the database information only
// MySQL host
'dbhost' => 'localhost',
// Database name
'dbname' => 'DATABASE_NAME',
// Database Username
'dbuname' => 'DATABASE_USER',
// Database password
'dbpass' => 'DATABASE_PASSWORD',
// Table prefix for multiple sNews systems on one database
// if you don't need it just leave it blank
'prefix' => ''


3. Copying files to chosen directory on server. When I tried to FTP the files to my host I got an error saying the .htaccess file cannot be uploaded. The front page looked okay but when I clicked on any links I got a 404 error. This in my case was related to a missing .htaccess file.

Even though I couldn't upload the .htaccess file via FTP, I was able to do it via cPanel as follows:

- Open cPanel > File Manager
- locate directory of sNews install
- change name of htaccess.txt to .htaccess
- tested my sNews install and all was working fine

It is not particularly difficult to install sNews but reading the instructions is a necessary step. Once you have your sNews blog installed the fun can really begin.

10.03.2009. 19:11

Comments

This article hasn't been commented yet.

Write a comment

* = required field

:

:

:


4 + 3 =