I started using this recipe a long time ago before all the healthy “Earth Balance” type shortenings became available. I still think a crust that has a mixture of butter and shortening is the best but this recipe’s simplicity in only using butter is good for those times when you want a crust but don’t have any shortening on hand.
Using the minimal install option for a CentOS or other Redhat derived distro can leave a lot to be desired. It really is a minimal installation. That’s actually why I prefer it for production server builds. The end product only contains the minimal set of software I need to run my applications. Here are some amendments I make to turn this minimal installation into a workable LAMP/server platform.
During the setup process you should configure networking – it’s much easier using the gui now than later. But if you forget you can do this:
IPADDR=x.x.x.x BOOTPROTO=none NETMASK=255.255.255.0 GATEWAY=y.y.y.y DNS1=y.y.y.y DNS2=y.y.y.y USERCTL=yes HWADDR='your mac address'
If you need to find your mac address you can look in a couple of places:
grep eth0 /var/log/messages
dmesg | grep eth0
Both of these will reveal the mac address.
Next, edit the network config file and add the gateway address:
Adding the line:
Now restart the network interface:
From here you should be able to ping your router:
$ ping y.y.y.y
Adding EPEL repo and Additional Packages
Now that your server is connected to the network it’s time to run updates and then add additional repos and packages. First start by running updates:
# yum update
Next add the EPEL repository. CentOS comes with an RPM package to install the repo which makes things easy.
# yum install epel-release
Now add the following packages to round out the installation:
# yum install openssh-clients rsync man wget postfix vim-enhanced \ x11-xorg-apps x11-xorg-xauth ntp ntpdate bind-utils crontabs firefox
I was asked to put a server together to host a library application called Guide on the Side. All it requires is a basic LAMP stack platform. The application was written with the CakePHP framework (kind of like Rails for Ruby). One of the functions of the app is to allow the results of the user’s session to be e-mailed once complete. But it wasn’t working.
I checked to make sure that I could send e-mail using the OS with:
cat /etc/hosts | mailx -s "Test message" me@myemailaddress
This worked fine. I received a message in my work inbox almost instantly. So then I thought I should check to see if I could send mail with PHP using PHP's mail function. I used the following script:
?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $from = "email@example.com"; $to = "firstname.lastname@example.org"; $subject = "Test from php"; $message = "This is a test message"; $headers = "From:" . $from; mail($to, $subject, $message, $headers); echo "Email sent";; ?>
And this worked fine too. So next I decided to look in the /var/log/maillog to see what was going on. This system is running a Red Hat type distro, specifically, Oracle Linux 6.5. I suspected it might be an issue with SElinux and sure enough, that's what I found. Inside the maillog there was a message that showed:
Jan 14 17:07:31 - server.mydomain.edu postfix/sendmail: fatal: chdir /var/spool/postfix: Permission denied
Looks like an SElinux problem. Essentially SElinux is preventing the Apache user from sending mail. To verify SElinux status generally use the sestatus command or to look specifically for whether or not the Apache user can send mail use the command getsebool. Like this:
[root@server]# sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 28 Policy from config file: targeted
[root@server]# getsebool httpd_can_sendmail httpd_can_sendmail --> on
I knew that my system was running with SElinux enabled and set to enforcing. But when I first ran the getsebool command, my system was set for "httpd_can_sendmail" to off. I needed to set it "on" to allow the e-mail function of the application to work. Like this:
[root@server]# setsebool -P httpd_can_sendmail 1
The "-P" argument makes the change persistent across reboots. Once it was set my application was able to e-mail just fine.
I’ve spent much of my life eating as a vegetarian. But, that being said, it doesn’t mean I don’t appreciate the taste of meat. It is delicious. One of my favorite dishes I only eat at Thanksgiving and this is it; Cornbread sausage stuffing. I sometimes add cranberries depending on my mood. This is a great recipe to tinker with.
I love pumpkin and always keep cans of organic pumpkin around the house to make all kinds of things from bread, pie, to this savory fare, a quick and easy pumpkin soup. It takes very little time to make and is super yummy.