Do you support mod_rewrite?

Yes, mod_rewrite is fully supported. mod_rewrite is a great apache module and we are happy to allow its use.

You can enter mod_rewrite rules into a standard .htaccess file. The rules will have effect over all files in that directory and in all directories “below” that directory.

Please note that due to the complex nature of mod_rewrite rules, we are not able to offer debugging assistance with your rules.

I’d like to run cgi’s from anywhere in my site – not just the cgi-bin directory.

Question :

I’d like to run cgi’s from anywhere in my site – not just the cgi-bin directory.

Answer :

Create a .htaccess file and add the lines:

AddHandler cgi-script .pl
AddHandler cgi-script .cgi

to it.

Add other AddHandler statements if you are using different file extensions.

I wrote a very basic cgi script but it doesn’t work

If you are trying to write a basic “hello world” type cgi but keep getting:

500 error response – Internal Server Error

Make sure the first line of output from your script is:

print “Content-type: text/htmlnn”;

All cgi’s (in any language) need to output a header line, followed by two newline characters (n) before any “regular” output is done from the script.

Also, check that you have made the script executable :

From the ssh command line, issue this command :

chmod u+x name_of_script here

or from inside most FTP programs:

1. click properties for the file and select “Change permissions” or “chmod”

The wording will vary from one FTP program to another.

Can I point a subdomain to a cgi script?

Question:
Can I point a sub domain at a cgi script?

Answer:

A subdomain in DNS can only point to an IP. A full URL (ie. a script) is above the level of DNS. DNS only understands
IP’s and domain names. Not full URLs.

You can use the 403 redirect option to have the webserver forward the subdomain request to the URL.

Another approach is to point the subdomain to a sub-directory in the control panel and then have that sub-directory’s index page immediately redirect to your cgi script. You could also use .htaccess to make the filename for your script be one of the index pages.

My credit card is valid but your system said it was unable to bill me

Question:

I received an email that it is due and my credit card is not working. Please contact me because it is good and I don’t want my website to go down.

Answer:

If the card is good then you can usually ignore the error.

However if you continue to receive notices from us, please call your credit card company. There are times when a credit card company will decline a valid card and you need to contact your card issuer to verify the charge.

Parsing RSS and changing file attributes

Question:

If I purchase a hosting account from you, will I be to use PHP scripts to parse RSS feeds on my website assuming that I set it correctly? And will I be able to change a file or folder’s attribute settings once I have uploaded the file or folder to my domain?

Answer:

Yes. After you sign up, go to the php-options section of the control panel and turn on the fopen function for remote URL’s. For security reasons, we have it turned off by default. After you turn it on you should be able to fetch and download RSS feeds fine.

You can also chmod files from inside php assuming you either run php as a cgi or (the default) run it as the php module and have the file in question be world writeable.

Calling php in my cronjob doesn’t work?

Question:

I have a crontab line that calls php but it doesn’t work. I use:

5 0 * * * php -f /home/my_home_directory/www/script.php

What’s wrong?

Answer:

Change your call to php from:

php -f /home/my_home_directory/www/script.php

to

/usr/local/bin/php -f /home/my_home_directory/www/script.php

and it will work. Crontab requires the full path (/usr/local/bin/php) to the php binary.

If you need the php-cli version, call :

/usr/local/bin/php-cli