[How To] Directadmin+Apache 2.2+PHP5+SUPHP+Suexec - Perfect Setup

syslint

Verified User
Joined
Oct 24, 2010
Messages
97
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

If you need an autoinstaller script for it download from here
 
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|
 
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.
 
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 :)
 
Last edited:
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
 
Back
Top