 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
August 27th, 2003, 11:17 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 91
| 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
|
| |
August 27th, 2003, 11:31 AM
|
#2 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
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. |
| |
August 27th, 2003, 06:33 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 91
| 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
|
| |
August 27th, 2003, 06: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.
|
| |
August 28th, 2003, 10:44 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 91
| 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?
|
| |
August 28th, 2003, 12:26 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 91
| pico?
I connected to my box via ssh and tried those commands, but it says that "pico" is not a recognized command. Any suggestions?
|
| |
August 28th, 2003, 01:17 PM
|
#7 (permalink)
| | Guest | 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.
| |
| |
August 28th, 2003, 03:41 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 91
| 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
|
| |
August 28th, 2003, 03:52 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Apr 2002 Location: Brazil
Posts: 427
|
/etc/httpd/conf/sitewhereyouwantsafemodeoff
|
| |
August 28th, 2003, 04:15 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 91
| 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. |
| |
August 28th, 2003, 05:15 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Apr 2002 Location: Brazil
Posts: 427
|
yep... do that and restart apache |
| |
June 27th, 2004, 02: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 |
| |
September 3rd, 2004, 04: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
|
| |
April 8th, 2006, 10:02 AM
|
#14 (permalink)
| | Member
Join Date: Mar 2006
Posts: 279
|
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.
|
| |
April 8th, 2006, 10:55 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
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.
|
| |
April 8th, 2006, 12:25 PM
|
#16 (permalink)
| | Member
Join Date: Mar 2006
Posts: 279
|
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 12:30 PM.
|
| |
April 8th, 2006, 01:57 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,649
|
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Safe Mode | Gliderstyle | Classifieds Installation & Upgrades | 1 | October 25th, 2005 09:01 AM | | SAFE MODE Restriction in effect | ultimatebdmin | Photopost Pro Installation & Upgrades | 11 | June 29th, 2005 01:01 PM | | Safe Mode Question | WB | General Discussion | 5 | February 8th, 2005 01:58 PM | | Safe Mode | Michael Blake | Before You Buy | 2 | September 20th, 2004 05:26 AM | All times are GMT -5. The time now is 09:33 AM. | |