Control Web Panel
WebPanel => SSL => Topic started by: ferrynl on July 11, 2016, 09:43:07 PM
-
Hi,
I get this error: Unable to open /etc/scl/prefixes/python27!
Any fix for it?
-
try this
yum install centos-release-scl -y
yum install python27 -y
-
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
-
Try this:
yum install epel-release -y
yum install python
-
still not succeed.
-
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.
-
This worked for me on centos to :-D
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.
-
@masreal
thank you very much!
Works like a charm (=
merci!
-
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
-
Amigo,
Você resolveu todos os nossos problemas. Muito obrigado!
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.
-
I upgrade my Centos OS from 32bit to 64bit.
Problem solved.
-
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.
-
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
RewriteEngine 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
-
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://
-
if you set redirection to https with .htaccess then only https will work.