Run EasyApache with DEFAULT profile via SSH

jmginer

Well-Known Member
Jul 26, 2006
150
4
168
Alicante
cPanel Access Level
Root Administrator
Hello, we want run EasyApache to fix the vulnerabilities that correct the last version.
We want do via SSH, not connecting to the WHM.

Is it possible to run the DEFAULT profile with only 1 command? not any intervention to select some extra options. Just run the command and wait to finish.

Thanks.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
79
458
cPanel Access Level
Root Administrator
You can build the last profile by:

# /scripts/easyapache --build

You can build a specific profile by:

# /scripts/easyapache --build --profile=profile_name

The profile name must match the file found in /var/cpanel/easy/apache/profile/custom/ without the .yaml extension. The --profile parameter also accepts a fully qualified file name.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
79
458
cPanel Access Level
Root Administrator
There are any parameter to run in background?
No, there isn't. What I do is use a terminal multiplexer, like screen or tmux. Then I can start easyapache, and either continue work in a different session, or just close my connection. easyapache will continue running in your screen or tmux session.

Screen: GNU Screen - GNU Project - Free Software Foundation
tmux: tmux

Either should be available on CentOS (yum install screen; yum install tmux - pick one)
 
Last edited: