Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 02:20 am EST

Geeklog Forums

register_globals Help Newbie


anonymous

Anonymous
I've changed my php.ini file to "register_globals" to On but geeklog installer still says they are OFF. I did a search for other php.ini files - none found. I did find a file "php.ini-recommended" in the same location as my php.ini file. This file seems to be a duplicate so I changed "register_globals" to On. Geeklog installer still says they are OFF. I want to use Geeklog but can go no further. Please Help,Thanks
 Quote

Status: offline

DTrumbower

Forum User
Moderator
Registered: 01/08/03
Posts: 507
Did you restart your web server?
 Quote

anonymous

Anonymous
Oops I forgot to mention, I did restart the web serrver.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
In your browser, call up http://(yoursite)/admin/install/info.php

This will display the current PHP configuration. The first block will also list the location of the php.ini file - make sure it is that file that you changed.

bye, Dirk
 Quote

anonymous

Anonymous
I have checked the PHP configuration file and did edit the correct php.ini file. I even re-downloaded geeklog 1.3.8-1 and replaced the installer and tried a new php.ini file in case they might have been corrupt.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I have yet to see a case where the installation script was wrong. Or, in other words: As long as the install script says register_globals is off, then it's really off. The info.php script should tell you the same thing (somewhere further down the page it lists the status of register_globals).

If you can rule out the typical problems (editing the wrong file, forgetting to restart the webserver) there's the not-so-typical case that you have a .htaccess file somewhere in your webserver's directory that switches register_globals off again. Or a similar entry in your webservers httpd.conf (assuming Apache in both cases).

bye, Dirk
 Quote

anonymous

Anonymous
The info.php says they are off but php.ini they are on. I could find no .htaccess files and httpd.conf did not contain register_globals. I am using the apache included with mac osx.
thanks all
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by anonymous: I am using the apache included with mac osx.

The PHP included with MacOS X doesn't have a php.ini per default. Did you copy yours to the place listed in the info.php output? If so, make sure it has permissions such that Apache can read it.

Mine (MacOS X 10.2.8, but with my own install of PHP 4.3.3) looks like this:
Text Formatted Code
dirk@terra:darwin> ll /usr/local/lib/php.ini
-rw-r--r--  1 root  wheel  38274 Sep 29 21:17 /usr/local/lib/php.ini

bye, Dirk
 Quote

anonymous

Anonymous
(Quote by: Dirk) The PHP included with MacOS X doesn't have a php.ini per default. Did you copy yours to the place listed in the info.php output?

Yes the php.ini is located in the place listed in the info.php output.

I have installed PHP 4.3.3 r2 using Mark Liyanges package.
MacOS X 10.2.6

I have changed the permissions of php.ini to:
[Computer:local/php/lib] ls -la php.ini
-rw-r--r-- 1 root wheel 39501 Oct 2 13:35 php.ini

but info.php still says register_globals = off. I did restart apache.

It does seem like some other file is overiding php.ini like you mentioned earlier.
I have noticed other directives in info.php that do not match php.ini.
thanks for all the help!
 Quote

Yukon

Anonymous
Make sure you edited the uncommented line.
There are register_globals is in there twice, one's a comment, one is the code. The one with the semicolon is not the one to change.
Wink
 Quote

Status: offline

dewdoo

Forum User
Chatty
Registered: 01/03/04
Posts: 65
Just wondering are you using OS X Server or the client OS X?
 Quote

All times are EST. The time is now 02:20 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content