LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP on Fedora Core 2 (https://www.linuxquestions.org/questions/linux-software-2/php-on-fedora-core-2-a-241840/)

Dexter750 10-12-2004 03:24 PM

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!

evilmrhenry 10-12-2004 06:19 PM

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.

Dexter750 10-14-2004 03:23 PM

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*

Dexter750 10-14-2004 03:35 PM

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 :)


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