Archive | Distributions RSS feed for this section

Manage Apache Modules On Ubuntu

Configuration for enable modules is stored in: /etc/apache2/mods-enabled Available but inactive modules are stored in: /etc/apache2/mods-available A module can be enabled with: a2enmod [modulename] Where [modulename] is the module to be enabled. For example: a2enmod rewrite will enable the rewrite module. A module can be disabled in a similar fashion with: a2dismod [modulename] Don’t forget [...]

Configuration for enable modules is stored in:

/etc/apache2/mods-enabled

Available but inactive modules are stored in:

/etc/apache2/mods-available

A module can be enabled with:

a2enmod [modulename]

Where [modulename] is the module to be enabled.

For example:

a2enmod rewrite

will enable the rewrite module.

A module can be disabled in a similar fashion with:

a2dismod [modulename]

Don’t forget to restart apache after making changes with:

service apache2 restart
View Comments Continue Reading →

Install WordPress on Ubuntu virtual server at Media Temple

Server is a MediaTemple “ve” server which is a Parallels Virtuozzo container with Ubuntu 10.04 LTS Lucid installed as the operating system. The first step is to install packages: apt-get update apt-get install mysql-server apt-get install apache2 apt-get install php5 apt-get install php5-mysql Now set mysql service to start automatically: update-rc.d mysql defaults service mysql [...]

Server is a MediaTemple “ve” server which is a Parallels Virtuozzo container with Ubuntu 10.04 LTS Lucid installed as the operating system.

The first step is to install packages:

apt-get update
apt-get install mysql-server
apt-get install apache2
apt-get install php5
apt-get install php5-mysql

Now set mysql service to start automatically:

update-rc.d mysql defaults
service mysql start

Next create a database for wordpress:

mysql -p -u root
create database wordpress;
grant all privileges on wordpress.* to 'wordpress'@'localhost' identified by 'YOURNEWPASS';
flush privileges;
exit;

Next we’ll download and install wordpress:

cd /root
wget http://wordpress.org/latest.tar.gz
tar -xvzf /root/latest.tar.gz
rsync -avz wordpress/ /var/www/
rm /var/www/index.html
cp /var/www/wp-config-sample.php /var/www/wp-config.php

Now set the database credentials in /var/www/wp-config.php:

replace 'database_name_here' 'wordpress' -- /var/www/wp-config.php
replace 'username_here' 'wordpress' -- /var/www/wp-config.php
replace 'password_here' 'YOURNEWPASS' -- /var/www/wp-config.php

Finally point your web browser to the site and run the WordPress installer.

View Comments Continue Reading →

Remote access via ssh with RedHat Rescue Disk

Insert Rescue Disk and boot server. At the first prompt type “linux rescue” and hit enter. Follow boot disk prompts to start networking. Enter the system’s ip address, netmask, gateway and name server. Continue with prompts until the root partition is mounted and you get a command prompt. Verify network configuration with ifconfig and route. [...]

  1. Insert Rescue Disk and boot server.
  2. At the first prompt type “linux rescue” and hit enter.
  3. Follow boot disk prompts to start networking. Enter the system’s ip address, netmask, gateway and name server.
  4. Continue with prompts until the root partition is mounted and you get a command prompt.
  5. Verify network configuration with ifconfig and route.
  6. Use the following commands to start sshd:
    cd /mnt/sysimage
    chroot /mnt/sysimage
    mount /dev/pts
    /sbin/service sshd start
    

You should now be able to SSH into the server.

View Comments Continue Reading →

Mount Windows drive share on RHEL5

RHEL5 replaced the old smbmount command with mount.cifs so to mount a shared Windows drive do something like: mount -t cifs //servername/sharename /mnt/mountpoint \ -o username=myusername,password=mypassword Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post Print for later Bookmark [...]

RHEL5 replaced the old smbmount command with mount.cifs so to mount a shared Windows drive do something like:

mount -t cifs //servername/sharename /mnt/mountpoint \
 -o username=myusername,password=mypassword
View Comments Continue Reading →

Reinstall grub in MBR

Two approaches to this. The first is to use the grub-install utility: grub-install –root-directory=/boot /dev/??? The second approach is to use the grub command line: 1. Start the grub command line: grub 2. Determine the boot device: find /boot/grub/stage1 You’ll get something like “(hd0,0)”. 3. Tell grub where the root is: root (hd0,0) 4. Install [...]

Two approaches to this. The first is to use the grub-install utility:

grub-install --root-directory=/boot /dev/???

The second approach is to use the grub command line:

1. Start the grub command line:

grub

2. Determine the boot device:

find /boot/grub/stage1

You’ll get something like “(hd0,0)”.

3. Tell grub where the root is:

root (hd0,0)

4. Install the MBR:

setup (hd0,0)
View Comments Continue Reading →