Apache stopped working and will not start?

kristian

Verified User
Joined
Nov 4, 2005
Messages
245
Location
Norway
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
 

kristian

Verified User
Joined
Nov 4, 2005
Messages
245
Location
Norway
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.
 

dafang

Verified User
Joined
Dec 15, 2019
Messages
9
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?
 

kristian

Verified User
Joined
Nov 4, 2005
Messages
245
Location
Norway
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.
 

dafang

Verified User
Joined
Dec 15, 2019
Messages
9
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.
 

bdacus01

Verified User
Joined
Jul 22, 2017
Messages
2,970
Location
Murfreesboro
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.
 
Top