LAMP Install on VPS : CentOS5+Apache+MySQL+suPHP

Here’s the work-in-progress instructions for setting up a LAMP. It’s been sitting on my draft for ages and I have to publish it because a few of my friends need it.

**** NOTE : If you notice, it’s still a draft. It came from a number of sources but these are the steps I use. So I know it works. **********

[Read more...]

Incoming search terms:

  • centos php suphp
  • lamp on vps
  • centos 5 lamp install
  • yum upgrade apache centos
  • shell script install apache php mysql
  • setup vps lamp
  • setup proftpd vps centos
  • run gpg script in php on the centos
  • remove vsftpd install proftpd centos 6
  • reinstall mysql on vps

Apache Cannot Allocate Memory Problem

For the past month, I have been encountering some problems with my WordPress installation. I keep getting the Error 500. I checked the log files and here’s what I found.
(12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for
[Read more...]

Incoming search terms:

  • Cannot allocate memory: couldn\t create child process: /opt/suphp/sbin/suphp
  • Cannot allocate memory: couldnt create child process: /opt/suphp/sbin/suphp
  • apache cannot allocate memory
  • cannot allocate memory
  • (12)Cannot allocate memory: couldn\t create child process: /opt/suphp/sbin/suphp
  • cannot allocate memory apache
  • cannot allocate memory: couldn\t create child process: /opt/suphp/sbin/suphp for
  • apache can not allocation mem
  • (12)cannot allocate memory couldnt create child process /opt/suphp/sbin/suphp
  • apache allocate memory

Shopping Cart Always Empty

After using suPHP on my Apache webserver and NGINX on another server, I realized that my cart systems are no longer working. Here are the symptoms I noticed.

  1. AJAX Carts does not display items
  2. When clicking checkout, the cart becomes empty
  3. After clicking update, the cart becomes empty

If you look at the symptoms, you’ll notice that every time you move to another page of your website, the cart is emptied. It only mean that the session data is not being saved. And with that, you’ll have to check your PHP save_path session settings in PHP.INI. Most often than not, the current value is /etc/php/sessions. You’ll have to check the folder permission. On my case, the folder is owned by root and the group is apache.
[Read more...]

Incoming search terms:

  • wordpress php ini cart problem
  • shopping carts always show empty
  • suphp session save_path
  • value session save_path is empty wordpress