PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 27th, 2003, 12:17 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 91
Send a message via AIM to shamrox
safe mode restriction errors

Please pardon my php ignorance, but I'm having a heck of a time getting everything to work smoothly. This is my first time installing any kind of php script, and just about done, except for these "SAFE MODE" errors. I've installed vbulletin, vbportal, and now photopost. I'm using a linux shared hosting account, running mysql 3.23.56, photopost pro v.4.

I can log into the admin portion of photopost ok, but for some reason, after creating a category, or making any kind of addition, I get a HUGE list of errors when accessing admin-index.php.

Here is an example of the errors (and it just goes on and on).
I'm looking everywhere for some kind of "safe mode" setting, but I can't find anything. Any suggestions??

Warning: SAFE MODE Restriction in effect. The script whose uid is 512 is not allowed to access /home/virtual/site10/fst/var/www/html/photopost/data//3001 owned by uid 48 in /home/virtual/site10/fst/var/www/html/photopost/adm-main.php on line 19

Warning: readdir(): supplied argument is not a valid Directory resource in /home/virtual/site10/fst/var/www/html/photopost/adm-main.php on line 21

Warning: SAFE MODE Restriction in effect. The script whose uid is 512 is not allowed to access /home/virtual/site10/fst/var/www/html/photopost/data//3001/ owned by uid 48 in /home/virtual/site10/fst/var/www/html/photopost/adm-main.php on line 19

Warning: readdir(): supplied argument is not a valid Directory resource in /home/virtual/site10/fst/var/www/html/photopost/adm-main.php on line 21

Warning: SAFE MODE Restriction in effect. The script whose uid is 512 is not allowed to access /home/virtual/site10/fst/var/www/html/photopost/data//3001// owned by uid 48 in /home/virtual/site10/fst/var/www/html/photopost/adm-main.php on line 19

Warning: readdir(): supplied argument is not a valid Directory resource in /home/virtual/site10/fst/var/www/html/photopost/adm-main.php on line 21
shamrox is offline   Reply With Quote
Old August 27th, 2003, 12:31 PM   #2 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
The requirements page of PhotoPost states that Safe Mode needs to be turned OFF to use PhotoPost.

This is because safe mode, by default, does not like users uploading files to a server and executing commands on the server.

In order to get Safe Mode to work, you have to configure PHP to allow file uploads and command execution.

Try doing a search, this has been discussed many times.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old August 27th, 2003, 07:33 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 91
Send a message via AIM to shamrox
Turning Safe Mode Off

I'm leasing a dedicated Linux server running Ensim Pro. Is there anyone out there that could provide basic (I mean neanderthal) type instructions on how to disable Safe Mode?

I've installed vbulletin, vbportal, and photopost pro successfully, this is the last thing holding me up. I've read the previous instructions provided on multiple posts in this forum, but they're very vague. I would call my ISP for instructions but they want an arm and a leg just to say hi.

Any instructions/suggestions would be greatly appreciated!

regards
Shaun
shamrox is offline   Reply With Quote
Old August 27th, 2003, 07:58 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Brazil
Posts: 427
Hi,

Since it's not safe to turn safe mode server wide... here's the instructions to turn it off in one site...

1. create a file called 'safemode'

2. the file needs to contain ' php_admin_value safe_mode Off '

3. place the file in /etc/httpd/conf/site[n] directory.
(where site[n] is the site number of the domain)

4. Then restart the apache.

Here's the details:

Using SSH login as root, type

pico /etc/httpd/conf/siteX/safemode

where x is the number of the site

type
php_admin_value safe_mode Off

Hit control-x and y enter and y enter to save the file

restart apache:

/sbin/service httpd restart

Hope it helps.
GoMeS_k is offline   Reply With Quote
Old August 28th, 2003, 11:44 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 91
Send a message via AIM to shamrox
safe mode off locally using htaccess

Thanks for the tip! I spoke with a bud of mine that is really good w/ this stuff and he said he recommend I have someone from my ISP do that to be on the safe side.

I called up my ISP and they said the easiest and safest way to do disable safe mode locally was to use an .htaccess file.

I did a search on google, and it says to create a .htaccess file in the root directory with the following line:

php_flag safe_mode off

Has anyone heard of this? If so, is this the only line in the .htaccess file or is there more to it? What permission settings should I give it?

Any tips?
shamrox is offline   Reply With Quote
Old August 28th, 2003, 01:26 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 91
Send a message via AIM to shamrox
pico?

I connected to my box via ssh and tried those commands, but it says that "pico" is not a recognized command. Any suggestions?
shamrox is offline   Reply With Quote
Old August 28th, 2003, 02:17 PM   #7 (permalink)
donb
Guest
 
Posts: n/a
Re: safe mode off locally using htaccess

