The Web Hosting Guide
Infotx
Welcome to Infotx - Webmaster Guides and Resources.
Web hosting Tips and Tricks.Tips and Tricks
|
Limiting What Search Engines Can Index |
|
Limiting what search engines can index using /robots.txt |
|
Here is a good list of basic SSH commands. |
|
Common SSH Commands or Linux Shell Commands: |
|
How to use a SWF file as your homepage without embeding into an html page. |
|
1. Name your shockwave flash file as index.swf |
|
Installing Teamspeak for voice chat on a server. |
|
Installing Teamspeak for voice chat requires a Dedicated IP and SSH access. tar xjf ts2_server_rc2_20201.tar.bz2 cd tss2_rc2 ./teamspeak2-server_startscript start ./teamspeak2-server_startscript stop This will extract your Teamspeak server, start your Teamspeak server and stop it. ./teamspeak2-server_startscript start |
|
Getting Server 500 errors on your php scripts? Try reading this. |
|
When a php script requires write access to a file or directory (like Nucleus does for the 'media'-directory if you want to be able to upload pictures etc), you have to chmod that directory (or file) to 777 (or 666 for files) on most servers. This gives world write access to this folder (file). This is because on most servers apache (and php) runs as user 'nobody'. ForceTypeWhen you are using files with (or without) an extension different then the normal extension for that filetype you can use ForceType in your .htaccess file to make it clear to the server how to handle that file (or all the files in the folder) (this works on servers without phpsuexec). ??? ForceType application/x-httpd-php However, when your server uses phpsuexec this will result in an internal server error. To solve this you can simply use SetHandler instead of ForceType, so your .htaccess-file becomes: ??? SetHandler application/x-httpd-php php_valueOn a server without phpsuexec it is possible to use the php_value statement in a .htaccess-file to change settings of php (actually overwrite the settings from php.ini). On a sever with phpsuexec this will also result in a server error. To solve this you can use a php.ini file which you put in the same folder as where you would have put your .htaccess file. In that php.ini file you can change all the php values. You only have to put the values you want to modify in that file. By example if you want to set the short_open_tag to Off you would have used short_open_tag? = off in your .htaccess file. Using a php.ini file this results in: [PHP] short_open_tag = Off |
|
Optimizing Your Images |
|
You can now use the 'Image Manager' in your control panel to rapidly resize images in your directories. bitmapped (or rasterised) graphicsWhen producing new versions of a graphic from the original, always use the original to make each new version . This will retain as much of the quality as possible. And always ensure that the image mode is on rgb color . re-sizing images in a web pageNever use the width and height attributes of the < img > tag in the html of a web page to resize images. If you use this method to reduce the image size, you will increase the download time of the page as a whole. This is because the browser has to "re-draw" the image at an incorrect size which takes longer. |
|
The main domain on the hosting account uses the public_html folder for all of its Web site files. Any addon domains use subfolders inside the public_html folder. In order to also set up your main domain to use a subfolder on your hosting account you will need to set up a redirect in the .htaccess file in the public_html folder so that the server knows that any request for your main domain will be redirected to a subfolder on public_html. |
|
# .htaccess main domain to subfolder redirect |
|
How to enable the function to manually update AwStats. |
|
If you want to manually update your stats, here is what you do. |
|
How do I add a Favorites icon to my site? |
|
Step 1 - creating the image
Step 2 - creating the icon
Step 3 - including the icon in your web pages
Step 4 - testing your icon
|
|
Using Meta Tags to your advantage. |
|
meta tags
|
|
My Domain name isn't resolving to my new account yet, so I have to visit my Word Press install with a url like http://70.103.189.86/~username/wordpress/ . I don't get any images or themes to show up, just the text. I also can't log into my Administrator Panel, because logging in wants to take me to a url with my domain name in it. How can I change my settings to allow me to view my Word Press Blog before my domain name resolves? |
|
This requires a little MySQL trick. It's one simple edit in the database. |
|
How can I protect the images on my website? |
|
Here is the 'no right clicks' script. |
|
Instructions to set different character sets in HTML. |
|
|
|
How do I create a PGP certificate? |
|
First you will need to go to the File Manager and create a folder with the name of .gnupg in the root folder (the folder File Manager opens to initially). |
|
I am having problems with running CGI scripts for addon domains what should I do? |
|
Solution: Open the .htaccess file for the domain that you are having problems with and enter this in |
|
Example of how to stop people from being able to use the subdomain to get to your addon domain. |
|
Put this in the .htaccess file located at the subdomains folder |
|
How to stop a directory index from being shown |
|
Sometimes, for one reason or another, you will have no index file in your directory. This will, of course, mean that if someone types the directory name into their browser, a full listing of all the files in that directory will be shown. This could be a security risk for your site. |
|
When I try to log into my OSCommerce shopping cart, my shopping cart isn't the same. It's like I have 2 carts, one for HTTP (unsecure) and one for HTTPS (secure). |
|
This is a problem with the cookie settings. These are easy to fix with a simple change in the includes/configure.php file. |
|
How to Set different character sets with php to display correctly. |
|
There is a character encoding setting inside of your php.ini file. By default, this is set to the standard Latin encoding (ISO-8859). If you would like to encode your page with different characters, like Arabic or Hindi, you will need to change this. |
|
Installing Ventrilo for voice chat on a server. |
|
Ventrilo is a voice chat program (VOIP) that you can install on your account. Dedicated IP and SSH access required. Download the latest linux server binary from ventrilo.com mkdir ventrilo mv ventrilo_srv-2.3.1-Linux-i386.tar.gz ventrilo cd ventrilo tar xzf ventrilo_srv-2.3.1-Linux-i386.tar.gz You will want to configure your ventrilo_srv.ini with the name you would like of the server, and the passwords. |
|
How to reset your password for Advanced Guestbook when you have lost it. |
|
To retrive the guestbook password select the guest book db in PHPMyAdmin and the table book_auth. While browsing it will show you the user name. |
|
How do I create a custom redirect? |
|
Open the .htaccess for proper domain and use the following pattern: |
|
When browsing in Internet Explorer, my favicon.ico doesn't load. |
|
There are a few solutions for this problem. |
|
How do I display my home page which is using a different name? A name other than index.html. |
|
You can add a line to your .htaccess file telling the server which file name you want as the home page. |
|
I have lost my login and password to Advanced Guestbook |
|
To retrieve the guestbook password select the guest book db and the table book_auth. While browsing it will show you the user name. |
|
How do I change the way webalizer looks? |
|
There is a file in your home directory with a file called "webalizer.conf". You can make any changes to this file you like, and the next time stats are run, you will see the changes. |
|
Is there a way for me to have an add-on domain and check the stats for that site outside of the control panel? |
|
Yes there is with Webalizer, follow these steps: |
|
Setting for Pine. |
|
in the role setup set option "Use SMTP Server" to |
|
I have an application that requires Sox binaries to operate. |
|
Warning you absolutely need ssh to do this. |