LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 03-16-2008, 09:37 PM   #1
nyheat
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 75

Rep: Reputation: 15
How to run PHP and Apache as root?


How do I set PHP and Apache to run under root?
This is a local test server so security is not an issue.
 
Old 03-16-2008, 11:38 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,021

Rep: Reputation: 125Reputation: 125
You could try modifying Apache's httpd.conf file - the entries for User and Group would be the ones to change.

Since it's not something you'd do in a production environment, is there something specific you're testing for that someone here might be able to help with?
 
Old 03-16-2008, 11:43 PM   #3
nyheat
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gilead View Post
You could try modifying Apache's httpd.conf file - the entries for User and Group would be the ones to change.
Apache threw an error requesting I add "-DBIG_SECURITY_HOLE to the CFLAGS env variable"

How would I go about doing that?
 
Old 03-16-2008, 11:55 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,021

Rep: Reputation: 125Reputation: 125
When you're compiling the Apache sources you can pass flags to the compiler - the configure script should let you set it up. In your Apache sources directory run ./configure --help | less and search for CFLAGS.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run PHP shell_exec as root maneeshsethi Linux - General 5 12-30-2008 07:25 AM
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
How to run PHP on Apache? impulse() Linux - Software 2 05-23-2006 02:03 PM
How to run php as root user ??? taqs Programming 2 09-01-2004 05:11 AM
help getting pptp-php-gtk.php to run as root mrtwice Linux - Software 0 11-21-2003 12:49 PM


All times are GMT -5. The time now is 05:55 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration