zEitEr
Super Moderator
PHP:
<?php
phpinfo();
?>
put the code in a phpinfo.php in public_html of any website of yours and see output in a browser.
<?php
phpinfo();
?>
The guide is outdated and supports only CustomBuild 1.x, and can not be used for CustomBuild 2.x which you run.
cd /usr/local/directadmin/custombuild
./build clean
./build update
nano options.conf
php1_mode=[COLOR="#0000FF"]php-fpm[/COLOR]
[COLOR="#FF0000"]or if it's[/COLOR]
php1_mode=[COLOR="#0000FF"]mod_php[/COLOR]
php1_mode=[COLOR="#008000"]suphp[/COLOR]
php2_mode=[COLOR="#008000"]suphp[/COLOR]
./build all d
./build rewrite_confs
./build roundcube
./build squirrelmail
./build phpmyadmin
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do chown -R $i.$i /home/$i/domains/* ; echo $i ;done
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do find /home/$i/domains/ -type f -exec chmod 644 {} \; ; echo $i ;done
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do find /home/$i/domains/ -type d -exec chmod 755 {} \; ; echo $i ;done
cd /usr/local/directadmin/custombuild/
./build rewrite_confs
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_suphp.so into server: /usr/lib/apache/mod_suphp.so: cannot open shared object file: No such file or directory
./build suphp
./build rewrite_confs