Web Hosting Talk







View Full Version : How to set php safe mode options?


hoot
06-02-2002, 05:37 PM
Hi, I hope someone here can help me, on the plesk and rackshacks forum I got no answers ! :(
I have got a cobalt raq4 and when I install phpmyadmin on any site I can upload a backup.sql file to backup a database but on my plesk 2.5 server with php 4.1.2 phpmyadmin just gives off alot of errors. It works when I copy the contents to the text box and press go but not when I show it the backup.sql file on my computer. Both sites on both servers are in safe mode buT I presume that the settings are different , what can I do to make it work?

Thanks,

hoot

hoot
06-02-2002, 06:01 PM
I found this in my php.ini file :
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

any ideas why phpmyadmin does not alow the backup.sql file to be run?

Scotty_B
06-02-2002, 06:16 PM
In the phpmyadmin directory create a folder called tmp and chmod it to 777 and it should work....

hoot
06-02-2002, 06:24 PM
It works !!! Thanks !

hoot
06-02-2002, 06:54 PM
Just another question ...
How can you get uploads to work?

For example, with ibboard forums( http://www.invisionboard.com) you have an option for users to upload files. Their is a directory called upload that you have to chmod to 777 but in safe mode you get "this server does not allow you to upload files please contact the server admin" when you try to upload avartars from your computer in the members area.

Any ideas how to get this to work?

Thanks

roly
06-03-2002, 04:40 AM
create a folder called tmp and chmod 777 in the ibforums dir

also chmod 777 /tmp and create it if it dun exist

hoot
06-03-2002, 05:16 AM
thanks it works too !!!