Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: seabro on November 19, 2006, 10:37:54 PM

Title: SME / Virtuamart / Joomla / tmp problem
Post by: seabro on November 19, 2006, 10:37:54 PM
Hi,

I have been struggling for hours trying to work this one out and having read pages and pages of this site and others, I learned the following.

Hopefully, this will help any others trying to get joomla / virtuamart and SME to work.

When I installed joomla/virtuamart I was 'warned' /tmp was not writeable.  So I used CHMOD 777 /tmp. This did not work.

Eventually, the following did work.

[root@e-smith ]# /sbin/e-smith/db accounts setprop youribayname PHPBaseDir /home/e-smith/files/ibays/youribayname/:/tmp/

[root@e-smith ]# /sbin/e-smith/signal-event ibay-modify youribayname

This will allow PHP to write to your /tmp directory.

I hope this helps,

seabro
Title: Re: SME / Virtuamart / Joomla / tmp problem
Post by: judgej on November 22, 2006, 01:00:41 AM
This comes up over and over - *don't* open up /tmp for access to PHP. *do* fix the applications that are trying to read and write /tmp

This page explains it all:

http://us2.php.net/manual/en/function.move-uploaded-file.php

*do* raise this requirement as a bug with Joomla/phprojekt/virtuamart/etc.

-- JJ
Title: SME / Virtuamart / Joomla / tmp problem
Post by: jjcuk on December 09, 2006, 09:13:06 PM
Thanks Sean  that worked
Title: SME / Virtuamart / Joomla / tmp problem
Post by: Rien on December 12, 2006, 01:44:11 AM
Hi,

I did the following:

Code: [Select]
/sbin/e-smith/db accounts setprop ibayname PHPBaseDir /home/e-smith/files/ibays/ibayname/:/tmp

/sbin/e-smith/signal-event ibay-modify ibayname


where "ibayname" is the name of the ibay.

I don't speak english very well. Can you explain why that's the wrong way?