Koozali.org: home of the SME Server

phproject, file upload does not work at SME 6.01

arne2004

phproject, file upload does not work at SME 6.01
« on: May 20, 2004, 07:52:42 PM »
Hello !

I have used e-smith 5.6 with phproject 4.0 for a while. This have worked quite well. My experince is that all functions of phproject 4.0 will work if the phproject is installed in a subdirectory of the primary web directory, while it will not work proporly in a ibay. (File upload will not work.)

I am using a standard phpproject 4.0 not one that has been modified for the sme server.

After I made a ipgrade from the 5.6 to the newest verson of SME server, I ran into the proble again.

I am now with the new SME version not able to make the file upload function to work in any way to any directory. I have wondered if it should have something to do with ovnership or user rights, but I have not been able to solve the problem.

Any ideas ??!!

By the way, this is the error message:

Oops! Something went wrong ...
Please check whether the file exists in the upload directory
(Maybe the webserver is not allowed to copy the file from the tmp dir into the upload dir)
and the variable dat_rel in the config has the correct value.

Best reg Arne.

arne2004

phproject, file upload does not work at SME 6.01
« Reply #1 on: May 20, 2004, 08:11:05 PM »
To clarify: The file pload function worked in a subdirectory of the primary web dir but not on a ibay on e-smith 5.6 On the SME 6.01 I have not been able to make the upload function to work at all.

I wonder if this situation described in the FAQ could have something to do with the problem, but I do not understand the problem well enough at the moment to make the neccesarry corrections.

http://www.e-smith.org/faq.php3#6q12

bobk

phproject, file upload does not work at SME 6.01
« Reply #2 on: May 21, 2004, 12:41:20 AM »
In 6.x 'primary' has been moved to an 'ibay' so you will need to set the PHP Base Directory as described in the FAQ. Try
Code: [Select]
/sbin/e-smith/db accounts setprop Primary PHPBaseDir /home/e-smith/files/ibays/    
/sbin/e-smith/signal-event ibay-modify Primary

arne2004

phproject, file upload does not work at SME 6.01
« Reply #3 on: May 21, 2004, 03:06:50 AM »
Hello bobk !

Thanks for your suggestion. I tried it, but it did not help. The error msg is still among other: "(Maybe the webserver is not allowed to copy the file from the tmp dir into the upload dir)"

I have tried to look into the php.ini and the httpd.conf file, but I have not found any information that I believe can explain why the file upload function will not work. (But it could perfectly well be just that I am not understanding what I am reading.)

Any other suggestions ?

Best reg Arne.

Anonymous

phproject, file upload does not work at SME 6.01
« Reply #4 on: May 21, 2004, 04:14:52 AM »
Strange .. If I give the file a password it is possible to make a upload. On the oher hand, when I give it a password, I am not able to open it again.

So it is possible ti upload a file with a password that can not be opened (or downloaded back again) or if you try to do it without a password, no loadup takes place at all. (The only thing you are able to do with the uploaded file is to delete it, nothing else.)

It seems to be some strange incompability between some security featurs of the sme server and phproject ..

Arne.