Jump to content

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

From TetraWiki
Revision as of 08:57, 4 December 2012 by Abhinav (talk | contribs)



                                   BJP WEB HOSTING ON GODADDY SERVER:



1. Login to Godaddy server.
2. Open that given host file and paste it to:
           
   # mv hostfile  /home/public_html/hostfile 
3.Go to configuration  file of Apache server i.e :
              
   #vim /etc/httpd/conf/httpd.conf
   <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>


   # Go to sql command promt using :
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.