Wednesday, August 12, 2009

how to setup and install drupal on fedora

Drupal 6.13


Today we are going to install drupal on feodra and it would be same way for other linux distributions


First of you need to get drupal installation that we can get using the following command


[ismail@localhost ~]$ wget http://ftp.drupal.org/files/projects/drupal-6.13.tar.gz

Now we need to be super user (Root user) to perform rest of task



[ismail@localhost ~]$ su
Password:
[root@localhost ismail]#

Now we need to move downloaded files to our web directory in fedora that directory is /var/www/html/ to move file to web directory use the following command


[root@localhost ismail]# mv drupal-6.13.tar.gz /var/www/html

Now files are moved now we get to go to web directory


[root@localhost ismail]# cd /var/www/html/

Now extract the files from tar file and rename the folder drupal-6.13 to site or any you want


[root@localhost html]# tar -xf drupal-6.13.tar.gz

[root@localhost html]# mv drupal-6.13 sites

Now we need to move to our project directory which in this case is sites and now the is a folder in that called sites which contain configuration files


[root@localhost html]# cd sites/sites

Now we to set some permission on files and folder so our setting can be written on files to do that use following commands


[root@localhost sites]# chmod a+w default/

[root@localhost sites]# cd default/

Now create setting file to do so use following command and default.settings.php is already will be present and required so we will need to copy just


[root@localhost default]# cp default.settings.php settings.php

[root@localhost default]# chmod a+w settings.php

Drupal need some database before you start installation so we create first database and i am using drupal_db as database name


 
[root@localhost default]# mysqladmin -u root -p create drupal_db
Enter password:

Now open firefox and put URL of your project folder which is sites in this case


[root@localhost default]# firefox localhost/sites &




Select Install Drupal in English





Now enter the database name in our case its drupal_db database user name its root in my case and your password for database

and click continue to start installing drupal




Now we need to remove write permissions from folders and files


[root@localhost default]# chmod a-w settings.php

[root@localhost default]# chmod a-w ../default/



Enter site name you wish , site e-mail , user name which will be used to edit your site and email for it and password for it and keep in mind while typing password , password must contain capital and small both letters and if possible also symbols also.





Now click on Your new site to see admin area and all





For further assistance do comments thanks

Hosting your site to web

This site will tell you how to host your sites to web . How to move your developing site to production site. How a site i hosted after developing .

installing joomla on fedora

How to setup Joomla on fedora


First of all we need to make sure that php and mysql is install on our system included our webserver




[ismail@localhost ~]$ which php mysql httpd
/usr/local/bin/php
/usr/bin/mysql
/usr/sbin/httpd


If php or mysql or apache server is not installed you can install with following commands


[ismail@localhost ~]$ sudo yum -y install httpd php mysql mysql-server php-mysql

Alright now php mysql and apache(httpd) server is installed now we need to download Joomla from its site


[ismail@localhost ~]$ wget http://joomlacode.org/gf/download/frsrelease/10785/42655/Joomla_1.5.14-Stable-Full_Package.zip

Now Next steps are to be performed by root user




[ismail@localhost ~]$ su
Password:
[root@localhost ismail]#


Now Create a directory of your project in my case i have choosed mysite it can be any thing


[root@localhost ismail]# mkdir /var/www/html/mysite

Now we are going to move downloaded file of joomla in our site diectroy where we will extract files from zip


[root@localhost ismail]# mv Joomla_1.5.14-Stable-Full_Package.zip /var/www/html/mysite/

[root@localhost ismail]# cd /var/www/html/mysite

[root@localhost mysite]# unzip Joomla_1.5.14-Stable-Full_Package.zip

[root@localhost mysite]# rm Joomla_1.5.14-Stable-Full_Package.zip

Now we need to create a configuration file and make it read and write able



[root@localhost mysite]# vi configuration.php

[root@localhost mysite]# chmod 666 configuration.php

[root@localhost mysite]# firefox localhost/mysite &

Now configuring joomla


open your browser and type following on url


localhost/mysite



Click next after selecting your language default is english





Click next again its telling you your stats about your configuration




Click next to accept the agreement statement



Now first select database (Mysql) than tell your host name most probably your will be also localhost Next select username of mysql server i choosed root and than entered the password of your database server of root and last box is of database name i have choosed mysite_db as my database for my project of joomla. Now click next






Now select yes if you want ftp support on i choosed it as off and click next





Now enter your site configuratins such as site Name your Email address and your password for administrator Admin password now don't bother next steps i recommend to click next afer filling site name , email , password and confirm password and now click next pop up will come click ok to continue






Alright now you have done with configuration now you jsut need to delete a folder from installation folder folder name installation in mysite folder delete that


Folder you have to delete will be in following location /var/www/html/mysite/installation

[ismail@localhost ~]$ sudo rm -r /var/www/html/mysite/installation/

After you have deleted installation folder just type this url on your browser


localhost/mysite



Now you see is your home page and now to get start working type following url on browser


localhost/mysite/administrator




Enter user name as admin and password what you choosed during installation




Here you are done with installation and configuration of Joomla and now you can create manage your joomla site


For any help do comment