Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!
We now support Wowza Media Streaming Servers!
0 Members and 1 Guest are viewing this topic.
#rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
#rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
#yum install mod_suphp
[global];Path to logfilelogfile=/var/log/suphp.log;Loglevelloglevel=info;User Apache is running aswebserver_user=apache;Path all scripts have to be indocroot=/var/www/vhosts;Path to chroot() to before executing script;chroot=/mychroot; Security optionsallow_file_group_writeable=falseallow_file_others_writeable=falseallow_directory_group_writeable=falseallow_directory_others_writeable=false;Check wheter script is within DOCUMENT_ROOTcheck_vhost_docroot=true;Send minor error messages to browsererrors_to_browser=true;PATH environment variableenv_path=/bin:/usr/bin;Umask to set, specify in octal notationumask=0022; Minimum UIDmin_uid=30; Minimum GIDmin_gid=30[handlers];Handler for php-scriptsphp5-script="php:/usr/bin/php-cgi"
LoadModule suphp_module modules/mod_suphp.so### Uncomment to activate mod_suphpsuPHP_AddHandler php5-script# This option tells mod_suphp if a PHP-script requested on this server (or# VirtualHost) should be run with the PHP-interpreter or returned to the# browser "as it is".suPHP_Engine on
## PHP is an HTML-embedded scripting language which attempts to make it# easy for developers to write dynamically generated webpages.#LoadModule php5_module modules/libphp5.so## Cause the PHP interpreter to handle files with a .php extension.#AddHandler php5-script .phpAddType text/html .php## Add index.php to the list of files that will be served as directory# indexes.#DirectoryIndex index.php## Uncomment the following line to allow PHP to pretty-print .phps# files as PHP source code:##AddType application/x-httpd-php-source .phps
suPHP_Engine OnsuPHP_UserGroup username psaclnsuPHP_ConfigPath /var/www/vhosts/domain.com/etc