I'm working on a script to auto-configure my cPanel installations and I'm finding the API lacking in places and hard to dig through in others. So thought I would just ask and see if someone could point me in the right direction. Below are some of the WHM configuration sections I was unable to find equivalents in the API. Do they exist under a different name maybe?
Server Configuration -> Initial Quota Setup: Where is there the script that WHM runs so I could run it manually?
Security Center -> Apache mod_userdir Tweak: This one I kinda understand as the EasyApache profile must have the module available to enable this. But is there was script or option to enable this IF the module exists? Or just how to do this in general?
Security Center -> Compiler Access: Couldn't find any API to enable/disable this
Security Center -> Manage External Authentications: I would like to disable any authentications enabled by default. I recall a few versions back, cPanel was being enabled by default but not anymore. But I don't want to assume that will remain the case.
Security Center -> Security Advisor: I just want to know where the script is to install the Free Symlink Patch. This is the only way I know how to get to it.
Service Configuration -> Apache Configuration:Log Rotation: Couldn't find any API to enable/disable this
Service Configuration -> cPanel Log Rotation Configuration: Couldn't find any API to enable/disable this
Service Configuration -> Exim Configuration Manager:Advanced Editor: Safer to do manually
cPanel -> Customization:Customize Branding: Couldn't find any API to set the logo used. I see where you can REMOVE the logo, but not set it. I see that the files are stored in /var/cpanel/customizations/brand , could I just save images there and it would be picked up automatically? ( WHM API 1 Functions - load_style - Developer Documentation - cPanel Documentation WHM API 1 Functions - remove_logo - Developer Documentation - cPanel Documentation WHM API 1 Functions - save_style - Developer Documentation - cPanel Documentation )
Software -> Manage cPAddons Site Software: Couldn't find any API to enable/disable these. I'd like to enable WordPress and disable anything else
Software -> Manage Plugins: Couldn't find any API to enable/disable these. Just want to disable any enabled plugins.
finally the confusing one:
Service Configuration -> Apache Configuration:Global Configuration
( Global Configuration - Version 84 Documentation - cPanel Documentation Advanced Apache Configuration - EasyApache 4 - cPanel Documentation )
The server stores the configuration of your Apache web server in the /etc/cpanel/ea4/ea4.conf file. This file replaced the /var/cpanel/conf/apache/local and /var/cpanel/conf/apache/main files. So if I just manually edited the ea4.conf file, would that reflect on the Global Configuration screen? I already use a custom previrtualhost.conf file, would it be better just to put all my changes in there assuming it will override the global?
Thanks again for whoever takes the time to answer this for me!
Server Configuration -> Initial Quota Setup: Where is there the script that WHM runs so I could run it manually?
Security Center -> Apache mod_userdir Tweak: This one I kinda understand as the EasyApache profile must have the module available to enable this. But is there was script or option to enable this IF the module exists? Or just how to do this in general?
Security Center -> Compiler Access: Couldn't find any API to enable/disable this
Security Center -> Manage External Authentications: I would like to disable any authentications enabled by default. I recall a few versions back, cPanel was being enabled by default but not anymore. But I don't want to assume that will remain the case.
Security Center -> Security Advisor: I just want to know where the script is to install the Free Symlink Patch. This is the only way I know how to get to it.
Service Configuration -> Apache Configuration:Log Rotation: Couldn't find any API to enable/disable this
Service Configuration -> cPanel Log Rotation Configuration: Couldn't find any API to enable/disable this
Service Configuration -> Exim Configuration Manager:Advanced Editor: Safer to do manually
cPanel -> Customization:Customize Branding: Couldn't find any API to set the logo used. I see where you can REMOVE the logo, but not set it. I see that the files are stored in /var/cpanel/customizations/brand , could I just save images there and it would be picked up automatically? ( WHM API 1 Functions - load_style - Developer Documentation - cPanel Documentation WHM API 1 Functions - remove_logo - Developer Documentation - cPanel Documentation WHM API 1 Functions - save_style - Developer Documentation - cPanel Documentation )
Software -> Manage cPAddons Site Software: Couldn't find any API to enable/disable these. I'd like to enable WordPress and disable anything else
Software -> Manage Plugins: Couldn't find any API to enable/disable these. Just want to disable any enabled plugins.
finally the confusing one:
Service Configuration -> Apache Configuration:Global Configuration
( Global Configuration - Version 84 Documentation - cPanel Documentation Advanced Apache Configuration - EasyApache 4 - cPanel Documentation )
The server stores the configuration of your Apache web server in the /etc/cpanel/ea4/ea4.conf file. This file replaced the /var/cpanel/conf/apache/local and /var/cpanel/conf/apache/main files. So if I just manually edited the ea4.conf file, would that reflect on the Global Configuration screen? I already use a custom previrtualhost.conf file, would it be better just to put all my changes in there assuming it will override the global?
Thanks again for whoever takes the time to answer this for me!