Welcome to Geeklog Tuesday, August 20 2019 @ 01:10 pm EDT

Geeklog Forums

Custom php.ini question


Status: offline

elect

Forum User
Chatty
Registered: 23/10/04
Posts: 37
My webhost recently changed their server's php.ini files so that register_globals is set to "off", but they're allowing us to do our own customer php.ini files. I've made one, and have placed it in my document root but I'm not sure how to tell GL to point to it instead of the php.ini on the server.

Assistance would be appreciated. Thanks!

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
There's nothing Geeklog can do - this is entirely up to the server setup.

If that's what customer support told you to do, then it will probably work. Log into Geeklog, go to the "Submissions" page (admin/moderation.php) and see if the note about register_globals being off shows up or not.

If it still does, ask your hosting service's support for help.

bye, Dirk

elect

Anonymous
Quote by Dirk: There's nothing Geeklog can do - this is entirely up to the server setup.

If that's what customer support told you to do, then it will probably work. Log into Geeklog, go to the "Submissions" page (admin/moderation.php) and see if the note about register_globals being off shows up or not.

If it still does, ask your hosting service's support for help.

bye, Dirk
Yep, the message shows up that the variable is set to off.

Geeklog is getting it's information on where the php.ini file is located from somewhere, right? I know GL can't change what my host's server has done, but is there really no way to tell GL to look for php.ini in my document root vs. looking for it in the server's normal path setting?

I have done the custom php.ini file and put it where my host told me to put it - but I have to be able to point GL to that file, like I've been able to do with other apps I have running - or GL won't work.

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
It's not Geeklog that needs to know about the php.ini, it's PHP.

Quote by elect: but I have to be able to point GL to that file, like I've been able to do with other apps I have running

How did you do that with the other apps?

bye, Dirk

Status: offline

ajzz

Forum User
Regular Poster
Registered: 19/01/05
Posts: 113
You may need to do this using the .htaccess file in your web directory. Assuming your host has allowed you override of server parameters using .htaccess, this file would be used to set the include path for php.

You can find examples in the notes section of this php doc: http://php3.de/manual/en/function.set-include-path.php

In your case I am guessing the line in .htaccess would read something like:
php_value register_globals "on"

Cheers!

Ajay

elect

Anonymous
Quote by Dirk: How did you do that with the other apps?

bye, Dirk
They had places in their config files that allowed me to specify the location of php.ini. :/

I'll try the method ajzz just mentioned and update here with results.

Thanks.

All times are EDT. The time is now 01:10 pm.

  • 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