Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- My LAMP Stack consists of the following - Apache v2.4.4, PHP v5.5.0, MySQL v5.6.12.
- I have successfully compiled suPHP v0.7.2 after making following changes in it's source code
- File => configure.ac
- Line 69 => if test "$major_version" = "2.0" -o "$major_version" = "2.2" -o "$major_version" = "2.4"; then
- File => src/apache2/mod_suphp.c
- Line 114 => #define SUPHP_PATH_TO_SUPHP "/usr/local/sbin/suphp"
- My installation commands
- --------------------------
- autoreconf -ifv -W all
- ./configure --sysconfdir=/etc --with-apr=/usr/local/apache2/bin/apr-1-config --with-apxs=/usr/local/apache2/bin/apxs
- make
- make install
- /etc/suphp.conf file
- --------------------------
- [global]
- logfile=/usr/local/apache2/logs/suphp.log
- webserver_user=apache
- docroot=/var/www:${HOME}/public_html
- umask=0077
- min_uid=100
- min_gid=100
- [handlers]
- application/x-httpd-php="php:/usr/local/bin/php-cgi"
- x-suphp-cgi="execute:!self"
- Main httpd.conf file contains
- --------------------------
- #LoadModule php5_module modules/libphp5.so
- LoadModule suphp_module modules/mod_suphp.so
- suPHP_Engine on
- suPHP_AddHandler x-httpd-php
- AddType application/x-httpd-php .php
- VirtualHost entry contains
- ---------------------------
- suPHP_UserGroup apache apache
- I am trying to access my PHP file in /var/www/htdocs via http://localhost/index.php
- Apache HTTPD runs as 'apache:apache'. Has UID/GID above 100. The file/folder permission are 600/700. There is no suPHP error log created. Apache access log shows the access entires with successful return codes. There are no errors in Apache log files.
- The scripts that work with mod_php doesn't work with mod_suphp. With mod_suphp, the PHP code is webpage is shown as it is.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement