Apache stopped working and will not start?

If you run directadmin h it will show you the list of options:

Code:
# /usr/local/directadmin/directadmin h
Usage: /usr/local/directadmin/directadmin [c|s|d|v|p|i|r|o|b(#)][set name value (restart)]
c    : shows the values in the config file to make sure they were read in correctly
s    : prints out where the program is slowing without forking. For Debugging only.
d    : run as a daemon (required for init.d scripts)
v    : prints the current program version and quits
p    : set file permissions
i    : run the program installer
r    : runs as Deamon, but saves requests to file (debugging)
o    : Shows which OS this binary is compiled on, and when.
b(#)    : Dumps some debug info to stdout. # is optional debug level,eg b5

set name val (restart): sets the given name=val to the directadmin.conf. Optional restart.
Example:
    /usr/local/directadmin/directadmin set dns_ttl 1 restart
 
This fixed the problem:

Code:
cd /usr/local/directadmin/custombuild
./build update
/usr/local/directadmin/directadmin p
./build rewrite_confs
i did all this but it still says:
1626936790579.png
 
Please at the very least, read the text in your screenshot, and run the commands it suggests to get more information. Nothing in your screenshot provides any information about anything.
 
If you run directadmin h it will show you the list of options:

Code:
# /usr/local/directadmin/directadmin h
Usage: /usr/local/directadmin/directadmin [c|s|d|v|p|i|r|o|b(#)][set name value (restart)]
c    : shows the values in the config file to make sure they were read in correctly
s    : prints out where the program is slowing without forking. For Debugging only.
d    : run as a daemon (required for init.d scripts)
v    : prints the current program version and quits
p    : set file permissions
i    : run the program installer
r    : runs as Deamon, but saves requests to file (debugging)
o    : Shows which OS this binary is compiled on, and when.
b(#)    : Dumps some debug info to stdout. # is optional debug level,eg b5

set name val (restart): sets the given name=val to the directadmin.conf. Optional restart.
Example:
    /usr/local/directadmin/directadmin set dns_ttl 1 restart
That list doesn't include the n in "./build php n". Any ideas as to what it may mean?
 
That list doesn't include the n in "./build php n". Any ideas as to what it may mean?
Of course it doesn't, they are two different programs/scripts.

Run ./build without any arguments for a list of options you can pass to the script. The bottom part details the second argument, such as n.
 
Of course it doesn't, they are two different programs/scripts.

Run ./build without any arguments for a list of options you can pass to the script. The bottom part details the second argument, such as n.
Thank you. That's a heck of a list to go through. Very useful.

Now knowing what the 'n' switch does, not sure if using it is a good idea or not. I'll just run .build php without any switches and see what happens.
 
So what is the general reasons to use one or the other?
/usr/local/directadmin/custombuild/build <option> d : do the default action
/usr/local/directadmin/custombuild/build <option> y : answer yes to all questions
/usr/local/directadmin/custombuild/build <option> n : answer no to all questions

also if I leave it off as such
./build all
or ./build php

d,y,n switches are all legacy switches. They are not needed and dont really do anything.
 
s
same bug on 5 servers, after updating php 7.4.x with custombuild, apache would not restart because of syntax error (Invalid command '|UNIT_PROXY|')
>> solution
cd /usr/local/directadmin/custombuild
./build update
/usr/local/directadmin/directadmin p
./build rewrite_confs
solved with this
 
Back
Top