Cannot load /usr/local/zend/lib/apache2/libphp5.so in CentOS

I install the CentOS with apache.

But after access to system then apache is’n run. This is notice of apache when I start apache: service httpd start

Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/zendserver_php.conf: Cannot load /usr/local/zend/lib/apache2/libphp5.so into server: /usr/local/zend/lib/apache2/libphp5.so: cannot enable executable stack as shared object requires: Permission denied

Cannot load libphp5.so in apache

 

Fix:

uvdevnull give this a try: /usr/bin/execstack -c /usr/local/zend/lib/apache2/libphp5.so

  1. Sudo –i
  2. /usr/bin/execstack -c /usr/local/zend/lib/apache2/libphp5.so
  3. service httpd start

The result:

 

Fix cannot load libphp5.so in apache

 

Good look!