LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2003, 02:39 PM   #1
player_2
Member
 
Registered: Aug 2003
Posts: 57

Rep: Reputation: 15
Question Setting environment variables for "nobody"


I have a PHP script that runs as an Apache2 module, and uses the VeriSign PayFlow Pro library to process credit card transactions. The PayFlow Pro library needs the environment variable PFPRO_CERT_PATH set. I tried using Apache SetEnv directives, but later found out that SetEnv is used for setting HTTP environment variables, not OS environment variables. So currently I am stuck with allowing access to PFPRO_ environment variables (PHP is running in safe mode) and calling putenv() before using the functions. I don't want to do that.

In short, I need to set an environment variable for the "nobody" user. How do I do that?

[edit]

Apparently adding the following to /etc/profile helped:
Code:
PFPRO_CERT_PATH=/usr/local/verisign/payflowpro/linux/certs
export PFPRO_CERT_PATH
I su'd to nobody and typed "env |grep PF_", and PFPRO_CERT_PATH was set to the proper value. I then restarted Apache and everything was fine.

Sorry to clutter the BB!

Last edited by player_2; 09-02-2003 at 02:56 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Environment variables setting... simjii SUSE / openSUSE 4 11-19-2005 08:50 PM
Need help setting environment variables. cottonmouth Linux - Newbie 3 12-09-2004 05:54 PM
Setting Environment Variables farzan Linux - Newbie 2 08-07-2004 10:13 AM
setting environment variables rezza Linux - Distributions 2 04-09-2003 09:21 AM
Quesiton about "FIREWALL setting" in "SETUP"--please help out yuzuohong Linux - Networking 1 05-15-2002 12:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration