linux

Linux adduser complete guide

Posted by: 
Dominique De Cooman

Running cron from cli in drupal will result in.

PHP Warning:  include_once(): Failed opening './includes/bootstrap.inc'

Running cron from cli is useful when your behind external authentication and crontab is not available over http. Because normaly you would put something like:

0 * * * * wget --spider <a href="http://yoursite/cron.php
">http://yoursite/cron.php [/geshifilter-codes]

Install phpmyadmin on a Centos using the remi and epel repository

phpMyAdmin is a tool written in PHP created to handle the administration of MySQL over the Web.
Following link shows the installation process on a Cenos using the remi and epel repository.

http://dev.antoinesolutions.com/phpmyadmin

How to prepare ubuntu on a vps for drupal

Hosting your Drupal site on a VPS has a lot of advantages over running your site on shared hosting, but is a bit more difficult to get started. With the guide provided in this post you be able to set up an Ubuntu Server on your VPS pretty easily.

http://www.drupalcoder.com/story/650-preparing-ubuntu-server-for-hosting...

Posted by: 
Dominique De Cooman

In terminal:

First install libevent:

cd /usr/local/src/
wget <a href="http://monkey.org/~provos/libevent-1.3e.tar.gz
tar">http://monkey.org/~provos/libevent-1.3e.tar.gz
tar</a> zxpfv libevent*
cd libevent*
./configure
make install

Download and install memcached:

cd /usr/local/src/
wget <a href="http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz
tar">http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz
tar</a> zxpfv memcached*
cd memcached*
./configure
make install

Posted by: 
Dominique De Cooman

In the command line type

crontab -e

Press your insert key.
Insert a line, run every five minutes for example (more on syntax http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5)
5 * * * * /usr/bin/lynx -source <a href="http://yoursite.com/cron.php
">http://yoursite.com/cron.php [/geshifilter-codes]

And now exit: press escape and type ":exit"
By exiting you are saving and you wont be prompted.

Posted by: 
Dominique De Cooman

This post will explain how to host multiple drupal sites using only one url on linux.
We have two sites a Dutch site and a French site and we want to host it under one url.
Setup your folders in de sites folders. Create a directory for the french site and create a directory for the dutch site. Both will have their own settings file.
In the root of your drupal installation create two symlinks. The two symlinks will point back to the root of your site.

Posted by: 
Dominique De Cooman

Go to the location on your server where your file is using cd command

Subscribe to linux