WEB HOSTING UK CPANEL WEB HOSTING
MANAGED DEDICATED SERVERS WINDOWS WEB HOSTING
WINDOWS ASP.NET MSSQL ECOMMERCE HOSTING
VIRTUAL PRIVATE SERVERS PHP MYSQL LINUX HOSTING
MS SQL MS ACCESS ASP .NET WHM CPANEL RESELLER HOST
LINUX WINDOWS WEB HOSTING ECOMMERCE SHOPPING CART
OSCOMMERCE AGORA ZEN CART BUSINESS WEB SITE HOSTING
PERSONAL WEB SITE HOSTING DOMAIN NAME REGISTRATION
             BLOG HOME | FORUMS | AFFILIATES | CONTACT US

Web Hosting Articles


To Create a new partition on Linux server we have to use following steps steps.

Login to your linix server with root user and Using #fdisk -l  command you can list the number of partitions already created on your linux server.

#fdisk -l

It will give you following details

Disk /dev/sda: 499.5 GB, 499558383616 bytes
255 heads, 63 sectors/track, 60734 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         653     5245191   83  Linux
/dev/sda2             654        3713    24579450   82  Linux swap / Solaris
/dev/sda3            3714        6324    20972857+  83  Linux
/dev/sda4            6325       60734   437048325    5  Extended
/dev/sda5            6325        8935    20972826   83  Linux

If you want to create 1000MB partition which is mounted on /new directory then proceed with following steps

#fdisk /dev/sda

type n for new partiton and specify the cylender size as as +1000M then type p to view new parttion then type w for save

then run the following command

#partprobe

Now you need to format the the newly created partition

#mke2fs -j /dev/sdaX

The X is the partition number which you have created

Now create the dirctory where you want to point the newly created partition

#mkdir -p /new

then with following command you can point the new parttion to the directory.

#mount -t ext3 /dev/sdaX /new

To keep these settings permanant you need to add the entry in fstab.

#vi /etc/fstab

/dev/sdaX /new ext3 defaults 0 0

save and quite the fstab file.

You can verify the setting by rebooting your server . Please check the new partition with command

#fdisk -l

Virtuozzo vs. Hyper-V

Hyper-V and Virtuozzo are both popular VPS platforms used by a large number of web hosting providers for the provisioning of Windows VPS hosting services, with Virtuozzo being favoured for Windows Server 2003 VPS hosting and Hyper-V being the most reliable solution for Windows Server 2008 VPS hosting services. When the two virtualization platforms are compared they don’t share that much in common, with Virtuozzo being designed more or less specifically for use in web hosting whilst Hyper-V has been designed with larger corporations in mind rather than for commercial purposes. Some users may have their own preferences when it comes to which virtualization system their VPS servers are based on; however, the virtualization platform that your web hosting providers uses is unlikely to have any kind of effect on how your Windows VPS server functions.

Virtuozzo and Hyper-V both offer reliable Windows VPS servers, regardless of the Windows operating system version that you will be running, although the fact that Hyper-V is part of the operating system and isn’t a third-party application or component means that it is likely to be more reliable in certain circumstances than Virtuozzo. The main feature that differentiates the two virtualization platforms is that Virtuozzo comes with a web based interface that offers users an alternative way to manage their VPS server, and this is known as the Parallels Power Panel; although Hyper-V doesn’t come with this sort of feature as standard, web hosting providers are able to use third-party applications such as DotNetPanel (DNP) to achieve a similar system. As Hyper-V is mainly used to power Windows Server 2008 VPS servers, Hyper-V VPS hosting services are going to be slightly more expensive than Virtuozzo Windows VPS hosting services – Virtuozzo tends to be used to power Windows Server 2003 VPS servers, although it is also used for Linux VPS hosting as well.

(more…)

Hello,

If you are getting following error  with wordpress while uploading images.

The uploaded file could not be moved to  /home/username/public_html/wordpress/wp-content/uploads

then please make sure that

safe_mode_gid=ON  (in php.ini)

and check the permission of upload directory it should be 777 , if it is something different then change it to 777 with following command

chmod 777 wp-content/uploads
and issue will get resolved.

If you wish to upgrade existing kernel on your Linux Server you have to follow the following steps

login to your Linux Server with root user

Check the current kernel available with following command

#uname -r

Now download the new available kernel from kernel.org

http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/kernel-2.4.21-47.0.1.EL.src.rpm

rpm -ihv kernel-smp-2.4.21-47.0.1.EL.i686.rpm

edit grub.conf and verify whether new kernel is available or not

For making new kernel as default kernel , make sure that it is available before previous on and default option is 0 in /boot/grub/grub.conf

then reboot the server using command

#shutdown -r now

Once you are completed with your website designing and development procedure you need to publish it on server so that your website would be accessible form any part of worldwide. If you are hosting it on windows hosting platform you have different ways using which you can publish it like … using FTP, using Plesk control File Manager and through Adobe Dreamweaver / Microsoft Frontpage software. Among these FTP is widely used by all webmasters as its easier to used as compare to other options.

Once you have completed with designing and development part and have added domain in Plesk control panel of your windows hosting account then you need to follow following procedure for publishing website.

Publishing Sites using FTP:

Once you sign up with any web hosting service provider you would get server login details using which you can connect to your hosting account.

  • You will have to connect to server using FTP details you have got in your welcome email. You can use any FTP client program and will have to pass hosting account login credentials so that you get connected to your assign web space. Make sure to enable passive mode if you are behind firewall.
  • You need to upload all web files and directories which are to be accessible through HTTP protocol under httpdocs directory.
  • If you are using any CGI scripts within your website then you will have to upload them under cgi-bin directory.
  • Once all required web files and image files are uploaded under specific directory, you need to close FTP session and need to crosscheck if your website is running fine and all files and images are displayed properly.

    Thus you are done with publishing your website using FTP.

    If you want to change few php values for your Linux VPS web hosting server then you will have to edit /etc/php.ini file on your VPS. As a VPS server Administrator you would be having root access to your server thus you have access to php.ini file of your server. You can easily change all required PHP settings/value such as post_max_size, memory_limit, asp_tags, upload_max_filesize etc…… for your server through php.ini file.

    For example : If you want to turn register_globals ON, you will need to change the line from your php.ini file. just search for register_globals = Off and change it to register_globals = On. Thus by amending your PHP.ini file you will turn ” register_globals ON ” for every domain hosted on your VPS unless a domain has a different value specified in its vhost.conf file.

    If Fantastico is installed on your Linux dedicated server but you are not getting the Icon of Fantastico under cPanel. In such case verify the following settings:

    -please make sure that the Fantastico is enabled in your WHM’s Feature Sets as well as enabled in the WHM Fantastico admin

    - Please make sure that their is a symlink to the Fantastico directory in every theme you use x or x3

    ln -s /usr/local/cpanel/3rdparty/fantastico /usr/local/cpanel/base/frontend/x3
    
    - Please verify the version of wget on your server and update it accordingly  wget-1.10.2-3.2.1 
    
    For 32-bit:
    Code:
    rpm -qa wget ;
    wget ftp://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/wget-1.10.2-3.2.1.i386.rpm
    chattr -ia /usr/bin/wget
    rpm -e wget ;
    rpm -ivh --force wget-1.10.2-3.2.1.i386.rpm ;
    rpm -qa wget ;
    
    For 64-bit:
    Code:
    rpm -qa wget ;
    wget http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everything/x86_64/os/Fedora/wget-1.10.2-15.fc7.x86_64.rpm ;
    chattr -ia /usr/bin/wget
    rpm -e wget ;
    rpm -ivh --force wget-1.10.2-15.fc7.x86_64.rpm ;
    rpm -qa wget ;
    once wget version get updated, Please install fantastico once again .

    [Fri Oct 10 00:11:01 2008] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run?
    semget: No space left on device

    This error occurred because there is no more space left in Semaphore Arrays for Apache.

    You can check semaphore arrays on your server using the following command .

    # ipcs -s

    If you see too many of them, run the script as given below

    #for i in `ipcs -s | awk ‘{print $2}’`; do ipcrm -s $i;done

    Now restart Apache services

    # service httpd startssl

    Now Fixed….

    With cpanel Linux Linux Dedicated Server we are getting following error

    error : [notice] child pid x exit signal File size limit exceeded (25.)

    This error occurs due to log file limit exceeded on server. On linux 32 Bit server apache support maximum filesize upto 2GB. If any log file exceeded this limit then you will get above error and apache services het hanged
    TO get it resolved you need to log files with following directories
    /usr/local/apache/logs and /var/log/

    To get it resolved you need to emptied your log files those are above 2GB

    How to access Awstats from outside the control panel ?

    Accessing Awstats from outside the control panel is easy.

    Step 1.

    Download awstats from awstats.sourceforge.net

    Step 2.

    Uncompress awstats-5.6.tgz

    Step 3.

    Copy the contents of the uncompressed cgi-bin folder from your hard drive to the user cgi-bin directory (this includes awstats.pl, awstats.model.conf, and the lang, lib and plugins sub-directories).

    Step 4.

    If necessary (should not be needed with most setups), edit the first (top-most) line of awstats.pl file that is

    #!/usr/bin/perl

    to reflect the path were your Perl interpreter is installed. Default value works for most of Unix OS, but it also might be #!/usr/local/bin/perl

    Step 5.

    Move AWStats icon sub-directories and its content into a directory readable by your web server, for example /home/users/public_html/icons

    Step 6.

    Copy awstats.model.conf file into a new file named awstats.myvirtualhostname.conf.

    This new file must be stored in /home/user/public_html/cgi-bin.

    Step 7.

    Edit this new config file with your own setup :

    - Change LogFile value with full path of your web server log file (The path is: LogFile=”/usr/local/apache/domlogs/domain.com”).
    - Check if LogFormat has the value “1″ (it means “NCSA apache combined/ELF/XLF log format”).
    - Change DirIcons parameter to reflect relative path of icon directory. (DirIcons=”/icons”)
    - Edit SiteDomain parameter with the main domain name or the intranet web server name used to reach the web site to analyze (Example: www.mydomain.com).

    IMPORTANT!
    - Change DirData to use the same Statics file than Cpanel Awstats and do not loose any entry.
    (DirData=”/home/user/tmp/awstats/”)

    Step 8.

    Access AwStats by the URL:
    www.domain.com/cgi-bin/awstats.pl?config=domain.com

    Done!!!

    The AwStats will refresh the Statics every 24 Hours.

    Is it possible to allow users to update Awstats from the Cpanel?

    Yes, Change the parameter “AllowToUpdateStatsFromBrowser” in /usr/local/cpanel/etc/awstats.conf set to 1,

    AWStats add a button on report page to “update” statistics from a web browser. This is not a good idea, because Update process can be long so you might experience “time out” browser errors if you don’t launch AWStats enough frequently. Also, it take around 12-24 hours to take into effect.

    There is an option in WHM>> Server Configuration >> Tweak Settings>>Stats and Logs to “Allow users to update Awstats from cPanel“.

    How to update Awstats and webalizer via shell?

    We could update the webalizer using the command /usr/local/cpanel/3rdparty/bin/english/webalizer -N 10 -D /home/username/tmp/webalizer/dns_cache.db -R 250 -p -n domain.com -o /home/username/tmp/webalizer /usr/local/apache/domlogs/domain.com

    The Awstats can be updated by using the script /scripts/runweblogs accountname

    Next Page »