php configuration using rebuild_phpconf in cpanel

Filed Under (cPanel/WHM, Linux) by WebScHoLaR on 24-02-2011

Tagged Under : , ,

cPanel allows php to be configured as DSO, suPHP and FastCGI. PHP can be reconfigured using /usr/local/cpanel/bin/rebuild_phpconf script. This also allows to set the default PHP version (4 or 5) and enable/disable SuExec. Script has multiple command line parameters that can be passed to it. Script itself shows the available parameters:

[root@Server ~]# /usr/local/cpanel/bin/rebuild_phpconf
Usage: /usr/local/cpanel/bin/rebuild_phpconf [--dryrun] [--no-restart] [--no-htaccess] [--current|--available]
–dryrun : Only display the changes that would be made
–no-restart : Don’t restart Apache after updating the php.conf link
–no-htaccess : Don’t update user configurable PHP mime mapping.
–current : Show current settings
–available : Show available handlers and PHP SAPIs
: Version of PHP to set as default handler for .php files

: Type of Apache module to use in serving PHP requests
: enabled, disabled, 1 or 0

Read the rest of this entry »

PHP/MSSQL/FreeTDS

Filed Under (Articles) by WebScHoLaR on 19-02-2008

Tagged Under : , ,

Freetds is a set of libraries for Unix and Linux that allows your programs to natively talk to Microsoft SQL Server. A clinet requested to have it compiled with PHP so I did it for him and wrote a guide to be used in future. I am writing the installation of freetds and then php compilation with mssql support. Read the rest of this entry »

Proudly Hosted by eServicesProvider