Quote:
Originally posted by shamrox
Thanks for the tip! I spoke with a bud of mine that is really good w/ this stuff and he said he recommend I have someone from my ISP do that to be on the safe side.

I called up my ISP and they said the easiest and safest way to do disable safe mode locally was to use an .htaccess file.

I did a search on google, and it says to create a .htaccess file in the root directory with the following line:

php_flag safe_mode off
That will take care of it nicely. Just create the file on your box, type in that line, upload, and you're done. Nothing else needed.
  Reply With Quote
Old August 28th, 2003, 04:41 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 91
Send a message via AIM to shamrox
htaccess in root dir to turn safe mode off

Ok there is a server root, site root, doc root... so many darn roots. Which "root directory" do I put this htaccess file in to turn safe mode off locally?

site root: /home/virtual/site10/fst
doc root: /home/virtual/site10/fst/var/www/html
server root: /etc/httpd


regards,
-one confused individual
shamrox is offline   Reply With Quote
Old August 28th, 2003, 04:52 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Brazil
Posts: 427
/etc/httpd/conf/sitewhereyouwantsafemodeoff
GoMeS_k is offline   Reply With Quote
Old August 28th, 2003, 05:15 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 91
Send a message via AIM to shamrox
Question Safe Mode off locally with htaccess

Ok, just to recap and make sure I don't severely mess things up, here are the instructions I have:

To turn safe mode off locally using .htaccess:

# create a text file with the line:

php_flag safe_mode off

# save it as .htaccess

# upload this file to

/etc/httpd/conf/siteX

Any need to restart apache?


Thank you everyone for your patience, I'm sure these posts will help out plenty more newbies in the future.
shamrox is offline   Reply With Quote
Old August 28th, 2003, 06:15 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Location: Brazil
Posts: 427
yep... do that and restart apache
GoMeS_k is offline   Reply With Quote
Old June 27th, 2004, 03:48 PM   #12 (permalink)
Registered User
 
Join Date: Jun 2004
Posts: 10
wow... That worked ! Took me 4 hours to finaly find a tip that worked
akvario is offline   Reply With Quote
Old September 3rd, 2004, 05:08 PM   #13 (permalink)
Junior Member
Verified Customer
 
Join Date: Sep 2004
Posts: 27
I did the above and still have these errors:

Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid is 503 is not allowed to access /home/virtual/site1/fst/var/www/html/photo_serv/data//502 owned by uid 48 in /home/virtual/site1/fst/var/www/html/photo_serv/adm-main.php on line 19

Warning: opendir(/home/virtual/site1/fst/var/www/html/photo_serv/data//502): failed to open dir: Success in /home/virtual/site1/fst/var/www/html/photo_serv/adm-main.php on line 19

Warning: readdir(): supplied argument is not a valid Directory resource in /home/virtual/site1/fst/var/www/html/photo_serv/adm-main.php on line 21

Warning: closedir(): supplied argument is not a valid Directory resource in /home/virtual/site1/fst/var/www/html/photo_serv/adm-main.php on line 29
ultimatebdmin is offline   Reply With Quote
Old April 8th, 2006, 11:02 AM   #14 (permalink)
Member
Verified Customer
 
Alfa1's Avatar
 
Join Date: Mar 2006
Posts: 249
I am interested in buying photopost, but can not turn on safe mode on the shared server. Since this is a pretty old thread I wonder if creating a .htaccess to turn safe mode off locally works. Would that create problems?
The above post was never answered.
Alfa1 is offline   Reply With Quote
Old April 8th, 2006, 11:55 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
There was no unanswered post here. Photopost pro does not work with safe mode on as is listed on our requirements page.

Michael's post here in this thread explains this wonderfully. You need safe mode off to run Photopost. The only way to turn off safe mode is either in the php.ini file or the apache config file where it is turned on at and set it to off and restart the server.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 8th, 2006, 01:25 PM   #16 (permalink)
Member
Verified Customer
 
Alfa1's Avatar
 
Join Date: Mar 2006
Posts: 249
If I turn off php safe mode through the .htaccess file by adding:
php_flag safe_mode off

how do i check if this works and if php safe mode is really turned off?

Last edited by Alfa1; April 8th, 2006 at 01:30 PM.
Alfa1 is offline   Reply With Quote
Old April 8th, 2006, 02:57 PM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Place a phpinfo.php file on your site and see if safe mode is off

You can get the file on our requirements page which is linked off our main page on the site.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Safe Mode Gliderstyle Classifieds Installation & Upgrades 1 October 25th, 2005 10:01 AM
SAFE MODE Restriction in effect ultimatebdmin Photopost Pro Installation & Upgrades 11 June 29th, 2005 02:01 PM
Safe Mode Question WB General Discussion 5 February 8th, 2005 02:58 PM
Safe Mode Michael Blake Before You Buy 2 September 20th, 2004 06:26 AM


All times are GMT -5. The time now is 01:52 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0