You can choose to use custom PHP and Apache configure flags even while using Easyapache. This makes your job easier, which not only gives you greater control, but it is easier also as you don’t have to manually navigate through all the Easyapache options. Especially when you want to configure PHP and Apache with the same settings as of a different server, imagine how difficult is it when you have to first go and check what are the options compiled in the other server, and then to navigate through Easyapache options to locate right boxes to be checked – tedious job indeed!
Now, consider you want to compile PHP5 with the same configure flags of another server, but still prefer to use Easyapache than compiling from source. Its too simple than you ever imagine:
1. Copy the configure flags on the other server
# php -i | grep configure
2. On the new server, create the file /var/cpanel/easy/apache/rawopts/all_php5
3. Enter the configure flags in the file all_php5, one flag per line.
4. Run Easyapache
# /scripts/easyapache
5. Once finished, it is safe to delete the file all_php5.
Even with the existence of these custom flags, you can still run Easyapache ignoring the custom flags using the command /scripts/easyapache –skip-rawopts. Also, below listed are the different files you can create for different versions of PHP and Apache:
For Apache 1.3.x — /var/cpanel/easy/apache/rawopts/Apache1
For Apache 2.0.x — /var/cpanel/easy/apache/rawopts/Apache2
For Apache 2.2.x — /var/cpanel/easy/apache/rawopts/Apache2_2
For all PHP 4.x versions — /var/cpanel/easy/apache/rawopts/all_php4
For all PHP 5.x versions — /var/cpanel/easy/apache/rawopts/all_php5
For Mod_suPHP — /var/cpanel/easy/apache/rawopts/all_suphp
For a specific PHP Version — /var/cpanel/easy/apache/rawopts/PHP-X.X.X
Hope you enjoyed reading, for more details you can refer to cPanel’s own documentation at http://docs.cpanel.net/twiki/bin/view/EasyApache3/CustomConfigureFlags
Cheers!!