Apache & PHP Customization
← Go BackUsing Custom Configure Flags
Modifying your configure flags can break the compilation of Apache. cPanel is not responsible for custom changes and provides no warranty of any kind with this information. Proceed with caution.
EasyApache also allows you to specify any configure option supported by Apache and/or PHP. To add configuration options, simply place the option in the appropriate file (one option per line, format: option=value):
- Apache 1.3.x -
/var/cpanel/easy/apache/rawopts/Apache1 - Apache 2.0.x -
/var/cpanel/easy/apache/rawopts/Apache2 - Apache 2.2.x -
/var/cpanel/easy/apache/rawopts/Apache2_2 - All PHP 4.x versions -
/var/cpanel/easy/apache/rawopts/all_php4 - All PHP 5.x versions -
/var/cpanel/easy/apache/rawopts/all_php5 - Mod_suPHP -
/var/cpanel/easy/apache/rawopts/all_suphp - Specific PHP Version -
/var/cpanel/easy/apache/rawopts/PHP-X.X.X
Configure Option Examples
If the file contains the following lines:
--with-someoption
--path-to-something=/usr/bin/something
--my-option=
The following will be added to the configure line:
--with-someoption --path-to-something=/usr/bin/something
--my-option
You'll notice that the configure line has "--my-option" instead of "--my-option=". This is because the file is parsed and then properly formatted options are merged into the configure data structure.
Skipping your Custom Options
If needed, you can skip building with these custom options by running EasyApache with the --skip-rawopts flag like so:
/scripts/easyapache --skip-rawopts
Through WHM, you can skip the options by clicking on the Help Link inside the Apache Update interface and then making sure the option for Do not use raw opts support is checked.
