PDA

View Full Version : [How To] Directadmin+Apache 2.2+PHP5+SUPHP+Suexec - Perfect Setup



syslint
03-02-2011, 10:44 AM
I had faced bad suphp configurations in a number of da servers for our support clients, with multiple useless php and its issues. So I had to write this article. It is easy to build an suphp server without a number of php instances and to build a clean system , with the following features,


This php will be installed under /usr/local/ instead of /usr/local/php5
There is no conflict with multiple server php binaries
The php ini path is /usr/local/lib/php.ini
This will help to set correct path for php scripts or cron jobs without modifying the client files
No modification for default template , just use custom.
Use server mysql for php-mysql client instead of bundled php , this will avoid client API conflict
Give simplicity for new directadmin users
Easy to implement


The article is located on here (http://syslint.com/syslint/howto-directadminapache-2-2php5suphpsuexec-perfect-setup/)

If you need an autoinstaller script for it download from here (http://files.syslint.com/da/syslint_apachebuild_suphp_5.2.sh)

mikegrungey
03-04-2011, 11:17 AM
just used your auto installer. then my panel suddenly showed this thing. And I cant find my installatron plugin

|LANG_COMPLETE_USAGE_STATS|
|LANG_CUSTOM_HTTPD|
|LANG_PHP_SAFEMODE|
|$/usr/local/bin/php |PLUGIN_0_ADMIN_TXT|
|PLUGIN_2_ADMIN_TXT|
|PLUGIN_4_ADMIN_TXT|
|PLUGIN_6_ADMIN_TXT|
|PLUGIN_8_ADMIN_TXT|DONE| |LANG_ADMIN_SETTINGS|
|LANG_LICENSE_UPDATES|
|LANG_PLUGIN_MANAGER|
|LANG_ADMIN_CRON_JOBS|
|$/usr/local/bin/php |PLUGIN_1_ADMIN_TXT|
|PLUGIN_3_ADMIN_TXT|
|PLUGIN_5_ADMIN_TXT|
|PLUGIN_7_ADMIN_TXT|
|PLUGIN_9_ADMIN_TXT|DONE|

syslint
03-04-2011, 09:02 PM
Please check the ownership and permission of plugins from /usr/local/directadmin/plugins

Also make a phpinfo page and test if the php is working fine or not.

mikegrungey
03-05-2011, 07:21 AM
here is my permission

[root@box /]# clear
[root@box /]# ls -al /usr/local/directadmin/plugins/
total 12
drwxr-xr-x 3 diradmin diradmin 4096 Mar 4 14:10 .
drwxr-xr-x 7 diradmin diradmin 4096 Mar 4 13:25 ..
-rw-r--r-- 1 root root 0 Mar 4 14:08 i3repair
drwxr-xr-x 9 diradmin diradmin 4096 Mar 4 14:10 installatron

or how can i revert back the installation :)

syslint
03-05-2011, 08:02 PM
to rever back just reinstall it as follows,

# cd /usr/local/directadmin/custombuild/
# rm -f custom/ap2/cofigure.*
# ./build clean
# ./build apache
# ./build php5-cgi