LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-24-2011, 02:43 AM   #1
alicemarcot
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
Redhat PHP gcc path problem


I am calling gcc through PHP by means of exec command. Then gcc gives weird errors such as "stddef.h cannot be found".

PHP is running under username "oracle". That is, when we call "whoami" through a PHP script by means of "exec", it gives oracle as the username.

We can easily call gcc without error on the terminal.

We can call "sudo -u oracle gcc source.c" without any error.

So it is very weird to me. Any ideas???
 
Old 12-24-2011, 03:51 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
gcc should not be still installed on a server ( unless setting it up ) and most defiantly should not be accessible through a web interface PHP cgi script .

you should be using ssh on a remote login

now seeing as this is Red Hat have you searched the RHN knowledge base ?
https://access.redhat.com/knowledge/search
you will need to login to your RHN account to access the docs
 
Old 12-24-2011, 04:10 AM   #3
alicemarcot
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
my friend if you don't have any idea why are you answering? Whats the point? And "should not" is none of your business. May be I SHOULD. How do you know may be it is really necessary.
 
Old 12-24-2011, 08:39 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
there is still on useful information
( assuming that RHEL's default Apache is used to serve up the *.php pages )
Is this a Oracle "unbreakable Linux " or is it RHEL 5 or 6 running a Oracle DB
both Oracle and red hat are not free you must have a paid for support contract

also
having the default DB user "Oracle" be able to BUILD software from a web interface ( can you say SQL injection ) is not good idea

Have you set Apache to allow cgi ?
have you set up the server TO allow that user to access the OS root dir "/" ( never a good idea)
 
  


Reply



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
gcc path in redhat linux driabtsev Linux - Newbie 1 08-07-2009 02:04 PM
redhat gcc compile error - no acceptable cc in $PATH matlaw Linux - Software 4 08-13-2007 05:53 PM
Squerril mail login.php path problem tkmuthuvel Linux - Networking 1 10-13-2005 10:26 PM
path to PHP src directory in RedHat 9? robert_speer Red Hat 0 08-03-2005 02:06 PM
gcc path problem lonzilla1969 Linux - Newbie 2 09-09-2003 02:23 PM

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

All times are GMT -5. The time now is 07:46 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
Open Source Consulting | Domain Registration