I am installing a gallery script and my server has safe mode on so I get error msgs. I was told you can go into the php.ini file and make modifications.
Where do I find this file? Is it on the server and where?
thanks for the help
| SitePoint Sponsor |


I am installing a gallery script and my server has safe mode on so I get error msgs. I was told you can go into the php.ini file and make modifications.
Where do I find this file? Is it on the server and where?
thanks for the help





It's on the server /usr/local/lib/php.ini
If you're on a shared server, you more than likely will have to contact your host.
What is the image script having problems with?


Thank you for answering so quickly. I have a feeling you are right that I won't have access to it. I spoke to my host about it and they tell me php scripts written with safe mode off are just poor scripts.
Yet I have installed close to 50 gallery scripts and when you remove all the scripts with bugs and those that don't do what you want, I was left with 2 or 3 really good ones. The problem is they gave the same error msg every time you try to add categories and photos.
"safe mode restrictions in effect".





They are probably trying to create folders or something similar, which may be disabled on the server
What features do you need in your script? I use http://phpix.org/ and it works very well. It doesn't allow comments or anything like that though, just generates thumbnails and displays them.


The most important point is that it creates the thumbnails.
I don't need anything fancy. Just upload the images, create the thumbnails and show a page with the full size image.
I'll check out this script you recommended.





Yep, all you do with that script is transfer your large images directly into a folder, and it does the rest![]()


Thanks so much Platinum. Believe it or not; with all the scripts Iooked at, I did not come across this one.
take care
You can put the following line in .htaccess as well.
Code:php_flag safe_mode off
You can't change safe mode's state using htaccess, it has to be done either in php.ini or httpd.conf .
http://www.php.net/manual/en/function.ini-set.php
Hmmm. My fault. I thought you could change that.
Aaron


Well I have installed phpix, not that there was a lot to install unles I am missing pieces. Anyway, when I look at the pages, they are just source code and not galleries or pics.
Any ideas?? Thx





Can you give me a link to the page?
You may have to rename the .phtml file to .php![]()





Use the script called "Gallery". I have safe mode on and it works fine.
Mike
It's not who I am underneath, but what I do that defines me.


Okay Platinum........I did that and it works but when you try to look at the sample gallery, it starts with the safe mode restrictions again and then other error msgs.
Since there were really no any install instructions, I was really guessing at what I should modify


Its funny Naramation. That ws the script I started with 2 months ago but assumed it wouldn't work with safe mode restrictions





Been running 4 different copies on 3 different sites on my server, with safe mode and open base dir restrictions on, and it works just fine
![]()
Mike
It's not who I am underneath, but what I do that defines me.


Naramation......did you install it in the cgi-bin like the instructions on the website or did you just do the regular install?





I didn;t know it could even be in the CGI-BIN
I just have it in a normal directory.
Mike
It's not who I am underneath, but what I do that defines me.


Well apparently, there are instructions to put it into the cgi-bin to avoid the safe mode restrictions problem.
I was reading that section last night but I didn't start installing yet because I was trying to decide which way would be easier.


SORRY...didn't realize I made two posts
I took care of the double post. Is gallery a Perl script?





It's all PHP. http://gallery.sourceforge.net/
Mike
It's not who I am underneath, but what I do that defines me.





I like gallery too because it allows a desktop cient to update the gallery, which in some cases is easier for clients.
http://sourceforge.net/project/showf...?group_id=7130
Mike
It's not who I am underneath, but what I do that defines me.


I'm back again. I detemined to get something installed and working.
It says to make a ".htaccess" file but it never goes on my server. I made an empty file named "config.php" and it goes on okay but the other file doesn't show on the server.
Is this normal?
thx again everyone who has been helping me


Also, Naramation, when I use the gallery wizard to check the system, it find php okay but has a serious warning about the safe mode issue. Did you just ignore that?
Bookmarks