DevOps

Amazon EC2 – Installing Apache and PHP boilerplate

Amazon EC2 – Installing Apache and PHP boilerplate

In this extremely simply tutorial I’m going to show, how you can deploy basic LAMP stack on EC2 instance. Instruction are pretty basic, without extra comments. You can just copy and paste command to get working stack in lest then 15 minutes.

What you can learn from it? How to install Apache and PHP, how to enable and run XCache accelerator, and how to run HTTPS on your server, with purchasing SSL certificate.

Apache Virtual Hosts in a Database

As much as I love lighttpd  sometimes I can’t avoid Apache . For me – “the best” thing in lighttpd is support for keeping vhost names in MySQL database. I don’t have to use any config files, I can just put record into MySQL database with virtual host server name, path to document root and it’s done. But – I can do the same witch Apache! How? With third party modules, below you can find short tutorial “how to”.

Posftix Permission denied problem

Posftix Permission denied problem

Recently I stuck with WordPress installation which was unable to send emails using build in wp_mail function.

After investigation tail -f /var/log/messages I founded a pleasant line of code with really nice explanation:

sendmail: fatal: chdir /var/spool/postfix: Permission denied

In theory this should be a problem for sysadmin, but – I wanted to find faster solution.

After short adventure with Google I found a clue:

/usr/sbin/getsebool httpd_can_sendmail

My result was obvious: