https://repo.magento.com/packages.json” file could not be downloaded: allow_url_fopen must be enable

I’m installing fresh using command line and when I get to the step:

composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition public_html

 

I get the following error msg:

[ComposerDownloaderTransportException]
The “https://repo.magento.com/packages.json” file could not be downloaded: allow_url_fopen must be enabled in php.ini (https://
wrapper is disabled in the server configuration by allow_url_fopen=0
failed to open stream: no suitable wrapper could be found)

 

The issue here is I do have allow_url_fopen On, and have double-checked it using a phpinfo.php file

 

I’m stuck, any one else run into this issue and found success?

 

By the way, I’m on a VPS and have full access to WHM cPanel and all settings