Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Paul Wolsink on August 22, 2002, 03:10:45 PM
-
Good day to you all
I've got a problem where I'm battleing to get an upload by browser function to work.
I'm not sure whether it is related to PHP or Write rights or other reasons.
What I have is a 5.1.2 e-smith server basically standard with ibays.
I have a PHP application with mySQL database and it works great.
I created an upload module where users can upload Images for items for sale.
On my development system it works 100%, on e-smith it doesn't and I don't get an error either.
If I FTP into the server, I cannot upload a file either and I also don't get an error ie. Forbidden access or what ever.
My conclusion is therefore that it is most likely Write access rights, but I cannot get it to work.
I presume the user who need access is www and it is in the admin group.
Reading/searching in these forums doesn't help. I tried the bits and pieces of info, but to no avail.
I tried to add user www to a group and to then in Server-Manager to let it have Write access, but doens't seem to work.
I tried chmod and chown
ie. chown -R www.admin html/images
I only want the users to upload via browser and not FTP to make it as user friendly as possible.
Any advise?
regards
Paul
-
Paul Wolsink wrote:
>
> Good day to you all
> I've got a problem where I'm battleing to get an upload by
> browser function to work.
> I'm not sure whether it is related to PHP or Write rights or
> other reasons.
>
> What I have is a 5.1.2 e-smith server basically standard with
> ibays.
> I have a PHP application with mySQL database and it works
> great.
> I created an upload module where users can upload Images for
> items for sale.
> On my development system it works 100%, on e-smith it doesn't
> and I don't get an error either.
> If I FTP into the server, I cannot upload a file either and I
> also don't get an error ie. Forbidden access or what ever.
>
> My conclusion is therefore that it is most likely Write
> access rights, but I cannot get it to work.
> I presume the user who need access is www and it is in the
> admin group.
>
> Reading/searching in these forums doesn't help. I tried the
> bits and pieces of info, but to no avail.
> I tried to add user www to a group and to then in
> Server-Manager to let it have Write access, but doens't seem
> to work.
> I tried chmod and chown
> ie. chown -R www.admin html/images
try this:
[root@yourbox /html] # chown www:www -R images
>
> I only want the users to upload via browser and not FTP to
> make it as user friendly as possible.
>
> Any advise?
>
> regards
> Paul
-
Ruusvuu wrote:
> > I tried chmod and chown
> > ie. chown -R www.admin html/images
> try this:
> [root@yourbox /html] # chown www:www -R images
> >
> > I only want the users to upload via browser and not FTP to
> > make it as user friendly as possible.
> >
Nope, didn't work :-((
I also tried chmod 1777 images which give me drwxrwxrwt, but still no luck.
Paul
-
In the file /etc/php.ini ensure you have the following values set:
file_uploads = On
upload_tmp_dir = /tmp
upload_max_filesize = 5M (You may change this to whatever you need)
ALso ensure that upload_tmp_dir is writable by the user WWW.
Hope this helped,
Nathan
-
No, Also no luck....
I made a /tmpimage on your advise....
Rights on /tmpimage is drwxrwxrwt for user www
Could htaccess be of any help? It is off by default on SME server I think.
I don't think it is the answer as I want to open up as to close down access.
I've been reading about every message I could find in the forums, FAQ, docs, but cant find anything. BTW, my current ibay settings are:
Group=everyone
Write=group Read=everyone
regards
Paul
Nathan Fowler wrote:
>
> In the file /etc/php.ini ensure you have the following values
> set:
>
> file_uploads = On
> upload_tmp_dir = /tmp
> upload_max_filesize = 5M (You may change this to whatever you
> need)
>
>
> ALso ensure that upload_tmp_dir is writable by the user WWW.
>
> Hope this helped,
> Nathan
-
Try this
http://www.familybrown.org/howtos/gallery-howto.html
-
Hi there
Thanks for the advise. I did not install the Gallery, but copied the template parts, etc and created a new one for Upload ie 93upload.
It still didn't work.
I worked on this for 16 hours today already as well as previous days and will give it a try tomorrow again. I'm probably just overloooking something small, but what the heck, this way you learn the most!
regards
Paul
Dirk Jullens wrote:
>
> Try this
>
> http://www.familybrown.org/howtos/gallery-howto.html
-
Hi there
Should anyone be interested and thanks to those who gave advise, by upgrading to 5.5, this problem was solved!
thanks
Paul
Paul Wolsink wrote:
>
> Hi there
> Thanks for the advise. I did not install the Gallery, but
> copied the template parts, etc and created a new one for
> Upload ie 93upload.
>
> It still didn't work.
>
> I worked on this for 16 hours today already as well as
> previous days and will give it a try tomorrow again. I'm
> probably just overloooking something small, but what the
> heck, this way you learn the most!
>
> regards
> Paul
>
>
>
>
> Dirk Jullens wrote:
> >
> > Try this
> >
> > http://www.familybrown.org/howtos/gallery-howto.html