Linux hosting newbie

Last updated 2013-12-08.

Hmmm – trying to get a little head and tail of what you can do, when deploying to a Linux hotel via FTP and WWW.


Windows don’t come with a SSH client for accessing the Shell / Terminal / Cmdline remotely. Here is a list of SSH clients. Tera Term and PuTTY I think I will try out.

Apache webserver

The folders that can be reached by FTP are hosted by Apache webserver.

The sites it is hosting can be configured by (differently in each folder, if needed) by a file named .htaccess (like web.config in .NET).

Example: Configure vars for PHP:

php_flag allow_url_include Off
php_flag register_globals Off

Log files

In domain settings of my hotel one can get access to two log files:
  • Error Log – Use it to read HTTP 500 errors in your site.
  • Web Log – Use it to track traffic on your site.

By default the Error Log is disabled and the other enabled.

The Error Log file for a certain site is in the FTP program found as file://logs/myweb.xx error_log . It has no file-extension.

The latest Web Log file for a certain site is in the FTP program found as file://logs/myweb.xx myweb.xx .


– is a script language like Asp executed by Apache.

To be able to print the current PHP settings create a php script called phpinfo.php:

<?php phpinfo(); ?>

Upload the file and call it: file://myweb.xx/phpinfo.php

Checkout this post to see a php script, that reads vars.


– is a PHP CMS

Before Installing

You might need to change some php settings on you site in file://myweb.xx/.htaccess

I have set the following:

#might be needed for D6.x
RewriteBase /
#Default at my host: 128M
php_value memory_limit 256M
php_flag register_globals Off
#Default at my host: 16K
#php_value realpath_cache_size 32K
php_value max_input_time 120
After upload and uncompression of package on webhotel

(package might be downloaded from

In version 6.x you need to write enable ./sites/default/settings.php by copying default.settings.php and do chmod to 777 and default folder to 755 (was 644 and 705).

Now do installation by executing http://myweb.xx/drupal-7.12/install.php

If something goes wrong visit and check the errorlog as mentioned above – heading Logfiles.

After Installing

You might get in a situation, where you can’t login. Append “/user/login” to your root-site to get a login form. E.g. http://myweb.xx/drupal-7.12/user/login

Restoring / Moving

On Windows

Drupal can be hosted in a Azure cloud:

The End


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: