View Full Version : PHP settings or directives
Paulo
05-31-2005, 06:26 PM
I am trying to install Gallery on an IRM, Gallery has included an install config and check wizard that I can not seem to get to run, in going over their config settings I have this check to do; I can not seem to find or access these directives no matter what and where I look, Please tell me where these directives are? I have tried and now I desperitly need help. Where are they?
Settings
In addition to just a PHP installation, Gallery requires certain PHP directives or settings to be set a certain way. In most cases, Gallery will run under default settings, but if you host has changed some directives, it can affect the way Gallery runs.
To check the status of your PHP settings, navigate to http://www.example.com/gallery/setup/phpinfo.php, where http://www.example.com/gallery is where you have uncompressed Gallery. Search for the following directives and make sure they are set appropriately.
safe_mode - Safe mode must be disabled
disable_functions - exec() must not be listed in PHP's disable_functions directive
file_uploads - File uploads must be enabled (set to 'On')
If any of those conditions are not met, Gallery will not work on your host
sheila
05-31-2005, 06:38 PM
To check the status of your PHP settings, navigate to http://www.example.com/gallery/setup/phpinfo.php, where http://www.example.com/gallery is where you have uncompressed Gallery. Search for the following directives and make sure they are set appropriately.
safe_mode - Safe mode must be disabled
disable_functions - exec() must not be listed in PHP's disable_functions directive
file_uploads - File uploads must be enabled (set to 'On')
If any of those conditions are not met, Gallery will not work on your hostPaulo,
FutureQuest meets all of the above requirements. You don't need to check these settings. Go ahead and proceed with the installation.
sheila
05-31-2005, 06:39 PM
P.S. If you want to check these settings for yourself, go to your CNC, click "Server Info" and then scroll down to the PHP Info link. Click there. Search that page for the settings that you need to find.
Paulo
05-31-2005, 06:49 PM
Hi Sheila,
Thank you so much.
What about this,
Gallery requires some files and directories to be set writable by the web server. If you are unsure of how to chmod files, see information listed at http://www.eclecticpixels.com/tutorials/chmod/. Chmod as follows:
chmod 777 albums (this is the album dir created in step 2)
chmod 666 .htaccess
chmod 666 config.php
chmod 755 setup/ (setup/ is a directory)
Shelia there is NO 666 mode??
sheila
05-31-2005, 06:53 PM
Because of FutureQuest's exclusive Secure Mode(TM) (http://www.FutureQuest.net/Services/Features/#SecureMode), your PHP scripts run under your userID.
Most of those file permissions are not necessary at FutureQuest.
Your directories do need to be 755. Other than that, the rest of the settings should be the default upon upload.
.htaccess is 644
config.php 644
albums 755
at least, that's how the Gallery on my web site is set up, and works fine. ;)
sheila
05-31-2005, 06:54 PM
Paulo, have you seen this thread?
http://www.aota.net/forums/showthread.php?t=14372&highlight=install%2A+gallery
Although, as I recall, Gallery is even easier to install now. Just upload the files and run their install wizard and it simply works???
Paulo
05-31-2005, 06:59 PM
Have I told you that you are Wonderful.
Thanks again, and I am sorry to be a pest, but this all started when I try to run the wizard on this path,
It will not start, I get a 404 Not Found page, and when I try a
http://www.clnews.org/justicepeace/gallery/setup/index.php
I still get a 404 file not found page.
Do you have any suggestions?
Paulo
05-31-2005, 07:01 PM
I left out the url for the IRM
http://www.justicepeace.org/gallery/setup/index.php
Neither one will fire up the Widzard
Paulo
05-31-2005, 07:07 PM
Oh my God, I did not know that it was there. I will go over it and see how things go right after supper.
Thanks again.
sheila
05-31-2005, 07:12 PM
Paulo, I took a quick look at the files in your account, and I do not see any directory called
gallery
under your
/www/justicepeace
directory
???
So, it would make complete sense that you are getting a 404 because the file path that corresponds to the URLs you provided simply does not exist.
Where exactly did you put the gallery files in your account? Go into the File Manager in your CNC and find the gallery files and copy and paste the file path into a reply here so that we can see where you have put those files?
Paulo
05-31-2005, 08:17 PM
Well I see it in my CNC file manager, /big/dom/xclnews/justicepeace/gallery
I FTP it with IPS witch WS_ftp, so I do not know why you and Gallery can not find it? Any more suggestions please?
sheila
05-31-2005, 08:25 PM
/big/dom/xclnews/justicepeace/gallery
Ah, well, now that you tell me where it is, yes, I see it there now.
But that location won't work.
It needs to be inside of your /www folder.
Specifically:
/big/dom/xclnews/www/justicepeace/gallery
You created the directories outside of your /www folder, and that won't be web accessible, then (so you can't get to it by browser, there).
Paulo
05-31-2005, 08:29 PM
OK Good and Thanks, so do I use my CNC or my Dreamweaver to move the folder. It is a rather full of stuff,I already have three folder of inages in there, what is the best method to move the files, could the move be possible with IPS Witch even?
Paulo
05-31-2005, 08:41 PM
I just noticed something, do you wish me to move the justicepeace directory as well? You wrote;
Specifically:
/big/dom/xclnews/www/justicepeace/gallery
If I do that will it ruin the paths that I have in the directory justicepeace?
Sorry for being so newbie about this, Thanks
sheila
05-31-2005, 08:45 PM
Last I looked, you already had a /justicepeace directory inside your /www directory. You just didn't have a /gallery directory inside of that.
I would move the gallery directory into the already existing
/big/dom/xclnews/www/justicepeace
directory
and afterwards, delete the directory
/big/dom/xclnews/justicepeace
unless you have some other reason for using that directory? Normally, for regular IRM type stuff, that directory would not be necessary.
Paulo
05-31-2005, 09:01 PM
YEA, Did I tell you that you are perfect.
I moved the folder with CNC scary as I never did that befor and then tried the Wizard and guess what it works too. BUT the wizard says,
ONE:
The PHP option 'register_globals' is enabled on your server. Gallery highly recommends that you disable 'register_globals' unless it is required by software on your site. Gallery does not officially support 'register_globals' being enabled, and will attempt to disable it internally.
DO I need to fix or not to worry about globals?
Thanks for your patience.
Paulo
05-31-2005, 10:19 PM
Hi Shelia,
Well I got through the Gallery setup Wizard, and it shows these problems in RED;
// Error: Directory /big/dom/xclnews/www/albums does not exist. Please create it.
// Error: Directory /big/dom/xclnews/www/albums_tmp does not exist. Please create it.
The above paths are not right as they do not recognize the IRM directory justicepeace, which is where the album directory is, Should I ignore this above warning?
Also when I FTP the application to the justicepeace directory I also created and uploaded the directory albums and uploaded there image directories into albums. Now the Wizard says that the albums directory should be empty, should I delete those three images directories?
sheila
06-01-2005, 02:15 AM
Regarding the register globals issue:
http://www.aota.net/forums/showthread.php?t=18927&highlight=register_globals
// Error: Directory /big/dom/xclnews/www/albums does not exist. Please create it.
// Error: Directory /big/dom/xclnews/www/albums_tmp does not exist. Please create it.
I would think those would be important, non-ignorable errors.
If this is not where you expect the albums to be stored, then I would look at the paths you provided during the Wizard set up. Run through the Wizard again and note anywhere you have entered paths, such as for the albums or whathaveyou.
One of the paths you gave it must be what is causing the script to look for the album folders in the above places?
It is important that the album folders exist where gallery expects to find them, as I do not believe the script can function properly otherwise.
As to your other questions...I would suggest asking at the gallery support forums.
http://gallery.menalto.com/modules.php?op=modload&name=PNphpBB2&file=index
I'm not really a gallery specialist, so don't really know what to advise in that regard...
Paulo
06-01-2005, 02:32 AM
Hi Shelia,
Yea! I got Gallery to work, kept going through the Wizard untill there were no RED letters.
Check out my friends at
http://www.justicepeace.org/gallery/Name-Iraqi-War-Dead
Thanks for holding my virtual hand and leading me through this. You Rock!
sheila
06-01-2005, 02:42 AM
Good deal.
:yeah:
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.