PHP settings for bigger file uploads

Published on Author roving_adventurerLeave a comment

Just a quick one! When setting up the hosting for the PrestaShop instance I have deployed my client ran in to errors trying to upload big image files, particularly for the virtual product downloads she offers. A quick google identified the issue as PHP configuration, which out-of-the-box for Amazon Linux is set to limit max… Continue reading PHP settings for bigger file uploads

Adding the vhost to the Apache access_log

Published on Author adventurerLeave a comment

If you are using Apache to host multiple sites with virtual hosting or vhosts, then by default the log output will not show which sites each log entry refers to. To change this edit the following in /etc/httpd/conf/httpd.conf: LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”” combined  to read: LogFormat “%h %l %u… Continue reading Adding the vhost to the Apache access_log

LAMP with php 5.4 and Apache 2.4

Published on Author adventurerLeave a comment

After having a few issues with my t1.micro instance running out of memory and causing the hosted sites to become unavailable, I looked in to the reasons why. According to this post and this post a key culprit is the use of the somewhat outdated PHP 5.3, and upgrading to PHP 5.4 significantly reduces memory usage. Unfortunately… Continue reading LAMP with php 5.4 and Apache 2.4