What is the path to my home directory?

When you configure a cgi script for any server, it may ask you to set variables such as the base, relative, and CGI directory/url settings. ** In case of cPanel/WHM, DirectAdmin and Interworx based servers the home directory will be /home/USERNAME/ Your webpath will be /home/USERNAME/public_html/ which will serve: http://www.your_domain.com/ So if you need the path to your cgi-bin it would be: /home/USERNAME/public_html/cgi-bin/ which would serve: http://www.your_domain.com/cgi-bin/ ** In case of Plesk based servers the home directory will be /var/www/vhosts/DOMAIN.TLD/ Your webpath will be /var/www/vhosts/DOMAIN.TLD/httpdocs/ which will serve: http://www.your_domain.com/ So if you need the path to your cgi-bin it would be: /var/www/vhosts/DOMAIN.TLD/cgi-bin/ which would serve:...

What is SSI (Server side includes) and how can I use it?

Server Side Includes (SSI) is a feature of CGI that enables you to dynamically insert a piece of information onto any “.shtml” web page. The browser displays the inserted code as if it was hard coded onto that page. For example, if you are interested in displaying the current date and time on your Web page, add one simple SSI code onto the page: Every account supports Server Side Includes but in order for SSI to work, your file must be named with the “.shtml” extension. Some things you can do with SSI: – Display the current date and time in many different formats – Display the last modified date of a file – Insert/Include a document inside another; and – Execute a CGI script or a command directly from the page. – Include a document inside...

How do I change File Permissions?

If you’re new to scripting, or getting the dreaded “Internal Server Error” when you try to run a sample script you’ve downloaded, its probably incorrect file permissions. The linux allows you to set different levels of access to a file for different groups of people. This allows you to let the web server modify a file via a CGI script, for instance, while preventing other users from having normal access to the file. There are three groups in terms of file access, and three different permission types they can receive. The groups are: * User/Owner – the “user” group consists only of the owner of the file (your account, in most cases) * Group – the “group” group consists of the other users on the server — you can usually remove their permissions entirely if you think it necessary * Other/World – the “other” group consists of everyone else — most imporantly, the web server falls into the “other” category The potential permissions are: * Read – the read permission allows a user or program the ability to read the data in a file * Write – the write permission allows a user or program the ability to write new data into a file, and to remove data from it * Execute – the execute permission allows a user or program the ability to execute a file, if it is a program or script. Some things to keep in mind about your files : * pages should be readable/writable by the owner and readable by the web visitor. * scripts should be readable/writable/executable by the owner and readable/executable by...

What are some basic software paths?

Sendmail: /usr/lib/sendmail Perl5: /usr/bin/perl Serverpath: /home/username/public_html Root path: /home/username/ (puts you in your the root of your account) Cgi-bin path: /home/username/public_html/cgi-bin/ (puts you in your cgi-bin) php4 cli: /usr/local/bin/php php5 cli: /usr/local/bin/php5 ImageMagick: /usr/bin/convert or...