Installing Joomla on a Lamp Server

Brendan W. Vittum asked:


So you want a web site. You want it to be easy to use. You want to be able to update, edit, and manage content on the fly. You’d prefer not to pay an arm and a leg, but you also want to have a number of features in the system like commenting, maybe even a forum.

Your list could go on indefinitely, but let me stop you right here. There is an Open Source Content Management System [CMS] known as Joomla! which can help you. Actually there are any number of systems, free or otherwise, you could use.

I may cover some of those other options later. For now let’s simply assume you’d like a system which could be running in a matter of minutes, has a massive base of add-ons, and a thriving community behind its development and security, the Joomla! Is one of the most thought-free systems around.

We will assume for the sake of this article that you have SSH access to your server, and that you have both a mySQL database and a phpMyAdmin interface. (if you don’t, I’ll be writing walkthroughs shortly.)

Our first step is to create a folder on our web server to hold the install, and eventfully serve our pages. We do this like so:



Log in to the server via SSH.

Switch to the the top level where you’d like the  install to go.

cd /var/www/





Now we need to make the folders for  the site. First the main, then the three sub-folders required for our web server to funtion properly.

mkdir demo.testlive.us

mkdir demo.testlive.us/cgi-bin

mkdir demo.testlive.us/html

mkdir demo.testlive.us/logs





Now that the folders are created lets add the site to our Domain Name Server.

Open the file containing the configuration for the testlive.us site.

nano /var/cache/bind/testlive.us.zone

Add the proper line to the file; in our case it will be:

demo                    IN      CNAME   mail

Restart the name server.

Finally, ping the new sub-domain to ensure everything works as it should; if you use an external name server such as GoDaddy, you’ll need to put the name there as well if the outside world is to view the server.





With our folders created, and the internal Name Server resolving we need to create the configuration for Apache to serve the site. Because there are many ways to do this I’ll let you find the best means. For myself it woud like so:

nano /etc/apache2/sites-available/demo.testlive.us

 







# virtual host for demo.testlive.us



        DocumentRoot /var/www/demo.testlive.us/html/

        ScriptAlias /cgi-bin/ “/var/www/demo.testlive.us/cgi-bin/”

ServerAdmin webmaster@wwc-llc.com

ServerName demo.testlive.us

        CustomLog /var/www/demo.testlive.us/logs/access.log combined

        ErrorLog /var/www/demo.testlive.us/logs/error.log





Now we need to link it in the enabled sites folder:

ln -s /etc/apache2/sites-available/demo.testlive.us.conf demo.testlive.us

Let’s restart the server and see if things are good…



Assuming everything went well, let’s get the latestst stable version of Joomla! And download it to the html folder we just tested;

http://www.joomla.org/download.html

Now we extract the files. As with apache there are many ways to do this and I’ll let you choose the one best for you.

Once extracted we need to set the permissions on the folders.

First we give the web server ownership of the HTML folder and everything in it:

cd /var/www/demo.testlive.us/

chown www-data:www-data -R html

Change to the html folder:

cd html

Now  set the permission on the files and folders:

find . -type f -exec chmod 644 {} ;





find . -type d -exec chmod 755 {} ;



Almost done! Lets make the database the site will use.

Log in to your phpMyAdmin

Create a blank database

Create a user and a secure password

Give your new user all privileges on the database you just created; only that user, and only that database. This will help to isolate access controlling security. Especially if you run multiple e databases on the server.





Now, our name server, web server, and database server are good to go. Let’s install the thing. In your browser open the URL for the site you configured in “d”.

Choose your site’s primary language and click Next.

Assuming the Pre-installation Check passes click Next.

If it does not you’ll need to address the pieces marked with a red no.





Review the license.

On the database configuration tab fill in the data you created “h”.

There is no need to deal with the advanced configurations here, or the ftp data you see on the next screen because we are using SSH.

Fill in the site name, your email address, and the password you want to use for the site.

You can have the system put in sample data if you want, but I prefer to keep the DB clean and not do this. Your call.







In your SSH shell use this command:

rm -R installation/





Final step is to chmod 444 configuration.php



You now have a functioning Joomla! Site you can use for all sorts of things. Next time I’ll tell you how to put data in it.



Sign Language For Babies And Beyond

Keep in Mind while Changing Web Host – India

Gaurav asked:


Keep in Mind while Changing Web Host – India

Web Hosting India



What is Web Hosting? Web hosting India is a type of service that lets user to put the website on the internet. The part of web hosting comes after the user has decided the domain name and has registered it too. User has three options possible for choosing a web hosting service that a web host can offer. They are virtual private server hosting, shared web hosting and dedicated server hosting. In case a user wants to switch web host then the user should keep following consideration in mind.

User should start looking for new web host at least few days before user run out of credit for present account. This will help in keeping your website on the air for the maximum time. Before switching to the new web host, first make a backup copy of the website in the same tree structure in which you want to upload it later, Also look for any permissions that you might have set on any folder or file. This is so as these permissions need to be reset when files are uploaded to the new web server. Copy of the database/databases has to be made too.

Another consideration that user has to make is that user should be aware of the hosting requirements like beginner are concern with the amount that they have to pay to the disk space they are provided.If the user is a professional, entrepreneur or online business then the user can make following requirements, which are:-

Choosing the type of web hosting user has mainly two options, Shared server or dedicated server. If a user expects to get huge traffic then the user must go for dedicated server as it has much greater bandwidth then the shared one. This is also required if you need to have complex app, secure information and customized option in your website.

Type of OS for hosting If your website is build on technologies like JSP, ASP etc and require other Microsoft add like MSACCESS or MS SQL database the one should go for windows hosting. On the other hand if the user is using technologies like Cold Fusion then it can run on Linux as well as Windows platform.

Bandwidth and Space Requirements Many web hosts are providing 1GB – 3GB of disk space but if your site require more space and/or receives lot of traffic then one should consider other web host as this will then just not be enough.

Requirement for number of sub domains and parked domains Parked domain are advantageous for high traffic websites as they can handle them better whereas dub domain helps in improving reputation of your website on the search engine. Most of the web host charge extra money for them.

Active more than 99.99%: Many web hosts are now guaranteeing up time of up to 99.99%, but then they are costlier and should be chosen if you require so like in commercial websites.

Keep in Mind while Changing Web Host

The Baby Sleep Solution Audio Program