Welcome to Geeklog, Anonymous Saturday, December 28 2024 @ 12:04 am EST
Geeklog Forums
php.ini in the admin directory?
Hi everybody
Some days ago I had to migrate a geeklog site from one hosting service to another. Ok, I've transfered all files and directories, imported the database and tried to open the site on the new host. I've experienced some problems of server configuration nature, but after some searching in the FAQ/Forums I've manage to fix them. One of the main problems was on the new server register_globals and safe_mode are Off. The support personel advised me to put a php.ini file with these settings in the site's root directory. This seems to solve some of the problems, but when I was logged as admin and tried to edit some story I've reached only to the post form without the text within it. When I tried to add a new story, I had a message with insufficient permisions. When I get to the admin panel, on the top there was a message my register_globals is off?! After some hours of headacke with this issue I've decided to put the php.ini file in the admin subdirectory. After this all problems disappeared.
My question to you is: Is this the proper solution? I mean do I cause some security risks when this php.ini file is in the admin directory? I'm asking because I've didn't read it somewhere, it dawns on me to try it.
Thanks for your time
Some days ago I had to migrate a geeklog site from one hosting service to another. Ok, I've transfered all files and directories, imported the database and tried to open the site on the new host. I've experienced some problems of server configuration nature, but after some searching in the FAQ/Forums I've manage to fix them. One of the main problems was on the new server register_globals and safe_mode are Off. The support personel advised me to put a php.ini file with these settings in the site's root directory. This seems to solve some of the problems, but when I was logged as admin and tried to edit some story I've reached only to the post form without the text within it. When I tried to add a new story, I had a message with insufficient permisions. When I get to the admin panel, on the top there was a message my register_globals is off?! After some hours of headacke with this issue I've decided to put the php.ini file in the admin subdirectory. After this all problems disappeared.
My question to you is: Is this the proper solution? I mean do I cause some security risks when this php.ini file is in the admin directory? I'm asking because I've didn't read it somewhere, it dawns on me to try it.
Thanks for your time
2
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sounds like you would have to copy the php.ini to all your directories (i.e. all that contain .php files).
However, it seems like you are running an old version of Geeklog. Geeklog 1.4.0 and later don't require register_globals to be on, so maybe upgrading your Geeklog install would be the easier option.
Caveat: Some older plugins still require register_globals to be on.
bye, Dirk
However, it seems like you are running an old version of Geeklog. Geeklog 1.4.0 and later don't require register_globals to be on, so maybe upgrading your Geeklog install would be the easier option.
Caveat: Some older plugins still require register_globals to be on.
bye, Dirk
4
7
Quote
Status: offline
hj4ck3r
Forum User
Newbie
Registered: 02/27/07
Posts: 2
Not at all, I have the same php.ini file only in the siteroot directory and in the admin subdirectory. After putting it in the admin dir I have no problem with the site and I think it is enough to be in these two dirs.
About the upgrade - I've read it is good idea to upgrade when migrate, but the old version is modified for some custom needs and I have no time right now to modify the new version and I prefer to keep the old for now.
So, I can run the site this way, right?
And thanks for the bliz answer
P.S. My version is: Geeklog 1.3.9sr1
About the upgrade - I've read it is good idea to upgrade when migrate, but the old version is modified for some custom needs and I have no time right now to modify the new version and I prefer to keep the old for now.
So, I can run the site this way, right?
And thanks for the bliz answer
P.S. My version is: Geeklog 1.3.9sr1
3
6
Quote
All times are EST. The time is now 12:04 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