LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-12-2004, 03:24 PM   #1
Dexter750
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Rep: Reputation: 0
PHP on Fedora Core 2


Hey, this might be a silly question but im having a hell of a time trying to turn "register_globals" ON (I know the security issue...)

I have PHP and Apache2 installed (Fedora Core2) and my php.ini in /etc/

I can change certain things (like Y2k Compliance, just picking random things), but register_globals will NOT turn on, no matter what i do, or where i put php.ini. (im using vi to edit the ini )

also no matter what i do in the INI file it wont turn on
register_globals = On
-register_globals = On
register_globals = on
-register_globals = On

I restart apache every time i make a change and still nothing, I cant turn on display errors either. Does anyone know why this is happening? I appreciate any response as ive been fighting with this for a couple of days now
thanks!
 
Old 10-12-2004, 06:19 PM   #2
evilmrhenry
Member
 
Registered: Oct 2003
Distribution: Knoppix
Posts: 103

Rep: Reputation: 15
My php.ini file is /etc/php4/apache2/php.ini

The proper format seems to be:
register_globals = On
for the ini.

I would do a recursive find in /etc for php.ini, in case php's grabbing another one,
then a grep in /etc for php.ini to find any config files.
 
Old 10-14-2004, 03:23 PM   #3
Dexter750
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by evilmrhenry
My php.ini file is /etc/php4/apache2/php.ini

The proper format seems to be:
register_globals = On
for the ini.

I would do a recursive find in /etc for php.ini, in case php's grabbing another one,
then a grep in /etc for php.ini to find any config files.
Thanks for the response.
Code:
[dexter@testb0x etc]$ locate php.ini
/etc/php.ini
[dexter@testb0x etc]$
*shrugs*

Last edited by Dexter750; 10-14-2004 at 03:25 PM.
 
Old 10-14-2004, 03:35 PM   #4
Dexter750
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Original Poster
Rep: Reputation: 0
Okay, wow , I am dumb. Sorry for the thread, i finally went through and checked every line in php.ini. I thought registergloabals at the TOP of the file was the one to uncomment and use, then i read all of it and register globals is down in the middle and off. Sorry aagin and thanks for your time. it works now
 
  


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
Fedora Core 3 And PHP + Apache xbigs Fedora 1 12-17-2005 07:24 AM
Fedora Core 2 PHP 5 Installation bytebrowser Linux - Software 1 04-05-2005 12:49 AM
PHP Developing on Fedora Core 3 shimano55 Linux - Software 3 03-26-2005 02:25 AM
php mail() Fedora Core 3 splashjdk Linux - Newbie 2 01-18-2005 06:56 PM
Fedora Core 2 - PHP Problem Sloppyunderfoot Fedora 2 12-25-2004 07:36 AM

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

All times are GMT -5. The time now is 07:30 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