Archive for the ‘Linux Dedicated Servers’ Category

Reset MySQL Password on Linux Dedicated Server

Friday, June 27th, 2008

- Stop MySQL and restart in Safe Mode

service mysqld stop
killall mysqld
mysqld_safe –skip-grant-tables&

- Reset Admin Password and Permissions

- mysql psa -e “flush privileges; grant all privileges on *.* to ‘admin’@'localhost’ identified by “password”

- Replace Password

- Stop Safe Mode and Restart MySQL

killall mysqld
service mysqld start

Internel Server Error on Dedicated Servers

Friday, June 27th, 2008

What could be the reasons for Internal Server Error on Dedicated Servers ?

- This is a message received when there is misconfiguration on the server.
- You will find the error in error log
- Apache/1.3.33 Server at yourdomain.com Port 80
- This could be due to corrupt .htaccess
- Rename .htaccess file and refresh
- Repair the file
- Upload .htaccess files in ASCII mode
- Set permissions to 644

Dedicated Server Partitions

Friday, June 27th, 2008

For two hard disks on a linux server, you will need to create partion for the server. In order to create partition on a dedicated server :

- Login as root
- Type disk /dev/sdb
- Type n to Create new partitions
- For extended or Primary, type p
- Type w and Enter tp write partitions
- Create file system :

Type mkfs -t ext3 /dev/sdb

In order to Mount File System :

- Type cd /sbin
- mkdir /mnt/disk2
- Type chmod 777 /mnt/disk2
- Type mount /dev/sdb /mnt/disk2

Dedicated Server : Horde Webmail Login Failed

Friday, June 27th, 2008

If you cannot login to Horde Webmail through http://Ip:2095 or http://domain.com/webmail

- Open File : vi /etc/php.ini
- Change file content to : session.auto_start = 0
- Save
- Restart Apache

How to Create Account in WHM ?

Friday, June 27th, 2008

In order to Create Account in WHM :

- Login to WHM
- Account Functions
- Click on Create Accoutn
- Enter Domain Name, Username, Password and Email
- Click on Create

FTP Connection on Dedicated Server

Friday, June 27th, 2008

In order to check if FTP is connecting or not on the dedicated server :

- Login to Server via SSH
- Type su -
- Run the command : ftp localhost
- You will know the connection stats
- You can also start FTP service from Linux cPanel ( WHM )

Update Max Client in Linux Dedicated Server

Friday, June 27th, 2008

In order to update Max Client Setting on Dedicated server :

- Login to Server
- Type su -
- Open /etc/httpd/conf/httpd.conf in edit mode
- Change the MaxClients 10 to more number

How to reboot Linux or Windows Dedicated Server ?

Friday, June 27th, 2008

Following are ways to reboot linux or windows dedicated server :

Linux Dedicated Server :

- Login to the Server through SSH
- In Command, type su -
- Type reboot

Windows Dedicated Server :

- Login through RDP
- From Start Menu, select Shut Down
- Click on OK

How to increase User File Upload limit for Linux Dedicated Server ?

Friday, June 27th, 2008

- Login to Server through SSH
- Type su -
- Type php -i | grep php.ini
- You will fine two variables in php.ini file :

post_max_size - Data that PHP will accept

upload_max_filesize - Individual File size

upload_max_filesize = 2M

Increase the filesize limits to increase file uploads.

Once done, you will need to restart httpd

How to run off PHP “safemode” on Linux Dedicated Server ?

Friday, June 27th, 2008

- Through SSH, Connect to Server
- Type su -
- Type vi /etc/php.ini which is the php configuration file
- Check for the line safe_mode = on and select “i
- Change the line to safe_mode = off
- Save the file and exit