Cheap Web Hosting – How to use your web hosting account

Re: What to do with your new web hosting account

  1. Login to your Plesk Control Panel to gain access to all the features and resources provided with your account.
  2. Set up your first email address and start using email services with your domain
  3. Start collecting web visitor statistics and monitor visitors activity around your site
  4. Launch more sites with multi domain hosting to get the most from your web presence
  5. Install and Connect FileZilla FTP to upload files to your personal web space
  6. Install a Web Application such as WordPress and get a professional site online straight away

You are now well on the way to making the most of your new hosting account. For further information and advise search the knowledgebase or contact the Helpdesk.

How do I view visitor statistics on my hosting account?

Re: How to enable visitors stats collection in Plesk hosting

Your Plesk Hosting account now comes with 2 options for viewing detailed visitor and traffic statistics concerning your website.

1) AWStats – Get advanced graphical web, ftp or mail statistics
2) Webalizer – statistics for user agents (browsers) and referrers

Visitor statistics collection is not enabled by default. You need to enable this feature as follows:

Simply login to your Plesk Control Panel, select your domain name and click “Web Hosting Settings”, scroll down and select which statistics package you wish to use for this domain.

To be able to view your statistics directly from your domain name (eg. www.yourdomain.com/plesk-stat/webstat) ensure you have a tick in the box that says “(accessible via password protected directory ‘/plesk-stat/webstat/’ )”, this will allow external direct URL access via your FTP password.

Once enabled, your visitor stats will be compiled everyday at 0400 so do not expect to see anything straight away. Simply check the next day and your visitor stats and charts will be available.

For professional high level statistics and analysis we highly recommend using Google Analytics in your website code, you can set up a free account here:

http://www.google.co.uk/analytics

			

How to setup a PHP Cron job or scheduled task in Plesk

Re: Set up a cron job in Plesk, Plesk crontab, Create a PHP cron job in Plesk

Setting up a cron task or scheduled job within Plesk is a piece of cake – once you know how.

First, find your way in to the Plesk Control Panel and hit the “Scheduled Tasks” button, then “Schedule New Task”. The example below will show a working task executing a PHP file named cronjob.php located in /httpdocs (your document root) at 01:00 every morning of every day:

The form looks pretty straight forward however there are some points to note.

  • If you want to run every hour, put an asterisk “*” in the Hour field
  • If you want to run every day, put an asterisk “*” in the Day of Month field
  • If you want to run every month, put an asterisk “*” in the Month field
  • If you want to run everyday, put an asterisk “*” in the Day of Week field

If you have problems, check your asterisks are in the right places and that you cron PHP file is in the right location. Compare the schedule task dialogue boxes carefully and you won’t have any problems.

phpMyAdmin Export Database Error /domains/databases/phpMyAdmin/export.php

Trying to export a database but getting the error “No web page was found for the web address: “https://server.domain.com:8443/domains/databases/phpMyAdmin/export.php”

Given that error message, you’d be excused for thinking that the file export.php was missing or your pypMyAdmin installation was messed up – but you’d be wrong!

This error is not intuitive, the file export.php is actually there, the problem is this.

  1. Your database is on the large side
  2. Your php memory limit is set too low

To fix, simply increase your memory_limit as follows:

# vi /etc/php.ini

Find the line that says “memory limit = (some)mb”

Change the value to something considerably bigger, usually 512mb will do the trick.

For example:

memory_limit = 128M      ; Maximum amount of memory a script may consume

You will now be able to export your mysql database without further ado.

How to disable Plesk open_basedir restriction in effect

Some applications require open_basedir to be “loosened” a little, if you are installing an application such as ClickCart Pro then the open_basedir will need to be changed so that the installation can create the required sub directories and then complete.

Let’s assume your domain name is domain.com (no such luck, I know!)

# vi /var/www/vhosts/domain.com/vhost.conf

Add the following lines:

<Directory /var/www/vhosts/domain.com/httpdocs>
php_admin_value open_basedir “/var/www/vhosts/domain.com”
php_admin_flag safe_mode off
</Directory>

Now we need to rebuild the apache configuration:

# /usr/local/psa/admin/sbin/websrvmng -u –vhost-name=domain.com

Job done, your open_basdir setting has been moved up one level (from /httpdocs to /) within your domain name sub folder.