Posted by admin on October 13, 2009 under Help |
If undefined Galler2 will display the first image size available, but in some cases you may want a different size displayed by default. Here is what you do:
Edit this line:
/gallery2/modules/core/classes/GalleryTheme.class
Change this value:
$imageViewsIndex = 0;
For the first value use 0, for the second value use 1, etc…
Posted by admin on October 7, 2009 under Help, Tutorials |
I followed the tutorial on the ispCP site but it didn’t get me going, so in researching it myself I came up with an easier set of instructions using info from a few articles listed at the end of this article. This works for Debian Etch with ispCP Omega so most of the prerequisites referred to in the articles are already installed.
Install OpenSSL and make self-signed certificate:
apt-get install openssl ssl-cert
make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/ssl/certs/apache.pem
chmod 600 /etc/ssl/certs/apache.pem
Create new SSL ispCP admin site by copying existing one:
cp /etc/apache2/sites-available/00_master.conf /etc/apache2/sites-available/00_master_ssl.conf
Edit new configuration file to use port 443:
vi /etc/apache2/sites-available/00_master_ssl.conf
Change this line:
VirtualHost 38.110.198.150:80
To this:
VirtualHost 38.110.198.150:443
Add following lines to enable SSL for new admin site:
SSLEngine On
SSLCertificateFile /etc/ssl/certs/apache.pem
Enable new site in apache:
a2ensite 00_master_ssl.conf
Enable SSL and make apache listen on port 443:
vi /etc/apache2/ports.conf
Add this line:
Listen 443
Enable apache SSL module:
a2enmod ssl
Update the apache default site template:
vi /etc/apache2/sites-available/default
Change this line:
NameVirtualHost *
To this:
NameVirtualHost *:80
NameVirtualHost *:443
Reload apache:
/etc/init.d/apache2 reload
Taken from:
http://www.isp-control.net/documentation/doku.php?id=howto:security:ssl_made_easy
http://www.debianadmin.com/install-and-configure-apache2-with-php5-and-ssl-support-in-debian-etch.html
http://yekmer.blogspot.com/2008/07/how-to-install-ssl-support-to-apache.html
Posted by admin on October 4, 2009 under Help |
Every time you start apache2 this message is dispalyed:
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
To fix it, we need to edit /etc/hostname to give the host a FQDN (make sure it’s resolvable):
echo localhost.localdomain > /etc/hostname
cp /etc/hostname /etc/mailname
Now, reboot the server and should no longer see the previous message.
reboot
Posted by admin on under Help |
Steps to configure Linux as DNS client, first login as a root user.
Step # 1: Open /etc/resolv.conf file:
vi /etc/resolv.conf
Step #2: Add your ISP nameserver as follows:
search isp.com
nameserver 202.54.1.110
nameserver 202.54.1.112
nameserver 202.54.1.115
Note Max. three nameserver can be used/defined at a time.
Step # 3:Test setup nslookup or dig command:
dig www.nixcraft.com
nslookup www.nixcraft.com
Taken from: http://www.cyberciti.biz/tips/linux-how-to-setup-as-dns-client.html
Posted by admin on under Help |
If you want to bind multiple IP’s to a NIC in debian you can use the example below.
Edit NIC config file:
vi /etc/network/interfaces
Find the NIC you want to use and note the name, usually ‘eth0′ on a single NIC system:
iface eth0 inet static
address 123.123.123.101
netmask 255.255.255.0
gateway 123.123.123.1
Add a new line below it with ‘:1′ appeneded to the NIC name and the new IP:
iface eth0:1 inet static
address 123.123.123.102
netmask 255.255.255.0
Continue the process for addtional IP’s:
iface eth0:2 inet static
address 123.123.123.103
netmask 255.255.255.0
Posted by admin on October 1, 2009 under Help |
This may be useful for other Linux novices out there. It display info about the installed version of Linux
uname -a && cat /etc/*release
It should give you something like the output below, amd64=64bit, i686=32bit:
Linux ubuntu 2.6.26-2-xen-amd64 #1 SMP Fri Mar 27 07:12:15 UTC 2009 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"
Posted by admin on under Help |
In XenServer 5.0 and 5.5 there is an issue where VMs based on the Debian 4.0 pre-built template loose their NICs when exported from one XenServer host to another when the MAC address changes. Here are the commands to run on the VM to fix this issue.
Edit this file:
vi /etc/udev/rules.d/z25_persistent-net.rules
Delete any lines that look like the one below by hitting dd when the cursor is on that line:
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:00:00:00:00:00", NAME="eth0
Write changes and quit vi then reboot vm:
:wq!
reboot
More information is avaliale here: http://forums.citrix.com/thread.jspa?threadID=151672&tstart=0&messageID=1007738
Posted by admin on under Help |
Quite a few apps including most blog apps use mod_rewrite to convert complex database driven URLs into simpler natural language links. The command below installs mod_rewrite.
a2enmod rewrite
/etc/init.d/apache2 restart
Posted by admin on under Help |
Just a quite note with commands for installing cURL on Debian 4
apt-get install php5-curl
/etc/init.d/apache restart
Posted by admin on under Help, Tutorials |
VHCS is one of the nicest free web hosting control panels for Linux that I have come across. The UI is clean and intuitive and is superior to many of the commercial hosting control panels. With the script below VHCS is very easy to install, even with little Linux experience. The script is quite comprehensive, it installs all prerequisite dependencies and removes all unneeded packages.
Installation (root access required):
wget http://mirrors.penguinfriends.org/VHCS2/vhcs.sh
chmod 755 vhcs.sh
./vhcs.sh
More info about this script can me found here: http://mirrors.penguinfriends.org/VHCS2/
More info about VHCS can be found here: http://www.vhcs.net/vhcs/en/about/index.php