Add an IP to CentOS 5
I need more than one ssl website on a new CentOS 5 machine. Here is how to add another ip address to eth0.
I need more than one ssl website on a new CentOS 5 machine. Here is how to add another ip address to eth0.
vi /etc/vsftpd/vsftpd.conf
add:
chroot_local_user=NO
uncomment:
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
vi /etc/vsftpd/chroot_list
add:
[restricted username]
service vsftpd restart
done!
Copied here so i wont lose it…
http://thewebmasterscafe.net/webhosting/vmware-tools-on-linux.html
Prior to installing the VMware Tools, there are a few things you want to do. The first step would be to install the kernel header files and a C compiler:
# yum install gcc gcc-c++ kernel-devel
The second thing would be to create a symbolic link pointing to your kernel header files:
# ln -s /usr/src/kernels/[your kernel version] /usr/src/linux
Now you’re ready to install the VMware Tools. From the VMware Server Console (with your virtual machine running), click on “VM => Install VMware Tools”……?. Nothing is supposed to be happening at this point, it’s just like you inserted a virtual CD. From the command line, mount the cdrom drive, copy the installation files to a directory on your virtual hard drive and untar them:
# mount /dev/cdrom /mnt/cdrom
# cd /mnt/cdrom
# cp VMwareTools-[version].tar.gz /tmp
# cd /tmp
# umount /mnt/cdrom
# tar zxf VMwareTools-[version].tar.gzExecute the VMware Tools installation script:
# cd /tmp/vmware-tools-distrib
# ./vmware-install.plGo through the installation and answer all the questions. I’ve left every settings to its default value.
When you’re done, simply reboot your virtual machine. I’ve had a little problem with X as it wouldn’t start upon reboot. I just used the X configuration wizard (which launched automatically) to make some adjustments, rebooted the VM again and everything worked fine.
cd /etc/pki/tls/certs
make vsftpd.pem
cat /etc/pki/tls/certs/vsftpd.pem
openssl x509 -in /etc/pki/tls/certs/vsftpd.pem -noout -text
chmod 600 /etc/pki/tls/certs/vsftpd.pem
vi /etc/vsftpd/vsftpd.conf
[add to file]
# custom ssl config
listen_port=990
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem
[/add to file]
/etc/init.d/vsftpd restart
done!
More info: http://www.brennan.id.au/14-FTP_Server.html#secure
Here is a great post on installing VMware Server on CentOS 5:
http://fosswire.com/2007/04/21/installing-vmware-server-on-centos-5/
Found a really cool php class today.
PHPMailer
http://phpmailer.sourceforge.net/
Features
/usr/bin/openssl rsa -in privkey.pem -out key.pem
I never knew you could do this till the other day… Man that makes it easy!
SELECT products.product_ID, manufacturer.manufacturer_name, category.category_name
FROM products
left join manufacturer ON products.manufacturer_ID = manufacturer.manufacturer_ID
left join category ON products.category_ID = category.category_ID
ORDER BY products.product_ID
Moving to postfix from sendmail is wonderful. Here’s how to set up a backup mx for a remote server. If you have many backup mx’s to enter, use a new line and put whitespace in front of the domain. See the instructions in /etc/postfix/main.cf for more details. Configure your dns with the appropriate mx records and then edit:
/etc/postfix/main.cf:
relay_domains = $mydestination thehenrys.net doctorslabinc.com pikecreekturf.com
smtpd_recipient_restrictions = permit_mynetworks, check_relay_domains
Restart postfix with:
/sbin/service postfix restart
Go to the park and get some fresh air.