Archive for the ‘Linux’ Category

Server Monkey is looking for tutorial writers to join our staff. Interested applicants can send a quick introduction of themselves to apply@server-monkey.com


Have you ever wanted to VNC into your server and be able to access a GUI remotely? Well here’s a simple to follow tutorial that I have personally used several times!

Courtesy of WebHostingTalk.com;
http://www.webhostingtalk.com/showthread.php?t=589702


.htaccess Generator

posted by Mark Muyskens

Simple script I made the other day that will generate the exact code you need to password protect a directory. Path is set for a plesk user’s httpdocs folder but can be modified as needed.

http://server-monkey.com/htaccessgenerator



This is caused by having root login to accounts disabled.

1) Log into WHM

2) Go into Tweak Settings

3) Uncheck “Disable login with root or reseller password into the users”

4) Save



./ch_admin_passwd is Plesk’s utility to set the admin password.

Gets password from the environment variable PSA_PASSWORD
Password should be from 5 to 16 symbols and should not contain login name, whitespace, quotes or national characters”

[root@ServerMonkey bin]# export PSA_PASSWORD=’newpass’

[root@ServerMonkey bin]# echo $PSA_PASSWORD

newpass

[root@ServerMonkey bin]# ./ch_admin_passwd

[root@ServerMonkey bin]# export PSA_PASSWORD=

[root@ServerMonkey bin]# cat /etc/psa/.psa.shadow

newpass

[root@ServerMonkey bin]#


Enabling quotas in cPanel

posted by Mark Muyskens

Have you ever had the issue where all your cPanel accounts are showing as unlimited? Well lucky you, thats an easy fix. Just turn on quotas.

1) Log into server via ssh

2) Edit /etc/fstab

pico /etc/fstab

3) Look for a line that looks like the below;

LABEL=/1 / ext3 defaults 1 1

4) Once you find that line, after the word defaults add a comma and usrquota;

LABEL=/1 / ext3 defaults,usrquota 1 1

5) Save and exit

6) Remount;

mount -o remount /

7) Now run the cPanel script to fix quotas;

/scripts/fixquotas


Pure-FTPd and Passive FTP

posted by Mark Muyskens

Need to enable Passive FTP?

1) Log into server via ssh

2) Open conf file

pico /etc/pure-ftpd.conf

3) Uncomment “PassivePortRange” and change to;

PassivePortRange 61001 65535

4) Save and restart;

service pure-ftpd restart