New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Letsencrypt new domain

Started by ferrynl, July 11, 2016, 09:43:07 PM

Previous topic - Next topic

ferrynl

Hi,

I get this error: Unable to open /etc/scl/prefixes/python27!
Any fix for it?
Thanks,

Ferry

Lego, Playmobil of Duplo duur? Vergelijk gewoon online de prijzen op https://www.speelgoedprijs.nl/

Administrator

try this
yum install centos-release-scl -y
yum install python27 -y

asrof_id

Still not succeed,

Is the problem with downloading package?

----------

[root@myserver ~]# yum install centos-release-scl -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.readyspace.com
* extras: mirror.readyspace.com
* rpmforge: mirror.oscc.org.my
* updates: mirror.readyspace.com
No package centos-release-scl available.
Error: Nothing to do
[root@myserver02 ~]# yum install python27 -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.readyspace.com
* extras: mirror.readyspace.com
* rpmforge: mirror.oscc.org.my
* updates: mirror.readyspace.com
No package python27 available.
Error: Nothing to do

Laur

Try this:

yum install epel-release -y
yum install python

asrof_id


masreal

#5
Hi I had the same Issue, I'm using CentOS 6.8

I did a workaround (Is not the best solution but it works). This happens because for some reason scl is not working properly.

To solve it:

1- First install python requirements
$yum install epel-release
$rpm -ivh https://rhel6.iuscommunity.org/ius-release.rpm
yum --enablerepo=ius install git python27 python27-devel python27-pip python27-setuptools python27-virtualenv -y
2- Workaround for missing files
$ echo /opt/rh > /etc/scl/prefixes/python27
$mkdir /opt/rh/python27
$touch /opt/rh/python27/enable

This solve for me the problem with the Unable to open: /etc/scl/prefixes/python

Then i got another problem virtualenv not found, this can be solved using symbolink link
$cd /usr/bin
$ln -s  virtualenv-2.7  virtualenv

I hope this work for you too.

Dexxa

This worked for me on centos to :-D

Quote from: masreal on August 09, 2016, 06:45:49 AM
Hi I had the same Issue, I'm using CentOS 6.8

I did a workaround (Is not the best solution but it works). This happens because for some reason scl is not working properly.

To solve it:

1- First install python requirements
$yum install epel-release
$rpm -ivh https://rhel6.iuscommunity.org/ius-release.rpm
yum --enablerepo=ius install git python27 python27-devel python27-pip python27-setuptools python27-virtualenv -y
2- Workaround for missing files
$ echo /opt/rh > /etc/scl/prefixes/python27
$mkdir /opt/rh/python27
$touch /opt/rh/python27/enable

This solve for me the problem with the Unable to open: /etc/scl/prefixes/python

Then i got another problem virtualenv not found, this can be solved using symbolink link
$cd /usr/bin
$ln -s  virtualenv-2.7  virtualenv

I hope this work for you too.

bioharz

@masreal

thank you very much!

Works like a charm (=

merci!

Dexxa

It seems you need to do it on the 32Bit version, but be cafeful when i rebooted server webpages wouldnt load.  But on the 64Bit version it works as normal without doing that trick

admtiagonogueira

Amigo,

Você resolveu todos os nossos problemas. Muito obrigado!

Quote from: masreal on August 09, 2016, 06:45:49 AM
Hi I had the same Issue, I'm using CentOS 6.8

I did a workaround (Is not the best solution but it works). This happens because for some reason scl is not working properly.

To solve it:

1- First install python requirements
$yum install epel-release
$rpm -ivh https://rhel6.iuscommunity.org/ius-release.rpm
yum --enablerepo=ius install git python27 python27-devel python27-pip python27-setuptools python27-virtualenv -y
2- Workaround for missing files
$ echo /opt/rh > /etc/scl/prefixes/python27
$mkdir /opt/rh/python27
$touch /opt/rh/python27/enable

This solve for me the problem with the Unable to open: /etc/scl/prefixes/python

Then i got another problem virtualenv not found, this can be solved using symbolink link
$cd /usr/bin
$ln -s  virtualenv-2.7  virtualenv

I hope this work for you too.

asrof_id

I upgrade my Centos OS from 32bit to 64bit.
Problem solved.

escobar

Thank you @Masreal ! It works. :)

But I have one more problem. When I try open my website which has SSL by this way, This web site opening with HTTP. How can open web site with HTTPS automatically? I need to write manual HTTPS for now if I try open my web site.

locvfx

Quote from: escobar on February 17, 2017, 02:21:26 PM
Thank you @Masreal ! It works. :)

But I have one more problem. When I try open my website which has SSL by this way, This web site opening with HTTP. How can open web site with HTTPS automatically? I need to write manual HTTPS for now if I try open my web site.

Add this to your .htaccess file

QuoteRewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

http://www.inmotionhosting.com/support/website/ssl/how-to-force-https-using-the-htaccess-file

bachusteam

#13
hi, ty for your help , but for the main domain  where i find that htaccess for the main domain to put my pannes to be with ssl, coz is work but only if i tipe https://

studio4host

if you set redirection to https with .htaccess then only https will work.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.