Issues related to compiling apache, php etc…htaccess: Option FollowSymLinks not allowed here
Issues related to compiling apache, php etc…htaccess: Option FollowSymLinks not allowed here. For security reasons, FollowSymLinks is disabled by default.
For preventing this, either:
1) Remove FollowSymLinks from your .htaccess file. Then It can be replace with SymLinksIfOwnerMatch.
2) Or use the patch method instead, which allows FollowSymLinks, but replaces it withSymLinksIfOwnerMatch internally, so the clients do not need to adjust anything (we will likely use this as the default in the future).
I wish to install Zend Optimizer/Guard, and/or Ioncube.
For Zend, type:
cd /usr/local/directadmin/custombuild
./build set zend yes
./build zend
after you change the php versions, it is recommended you install zend again.
Note that Zend Guard is the new name for Zend Optimizer, and it is used for newer versions of php. Custombuild will install the correct one for your system.
For Ioncube, type:
cd /usr/local/directadmin/custombuild
./build set ioncube yes
./build ioncube
The “./build set” command only sets the option in the options.conf, so you can only need it to do that once to enable the feature, then install the item after it is enabled.
FrontPage and custombuild
At First, FrontPage server extensions are end-of-life and should not be using on a production server.
We will not be able to offer any technical support for FrontPage.
If you are using frontpage, but are using apache 1.3 compiling with custombuild (instead of customapache), if you see this error:
The requested URL /_vti_bin/_vti_adm/fpadmcgi.exe was not found on this server.
a reported (untested) solution is to use these options in your main httpd.conf:
<IfModule mod_frontpage.c>
FrontPageEnable
FrontPageAdminEnable
</IfModule>
/usr/bin/ld: cannot find -llve
This will only applies to CloudLinux systems.
We have had a few reports of this error when compiling apache/suexec:
/usr/bin/ld: cannot find -llve
collect2: ld returned 1 exit status
where the solution is for install the required liblve development package:
yum -y install liblve-devel
How to change the PHP email in the Apache VirtualHosts
You may see this value in your User’s httpd.conf file:
php_admin_value sendmail_path ‘/usr/sbin/sendmail -t -i -f user@domain.com’
where user is the account owner for domain.com.
If you would like to change this value, go to:
Admin Level -> Custom Httpd Configuration -> domain.com
In the top text area, paste this code
|?PHP_EMAIL=new@email.com|
to whichever email value you would like, and this will be using in the VirtualHost configs for that domain.
For php-fpm (nginx, and some apache setups), the Custom Httpd Config pages are not currently fill the require CUSTOM1 tokens for the User’s php-fpm.conf file, thus the EMAIL token can not currently be easily overridden.
If you need to change the EMAIL token for a php-fpm.conf file, create a custom copy of the php-fpm.conf template, and change the EMAIL token to have if-then-else statements, so it will only affects one domain, eg:
|*if DOMAIN=”domain.com“|
|?EMAIL=new@email.com|
|*else|
|?EMAIL=`USER`@`DOMAIN`|
|*endif|