rights | owner | group | |
/home/www servers domain |___cgi-bin |___html |___large |___logs /home/user |
drwsr-s--- drwxrwxr-x drwsr-s--- drwxr-xr-x lrwxrwxrwx |
user user user user user |
user user apache apache apache |
For 3dlevel domains *.rema.ru and *.gfns.net
(for example, domain=dom.rema.ru):
rights | owner | group | |
/home/www servers murk.ru 3dlevel scat.murk.ru |___cgi-bin |___html |___large |___logs /home/user |
drwsr-s--- drwxrwxr-x drwsr-s--- drwxr-xr-x lrwxrwxrwx |
user user user user user |
user user www www www |
Note, that /user/domain is softlink to /www/servers/domain/, and it's convinient to use this 'shortcut'. But some ftp clients refuse to navigate via softlinks. In this case - use full path.
Index of your site MUST be placed in folder "html". If not mentioned some another option, reference "/cgi-bin" points to "domain/cgi-bin".
Three additional references exist:
/cgi/ - to your folder /cgi-bin/
user.user MUST be owner of CGI script running on your site
First line of PERL script must be:
#!/usr/bin/perl
Scripts and directories, where they are placed MUST be NOT writable by others. Rights must be 755 or rwxr-xr-x.
After new host creating - you may find files: index.shtml in html subdirectory, and ibanner in cgi-bin subdirectory. These files demonstrate you, that CGI and SSI WORK on your host properly. If you think, that something is wrong - it means, that YOU are wrong.
If you upload your own content, but DO NOT delete or update index.shtml with your own, this default index.shtml will be shown instead of your index.htm or index.html (according to default webserver sonfiguration).
When uploading CGI scripts on server from Windows-based workstation - turn ON 'ASCII' mode. Otherwise 'carridge return' symbols cause 'Error 500'.
First line of any Perl script must be: #!/usr/bin/perl
Common scripts in two last folders are used for advertisement and promotion of your sites.
If you need to place some info to be used, but cannot be viewed via http:// by users, place files to directory /www/servers/domain/, i.e. above directories html and cgi-bin.
SSI works on *.shtml files. If you want more - use .htaccess. read documentation on Apache Webserver.
Note, that when using SSH, you have longer paths, than via FTP. ftp path / is equivalent to /home in shell, and so on.
Full path to SENDMAIL: /usr/sbin/sendmail