Custombuild install Apache options.conf file.

paisley

Verified User
Joined
Aug 17, 2013
Messages
60
I have custom build 2.0 and want to upgrade PHP and Apache

When i run i get:
You cannot install Apache, because you do not have it set in options.conf file.

Anyone know how i can solve it ?
 
You should change:

webserver=nginx

to

webserver=apache

in
options.conf and try to update apache once again.
 
#HTTP server. Possible values: apache, nginx, nginx_apache
webserver=apache
#Apache settings
#Possible value: 2.4
apache_ver=2.4

I already had that

I need to say that i have upgrade from custombuild 1.2 to 2.0
 
How did you upgrade it? A correct way would be to move the directory custombuild (of version 1.x) let's say to custombuild_1.x and then download CB 2.x and build options.conf from a scratch.

Code:
cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz [URL]http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz[/URL]
tar xvzf custombuild.tar.gz
cd custombuild
./build

Related: http://forum.directadmin.com/showthread.php?t=44743
 
Just had to deal with this as well.

It's in this line:
Code:
        if [ "${WEBSERVER_OPT}" != "apache" ] || [ "${WEBSERVER_OPT}" != "nginx_apache" ]; then
                echo "You cannot install Apache, because you do not have it set in options.conf file.";
                exit 1;
        fi
The || should be &&, like this it will always fail.
 
It is now fixed and uploaded to files1.

FYI this has not replicated to files2, not sure what the sync cycle is on the files servers but I just downloaded custombuild from files2 and was having the same issue. Thanksfully Google had already indexed this thread and my issue was resolved after updating the download server in my optinons.conf to files1.
 
with ./build nginx_apache

i have this error :
nginx: [emerg] unknown directive "SSLCACertificateFile" in /usr/local/directadmin/data/users/cduweb/nginx.conf:56
nginx: configuration file /etc/nginx/nginx.conf test failed

how fix it ?
 
I'm guessing you have a custom httpd config for that user cduweb (for one of his domains). SSLCACertificateFile is for apache, you need to use the one for nginx

http://wiki.nginx.org/HttpSslModule

I think it's ssl_client_certificate

I'm not too sure because I have no experience with nginx_apache.
 
Back
Top