Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Linux Support Linux - Operating Systems and Applications Support

Reply
 
LinkBack Thread Tools
Old 05-16-2008, 12:06 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 20
OS: fedora8


Environmental Variables

How to set environment variables on RHEL 4.


I have configured Apache and Tomcat on my RHEL 4 machine.As per their instructions i have created some environment variabls in .bashrc file after created those variables both apache and tomcat working fine.When i logout and login the system it's ok there is no problem on both apache and tomcat whenever i restart the system both are not working again it was showing error messages.



pls help
ambavaram is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 05-19-2008, 08:44 PM   #2 (permalink)
Registered User
 
Join Date: Oct 2007
Location: Littleton, Colorado USA
Posts: 470
OS: xp 64 sp2 Fedora Core 8 (vmware xp core 8 x32) Minix


Re: Environmental Variables

You might put the environment variables into a file, then run the "source <file>'. Bash uses the source command as does the C-shell. I think for the sh-shell, the same thing is done with ". <file>". (It needs the dot). This is the ONLY way that you can set environment variables in the current running shell, since if you spawn a shell to run the <file>, the child's environment wouldn't set the parents. (Can't teach an old dog new tricks).

I think the real problem is which .bashrc's are being read by a login shell and later spawned shells. It sounds like from your description that the login shell is not executing the correct bashrc.

Also Selinux could be undoing your bashrc's. I've heard that it can do that. Look at the "restorecon" command. I turn off Selinux. I have been too lazy to learn its in and outs. And it seems to get in the way.
lensman3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 08:21 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85