March 31, 2009 at 12:27 am · Filed under Uncategorized
I got tired of ISPs blocking outgoing port 25, so I moved our SMTP for clients to port 587. Unfortunately, when migrating our new server, I couldn’t remember how to do this.
After some Googling, I found the answer; add this line in /etc/postfix/master.cf, substituting your port number for 25000:
25000 inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes |
I left port 25 on too, so users can try either from their ISP. If you want to turn off port 25, just comment out this line:
smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes |
Remember to open up the port in your server firewall as well!
March 30, 2009 at 10:55 pm · Filed under Uncategorized
While migrating virtualmin to our shiney new CentOS 5 box, I ran into this error on all our PHP sites:
If I look at php info, it shows –with-mysql, but there is no mysql section farther down. It looked like PHP’s Apache module was having trouble finding the mysql.so file. I immediately thought to check for the php-mysql module (there is no php5-mysql for CentOS 5, I noted) and found it installed:
[root@server apf]# yum install php-mysql
...
Parsing package install arguments
Package php-mysql - 5.1.6-20.el5_2.1.i386 is already installed.
Nothing to do |
After a short dive into the php.ini settings, I noted that all the restored sites had this in their php.ini file:
extension_dir=/usr/lib/php5/modules
But that dir doesn’t exist. Connecting the dots, I realized that CentOS 5 has moved all the PHP 5 data to the default. So the dir is now at /usr/lib/php/modules. And this solved the rest:
[root@server lib]# ln -s /usr/lib/php /usr/lib/php5
[root@server lib]# ls -ld /usr/lib/php*
drwxr-xr-x 4 root root 4096 Jul 16 2008 php
lrwxrwxrwx 1 root root 3 Mar 30 21:01 php5 -> php
[root@server lib]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ] |
Yay!
November 22, 2007 at 2:14 am · Filed under Programming
I’m setting up a new hosting server for several clients. I purchased a download of Virtualmin Pro and checked it out as a total management solution. Although it supports Ubuntu Edgy (6.06.1), it does not support 7.1.
So I did what any good programmer would do… I tried it anyways. It failed. So I fixed the bug and tried it again. That one failed. So I went to the forums and got another suggestion and tried that one. It failed, burned down, fell over and sank into the swamp. So Installed 6.06.1 and the FOURTH ONE STAYED.
So don’t try virtualmin with 7.1, unless you’re glutton for punishment too…