Archive for category Linux Hosting

Where is my phpmyadmin ?

Q. Where is my phpmyadmin? I want to upload and create table in my MYSQL database ?

Phpmyadmin is available to manage mysql data bases for Net4’s PHP hosting with mysql db. No need to install the same software in your hosting space. Instead you can use our phpmyadmin service to manage your database free of cost.

Please click on bellow URL and enter your website domain ( without www) which will redirect to your phpmyadmin page.

http://phpmyadmin.net4india.com

Ps: Use your DB access credentials to login into the DB.

Restricting Linux hosting web folder with Username/password

Connect the server using FTP and check .htaccess and .htpasswd file present or not. If these file preset then download it and modify as per given instructions. If no .htaccess and .htpasswd file present then you can create two text files in local desktop and rename it as .htaccess and .htpasswd and upload it with bellow rules.

Sample .htaccess file
================
AuthType Basic
AuthName “Password Required”
AuthUserFile  /WEB_PATH/Directory_to_be_protected/.htpasswd
require user username

WEB_PATH is /webcorp1/www/corpusers/a/b/abc.com/ is your domain abc.com
Directory_to_be_protected is your folder name to be protected.
admin is the user name.

Creating .htpasswd file
=================

If you have any Linux server with apache installed then you can use htpasswd command to genererate file.

To create the password file, use the htpasswd utility that came with Apache. This will be located in the bin directory of wherever you installed Apache. For example, it will probably be located at /usr/local/apache/bin/htpasswd if you installed Apache from source.

To create the file, type:

htpasswd -c /usr/local/apache/passwd/passwords username

htpasswd will ask you for the password, and then ask you to type it again to confirm it:

# htpasswd -c /usr/local/apache/passwd/passwords rbowen
New password: mypassword
Re-type new password: mypassword
Adding password for user rbowen

If do not have Linux installed then use bellow link to generate..

(a) Open the link  http://www.htaccesstools.com/htpasswd-generator/ in your bowser and  generate .htpasswd  by giving required user name and password.
(b) Upload .htpasswd file to the required folder

Sample .htpasswd file
==================
username:$apr1$1hbVM…$/conxPl0ZbKqmAkuoMvhb.

After uploading these two file, then open the URL in browser, it must ask user/pass and enter the username/password that you have used to create .htpasswd file.
You can control much more your site using htaccess. for more check your bellow links.

For More info:

http://httpd.apache.org/docs/1.3/howto/htaccess.html
http://www.htaccesstools.com/

How to change password ?

generate new .htpasswd file as per above procedure and upload it.

Creating a Wordpress Blog on your Linux Hosting of Net4.

1. Download the latest Wordpress archive from wordpress.org and unzip it.
2. Extract the files and upload it under a folder in your FTP.
3. Rename wp-config-sample.php to wp-config.php and edit it. Fill in your database connection details in the following lines:
define(’DB_NAME’, ”); // The name of the database
define(’DB_USER’, ”); // Your MySQL username
define(’DB_PASSWORD’, ”); // …and password
4. Open the following link in your browser
http://www.yourdomainname.com/where_wordpress_is_extracted/wp-admin/install.php
5. Enter the Blog name and your email id and click on install wordpress.
6. This will automatically generate Username and password which will be mailed to you on your mentioned email id.
7. login with your user credential to http://www.yourdomainname.com/where_wordpress_is_extracted/wp-login.php which will take you to the administration page of wordpress.
8. http://www.yourdomainname.com/where_wordpress_is_extracted/wp-admin/ will take you to the Dashboard of wordpress from where you can start blogging.

CREATING A BLOG USING BOLGSPOT

1. To create a blog using the google apps you should have a google mail account.
2. Login with your gmail ID in google.co.in and go in settings where you can manage all the setting related to google products.
3. Then we go in Blogger settings which brings us to the dashboard of blogspot.
4. Click on create a blog.
5. After filling the entries of the blog and checking the availibility of the same click on continue.
6. Click on advance setup option → setup a custom domain.
7. Click on custom domain —> switch to advanced setting.
8. After saving the settings do remember to checkbox the redirect of naked domain to http://www.domainname.
9. IN the DNS part we need to the following settings:
Create a CNAME record for your blog’s address, which should be a subdomain of the form http://www.example.com.
To create a CNAME record for your domain with the DNS, associating your domain with ghs.google.com. The exact procedure for doing this varies depending on your domain registrar, but you can find instructions for many common registrars here. If yours isn’t listed, or if you run into other difficulties, you can contact your registrar directly and they’ll be able to help you out.
• Create ‘A’ NAME records for your naked domain (blog.com)
Creating A records for your naked domain is important as it allows Google to redirect people who use in your naked domain name (blog.com) to your blog page (www.example.com). If you do not do this, visitors who leave off the www will see an error page.
There are four separate A records you will create, and can be done from the same control panel you accessed your CNAME records. Simply point your naked domain (example.com, without the ‘www’) to each of the following IP addresses: ( please check for latest IP as these may be different than mentioned here)
216.239.32.21
216.239.34.21
216.239.36.21
216.239.38.21
10. After the DNS reflection your blog will be up and working with both www
and without http://www.domainname.com