Archive for hosting
backup and restore a plesk domain from the command line
Backup and restore a Plesk domain from the command line BACKUP Set a domain name as a variable in your shell (not really required, just makes the rest harder to screw up if you copy and paste from this howto): DOMAIN_NAME=example.com Go to the directory where plesk keeps the dumps cd /var/lib/psa/dumps/$DOMAIN_NAME Create a file with [...]
Read morepermanent redirect to improve seo
Permanent Redirect with .htaccess Search engines may think www.bizante.com and bizante.com are two different sites. You should set up a permanent redirect (technically called a “301 redirect”) between these sites. Once you do that, you will get full search engine credit for your work on these sites. How to implement the 301 Redirect 1. To [...]
Read morestandard ASCII set HTML Entity names special characters
Standard ASCII set, HTML Entity names, ISO 10646, ISO 8879, ISO 8859-1 Latin alphabet No. 1 Browser support: All browsers ASCII HTML HTML Dec Hex Symbol Number Name Description 3233343536373839 4041424344454647 2021222324252627 28292A2B2C2D2E2F !"#$%&' ()*+,-./  !"# $%&' ()*+ ,-./ " & spaceexclamation pointdouble quotesnumber sign dollar signpercent signampersandsingle quote opening parenthesisclosing parenthesisasteriskplus sign [...]
Read morespeeding up website loading time
Compressing PHP files If your Apache server does not have mod_gzip or mod_deflate enabled), you can use PHP to compress pages on the fly. This is still preferable to sending uncompressed files to the browser, so don’t worry about the additional work the server has to do to compress the files at each request. Add [...]
Read moreplesk Customizable httpd.include per domain
In Plesk each domain has virtual hosts configuration stored in a separate file: /home/httpd/vhosts//conf/httpd.include This file is overwritten each time the virtual host configuration is changed, thus any manual alterations made to the file are discarded. To use custom directives or redefine those inserted by Plesk, you need to create the files vhost.conf and/or vhost_ssl.conf [...]
Read moreenable/disable directory listing
To have the web server produce a list of files for such directories, use the below line in your .htaccess. Options +Indexes To have an error (403) returned instead, use this line. Options -Indexes 2. Listing Style Either a basic list of files can be shown, or a ‘fancy’ list including icons, file size, modification [...]
Read moreguide to htaccess and mod_rewrite
Often described as “voodoo” by frustrated webmasters the use of mod_rewrite and htaccess files is one of the more advanced tasks a web developer has to face. The good news is that unless you are looking for really advanced solutions you don’t have to fully understand how they work to use them on your website. [...]
Read moreAdding Zend Frame Work to Plesk vhost.conf
Replace bizante.com with the domain you are configuring. This article requires knowledge of linux text editor from terminal command line. I used this procedure to get started with the Google Data PHP Client Library which is included as part of the ZEND FRAMEWORK From a terminal with SU / root type the following: cd /usr/local/src [...]
Read moreHow do I redirect my site using a .htaccess file?
# This allows you to redirect your entire website to any other domain Redirect 301 / http://bizante.com/
Read morehow to import a MySQL database
Using PhpMyAdmin 1 Install phpMyAdmin software on your computer if it is not already installed. You can find phpMyAdmin software online at the phpMyAdmin homepage (see Resources below). 2 Log onto the phpMyAdmin page from your Web space. You will need the username and password assigned to you by your Web-hosting provider. 3 Select the [...]
Read more