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
11
14
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
Did you restart your web server?
10
10
Quote
anonymous
Anonymous
Oops I forgot to mention, I did restart the web serrver.
7
6
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
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
6
11
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.
7
13
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
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
6
10
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
thanks all
12
8
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
8
10
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!
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!
9
8
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.
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.
13
12
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