Edit History Actions Discussion

Diff for "Info/Webhosting"

Differences between revisions 13 and 14
Revision 13 as of 2010-08-13 18:51:05
Size: 2401
Editor: independence
Comment:
Revision 14 as of 2011-01-16 18:06:35
Size: 2028
Editor: independence
Comment:
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
CGI and PHP is only available on [[Info/Supporter]] accounts. [[CGI]] and [[PHP]] is only available on [[Info/Supporter accounts]].
Line 15: Line 15:
You can use PHP and CGI scripts to create a dynamic webpage. CGI and PHP scripts are executed with mod_fcgi and suexec, which will make all scripts execute with your user id instead of the Apache user. To enable this feature contact Independence.

Also, suhosin is enabled to further increase security. For security reasons, all your `.php` files must ''not'' be writable by "group" or "others". (''Group'' or ''Others'' doesn't even need read permissions, so `chmod 600` is fine for `.php` files. Static content will need read permission by ''Others'' however, `chmod 644` for example.)
You can use [[PHP]] and [[CGI]] scripts to create dynamic webpages. CGI and PHP scripts are executed with mod_fcgi and suexec, which will make all scripts execute with your user id instead of the Apache user.

Webhosting

You can host your own personal webpage at Blinkenshell. To do this, put any files you want to be accessible via HTTP in the directory public_html in your home directory. The URL to your webpage will be http://username.blinkenshell.org/

If you have a file named index.html in your public_html directory that file will be used as the index page when someone browses to your site without requesting a specific file (i.e. http://username.blinkenshell.org/). If you do not have an index file a directory listing of all the files in your public_html will be shown instead.

You can use Apache .htaccess-files to customize the behaviour of your webpage. Apache documentation on htaccess.

Logs from apache are written to ~/logs/access.log (normal traffic) and ~/logs/error.log (errors). These files are not writeable by your user and you can not delete or truncate them. This is because the logs are used for measuring traffic to your website.

CGI

CGI and PHP is only available on Info/Supporter accounts.

You can use PHP and CGI scripts to create dynamic webpages. CGI and PHP scripts are executed with mod_fcgi and suexec, which will make all scripts execute with your user id instead of the Apache user.

PHP, Python, Perl and Ruby are installed. You can install your own frameworks such as Django or Ruby on Rails if you like, but they are not installed system-wide.

MySQL

For information on how to use MySQL, see: Info/MySQL.


CategoryInfo