Hi Andrei,
you need run the “pip install” commands from within the virtualenv.
I think you have done so, otherwise I guess “pip” would not be found.
But if you run it from within virtualenv you should not create
directories outside of virutalenv.
And if you ran this as user “ec2-user”, how did the
directory /usr/lib/privacyidea came into life, as this user probably has
no write access.
So make sure, that you run “pip install” from within virtualenv.
- i.e. after doing “source bin/activate”.
Please check:
- Does a directory /opt/privacyIDEA/lib/privacyidea/ exist?
- Does a directory /usr/lib/privacyidea/
and /usr/lib/python2.7/site-packages/privacyidea/ exist?
If you answer 1. NO and 2. YES, then you ran the “pip install” outside
of the python virtualenv. 
Kind regards
CorneliusAm Mittwoch, den 18.11.2015, 08:49 -0800 schrieb Andrei Burn:
#I’ve created the virtualenv as described …
virtualenv /opt/privacyIDEA
#then…
cd /opt/privacyIDEA
#then…
source bin/activate
#which lead me to this…
(privacyIDEA)[ec2-user@ip-172-31-23-75 privacyIDEA]$
#So then I downloaded and install the requirements and all the rest
below
pip install -r requirements.txt
pip install MySQL-python
pip install privacyidea
mkdir /etc/privacyidea
mkdir /var/log/privacyidea
#PrivacyIDEA is definitely installed and active on the virtualenv,
I’ve double checked with yolk
privacyIDEA - 2.7.1 - active
#But when it comes to Fix rights PricacyIDEA and PrivacyIDEA apache
config, it doesn’t work because the diretory etc/privacyidea is not
found
#the location of /etc/privacyidea
(privacyIDEA)[ec2-user@ip-172-31-23-75 ~]$ whereis /etc/privacyidea
privacyidea: /usr/lib/privacyidea /etc/privacyidea
#and as you can see the privacyidea directory hasn’t got the directory
(privacyIDEA)[ec2-user@ip-172-31-23-75 privacyIDEA]$ ls
bin include lib lib64 requirements.txt
I appreciate all the help, it’s very kind of you and I’m sorry, I feel
that I am being annoying … I am just a bit anxious to get this
project done.
I don’t have much experience in this area and when I follow the HowTo
and yet I get stuck it’s a bit frustrating!
Many Thanks
Andrei
On Monday, November 16, 2015 at 2:51:22 PM UTC, Cornelius Kölbel wrote:
Did you enter the virtualenv when running pip install?
What does the directory /opt/privacyIDEA/etc/privacyidea look
like?
Does a directory /etc/privacyidea exist?
Probably you ran
pip install privacyidea
outside your python virtualenv.
You need to enter the virtualenv via
source /opt/privacyIDEA/bin/activate
and then you need to run
pip install privacyidea
Then there will be a file in this directory.
Kind regards
Cornelius
Am Montag, den 16.11.2015, 05:54 -0800 schrieb Andrei Burn:
> Hi thank you for the prompt reply!
>
>
> here is my RHEL version
> My progress so far and the Error that I am getting...
Everything
> worked perfectly till this point.
>
>
> Red Hat Enterprise Linux Server release 7.1 (Maipo)
>
>
>
>
> privacyIDEA Apache config
>
>
> mkdir -p /var/run/wsgi
> cp /etc/privacyidea/privacyideaapp.wsgi /etc/privacyidea
>
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf.disabled
>
>
> ERROR:
>
>
> (privacyIDEA)[ec2-user@ip-172-31-25-216 privacyIDEA]$ sudo
mkdir
> -p /var/run/wsgi
>
> (privacyIDEA)[ec2-user@ip-172-31-25-216 privacyIDEA]$ sudo
>
cp /opt/privacyIDEA/etc/privacyidea/privacyideaapp.wsgi /etc/privacyidea
>
> cp: cannot stat
> ‘/opt/privacyIDEA/etc/privacyidea/privacyideaapp.wsgi’: No
such file
> or directory
>
>
>
>
>
> On Monday, November 16, 2015 at 11:54:58 AM UTC, Andrei Burn wrote:
> Hi there, I am trying to install and configure
PrivacyIdea and
> FreeRADIUS in a RedHat AWS instance... I would like
to know if
> the installation differs too much from the CentOS
> documentation available at the moment, because I am
having few
> issues following the current howTo!
>
>
> Many thanks!
> --
> You received this message because you are subscribed to the
Google
> Groups "privacyidea" group.
> To unsubscribe from this group and stop receiving emails
from it, send
> an email to privacyidea...@googlegroups.com.
> To post to this group, send email to
priva...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/privacyidea/37baa0d0-6895-4ca0-9307-4f47c766933e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
Cornelius Kölbel
corneliu...@netknights.it
+49 151 2960 1417
NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798
Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel
–
You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/47a4d0a2-a6de-4d23-9c0a-5de877275e10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
–
Cornelius Kölbel
@cornelinux
+49 151 2960 1417
NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798
Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel
signature.asc (836 Bytes)