Jump to content

Category:Tetra Clients/Web Hosting Of BJP In Godaddy Server

From TetraWiki


BJP WEB HOSTING ON GODADDY SERVER

Prerequisite

1. website files (Named as Hostfile in the document)

2. Mysql Database file in .sql format

Process

1. Login to Godaddy server.

2. Open that given host file and paste it to: ( Hostfile are the website files which BJP has asked us to get )

# mv hostfile  /home/public_html/hostfile 

3.Go to configuration file of Apache server i.e :

  1. vim /etc/httpd/conf/httpd.conf ( Add following Lines - when the website needs to be pointed to bjpls.tetra.in )
<VirtualHost ip:80>
DocumentRoot /home/public_html/bjpinloksabha/
ServerName bjpls.tetra.in
ErrorLog logs/bjpinloksabha-error_log
CustomLog logs/bjpinloksabha-access_log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
<Directory /home/public_html/bjpinloksabha>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Updating Mysql data

Go to sql command promt using : ( Mysql database's SQL file is been given by BJP )

1. mysql>mysql -u{username} -p{password}
2. mysql>show databases;
3. mysql>create database db_name;
4. mysql> CREATE USER 'tetra'@'localhost' IDENTIFIED BY 'some_pass';
5. mysql> GRANT ALL PRIVILEGES ON *.* TO 'tetra'@'localhost' WITH GRANT OPTION;
6. quit

Store the dump that you have :

#mysql -u{username} -p{password} db_name < /path/db.sql

GO TO FILE WHERE YOU CAN CONNECT DATABASE TO HOSTFILE

1. vim /home/public_html/admin/connect.php

2. Where you can enter the created database user name and password.

3. When Website run then some Notices and Error are shown to you For that we make entry in one file:

# vim /etc/php.ini
 

4. Uncomment this line OR write this line

error_reporting = E_ALL & ~E_NOTICE 

5. Comment this line

error_reporting = E_ALL & ~E_NOTICE | E_STRICT 
 

6. Reload the apache server

/etc/init.d/httpd reload

7. Please check the site.

This category currently contains no pages or media.