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.

SSH

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 .

PHP

– 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 http://drupal.org/node/534594#comment-4557372 to see a php script, that reads vars.

Drupal

– 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 http://drupal.org/project/installation%20profiles?page=1&filters=bs_project_sandbox%3A0&solrsort=ds_project_latest_release%20desc)

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 http://drupal.org/Troubleshooting-FAQ 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

http://drupal.org/node/780910

On Windows

Drupal can be hosted in a Azure cloud: http://blogs.msdn.com/b/brian_swan/archive/2012/04/17/azure-real-world-managing-and-monitoring-drupal-sites-on-windows-azure.aspx

The End

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: