garywong

Registered
Jul 29, 2019
2
0
1
Victoria, BC
cPanel Access Level
Website Owner
Hello

I see EasyApache directions on the forum for this, but not for cPanel 80 (which I'm on and doesn't appear to have the same options).

Is there a secure way for me to set environment variables on my website, such that Apache and PHP (not CLI) can reference them?

I'd prefer to set these in a way that is NOT on the webroot.
Thanks
Gary Wong
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
All cPanel servers use EasyApache though but you don't have access to manage it without access to WHM. The only other way that you'd be able to use SetEnv would be through an .htaccess file which would have to at least be in /home/$user if not the document root of the domain.