What is the difference between Domain disk space and Hard disk quota?
Domain disk space - a calculation of everything the domain uses disk space for i.e. web, mail, databases, etc.
Hard disk quota - a calculation of disk space used by a domains ftp user account i.e. web files.
Domain disk space
This is how much disk space is used by the entire domain. It is made up of Plesk statistics and includes the amount of disk space taken by web pages, mail accounts, databases and other domain data including options specified in the statistic settings on Server -> Server preferences page in the Plesk CP.
Hard disk quota
Is a file system feature that limits how much disk space can be taken by the files which are owned by a specific system account (either domain FTP user or webuser or subdomain FTP user).
This file system quota cannot be exceeded. If the limit is reached, the system user will not be able to create new files and will receive the error “no more space left on device”.
Reference : http://parallels.com
1. Create a file with the following content:
<?php
phpinfo();
?>
and then save it into the $HTTPD_VHOSTS_D/domain.tld/httpdocs folder as 1.php (the name may be different, only .php should be existed)
2. Open the file via browser:
http://your-domain.com/1.php
Note! The PHP support should be enabled for the domain.
On the page the standard PHP diagnostic table should be existed.
Whenever possible place any executable scripts inside the cgi-bin directory.
When uploading scripts via FTP make sure to always use ASCII mode. If you are doing a server to server FTP transfer use BINARY mode.
The first line in all PERL scripts must contain the path to PERL which is: #!/usr/bin/perl
Directories and scripts should both executable. Usually the permission level 755 is the best. All files and directories where CGI will be executed must NOT be world or group writeable and must be at least user executable.
Data files that scripts will read/write must NOT be group or world writeable.
Make sure that you DO NOT modify the permissions of the cgi-bin itself. This will cause all scripts to fail. If the permissions have be altered, chmod the cgi-bin back to 755.
Check the code. Frequently there may be a line not closed with “;” or a routine that is not closed.
Make sure that all modules and ‘include files’ required by the scripts are located on the server and are in the proper locations.
Check that your CGI/Perl script is outputting the necessary HTTP headers. To do that in Perl, just below the “shebang” line (#!/usr/bin/perl), type the following line.
#!/usr/bin/perl
print "Content-type: text/html\n\n"
Add a “-w” to the first line of your script. (Example: # !/usr/bin/perl
Most FTP programs allow you to change the permissions of files on the server. You may also use the command shell (SSH) and use the command directly. Example: chmod 755 myscript.cgi
Running CGI scripts in the httpdocs directory without mod_perl in Plesk
To accomplish this on a per domain basis you will need to create a vhost.conf in the conf directory at /var/www/vhosts/serverbuddies.com/ with the following code.
<Directory /var/www/vhosts/mt-example.com/httpdocs>
<Files ~ (\.cgi$)>
SetHandler cgi-script
Options ExecCGI
allow from all
</Files>
</Directory>
Then run the following command to enable the change.
/usr/local/psa/admin/sbin/websrvmng -v -a
Now, all files with ‘.cgi’ extension will be executed as usual CGI scripts in /cgi-bin/.
To enable CGI in httpdocs for the whole server just uncomment the “AddHandler cgi-script .cgi” directive in httpd.conf and restart Apache.
Reference: http://parallels.com/
How do I enable cgi-scripts to run from both httpdocs and httpsdocs directories in Plesk?
By default Plesk runs CGI scripts in /cgi-bin/ folder only. To allow CGI scripts be processed from any folder, you should uncomment the cgi-script AddHandler directive in the main apache configuration file /etc/httpd/conf/httpd.conf
AddHandler cgi-script .cgi
Then restart Apache with the following command:
/etc/rc.d/init.d/httpd restart
Such customizations can also be done on a per domain basis in vhost.conf.