php tmp dir

a history of help:

in ehcp, php temprorary files are stored in each respective folder of domain for security reasons, not /var/lib/php5
in ehcp, this is like /var/www/vhosts/yourftp/
so, in upload script or whatever it is, choose upload dir as /var/www/vhosts/yourftp/ (replace yourftp with what name implies, and so

i must say that you are a good question asker, because you do everything you can do, then you ask your questions, thats why, i thank you..
some people do ask everythiing without even trying something..

if you need further help in php tmp issues, let me know..
see you

On Fri, Feb 27, 2009 at 3:04 PM, yyyyyy wrote:
> I have a much better grasp of how things work now. I have set up single domains under single users, multiple domains under a single user, db's, mail and FTP as well. I can login to phpmyadmin as root or as user use webmail as well as imap, have not tested pop yet but firmly believe it will work without fail, and used the easy install scripts including cms- joomla - 1.5.4, phpbb Forum script-3.02-tr & phpfreechat. I did have a problem with cms- joomla - 1.5.4. The menus were in a language I didn't understand so I chose to download the install file from the web, extract it, upload to my server via filezilla then installed all without a hitch. When testing joomla I attempted to install jpfchat so I could have a more seamless website. Long story short it didn't work possibly due to moo tools being used in joomla. Jpfchat's website specifically states that the joomla 1.5/jpfchat combination has the problems. After further reading I decided to test joomla 1.0 instead. I chose the download extract upload method but when trying to install I kept getting the following warning:
> Warning: is_writable() []: open_basedir restriction in effect. File(/var/lib/php5) is not within the allowed path(s):
> At this point I did a clean install of Ubuntu server with SSH and EHCP and decided to test the add an easy install script thinking maybe if this was performed on the server side instead of the user side it would install as planned. The adding of the script was very simple, but the same warning continued.
> After doing a ton of reading, testing multiple "fixes" not to mention beating my head against the wall repeatedly, I decided to contact you again. In almost every single case people with this problem are told to contact their host and ask them to make the path writable and if the host refuses, well it's then time to change hosts. I am the host and I have tried over and over again. Your help would be greatly appreciated. Thank you in advance for your time.
> yyyyyy
> bvidinli wrote:
> Your /etc/hosts is ok.
> sudo passwd root,
> su, then, passwd,
> "Enter new Unix passord",
> etc
> are all, only for changing root pass of ubuntu, which is unknown at
> installation of ubuntu.
> after changing root pass, you know that, and you can easily run
> commands after entering "su" command.
> Otherwise, you should do "sudo command" for every command you enter...
> To install ehcp, you should folow instructions at
> the link you said is also an explanation, but it is written by someone
> else, and a bit complex
> basicly,
> install ubuntu,
> then,
> sudo passwd (this only resets your root pass)
> then
> download ehcp
> extract it
> run
> thats all
> in Linux world, super user is root, what you call is Administrator;
> Administrator is on windows, and is meaningless in Linux,
> to install ehcp, you need to become root (superuser) by saying su, or,
> you may run as "sudo"
> hope this helps...
> i put this story in
> On Sun, Feb 8, 2009 at 6:12 PM, yyyyyy zzzzzz wrote:
> Hello,
> I am attempting to create my very first server ever. I eventually wish
> to host multiple websites for my close family. Please keep in mind I am an
> Ubuntu novice and server newb. I have clean installed Ubuntu server with SSH
> being the only installed package a number of times. This part has always
> installed flawlessly. The first couple of times I immediately installed
> EHCP. This resulted in no success. I'm not exactly sure why, but I assume
> that I had not truly understood the process of password selection during
> installation, not to mention the fact that I had not installed EHCP while
> logged in as Administrator.
> The next time I paid extra close attention to my selection of passwords
> during the EHCP installation process, but still no luck. Rather than
> reinstalling yet again I tried a number of different username/password
> combinations only to discover that none of the passwords chosen during
> installation were being used. I was able to log into EHCP, PHPMyAdmin but
> only with the default usernames and passwords. I also discovered that MYSQL
> was not running even though it had been installed. Again EHCP was not
> installed while logged in as an Administrator.
> I then found "Easy install of server with EHCP" at
> and I am trying to follow the instructions
> to the letter. I can log in to Ubuntu server, which is named simply
> "server" with the username:yyyyyy and password:1234 created during this test
> install, I then run sudo su to become administrator. I enter my
> password:1234 that was used during Ubuntu server install when prompted and I
> now see root@server:/home/yyyyyy#. This leads to my first question, am I now
> logged in as administrator?
> Still using CLI, I run sudo passwd root and I'm prompted to Enter new
> UNIX password: and then Retype new UNIX password: which results in passwd:
> password updated successfully, but this appears to do nothing. Maybe I do
> not know where this password is to be used. I thought this would change the
> password required to log in after the sudo su command, but even after reboot
> I must use password:1234 after the sudo su command and I cannot seem to find
> a single area where this password is accepted. Could you please tell me if I
> have made a mistake in this process or could you please inform me where to
> use this password that I have created.
> I would like to know if I set up my /etc/hosts file correctly. In the
> following example the computer running Ubuntu server is simply named
> "server", and will be used with as the hosting domain name.
> localhost.server localhost
> server
> Is this a legit setup? If not what changes need to be made to make it
> legit? What are the variable options that are simply an Administrator's
> preference?
> Other than this everything listed in the instructions prior to EHCP
> installation appears to work perfectly. If you could please clarify these 3
> issues for me I would greatly appreciate your time and help. Thank you!
> yyyyyy


XX: ii just e-mailed last night and you replied but I am unclear with your answer
ehcpdeveloper: which point are your unclear ?
… what is your doain and ftp name ?
XX: domain is
… ftp = tunda
… is the php.ini in the /etc/php5/apache2 folder getting adjusted?
ehcpdeveloper: then your php tmp dir is :

… no,
… it is automatic
… in apache config
… for every domain, it is adjusted separately
XX: ok i know that this directory is automagically created and has always been there,, but how do I make joomla 1.0.15 pre-installation check USE this location? Where do I make the change from /etc/lib/php5 to /var/www/vhosts/tunda/
ehcpdeveloper: i am not sure about that
… joomla detects it wrong ?
… or there should be a place in joomla install to specify that...
… alternatively,
… you may disable that security by editing
… apachetemplate file in ehcp dir
… but this causes some security issu
XX: I thought I may be able to disable for an install but I did not want to do that for security reasons. I want to fix the issue so I know when a non-admin needs to do the same thing I am trying they don't have to get nearly as frustrated as I have gotten
ehcpdeveloper: so do i,
… i would like to find a solution
… to this kind of problem...
… i didnt live same situation but,
… it is strange that,
… joomla did not detect/let us set correct dir
XX: the folllowing is the complete message

ehcpdeveloper: may you look joomla sources to fix this ?
… you may edit
… joomla index.php to fix this
… but, there may be
… an updated joomla installer too
… and,
… if you update apachetemplate file in ehcp dir
… all your domains will have same
… and you will not get into same situation
XX: ok this is the latest 1.0 version of joomla unless i return to 1.5 , so unless they have various locations with various installers it should be the "latest and greatest"
… as for the joomla index.php, I did look at it but I am NOT a programmer so I would defintaely need help with that
ehcpdeveloper: can you open your /var/www/vhosts/ehcp/apachetemplate file in linux console ?
XX: it is now open
ehcpdeveloper: php_admin_value open_basedir {homedir}

… find these
… and delete them
… save file
… then go to your ehcp
… go to options
… click syncdomains
… then retry your joomla install
XX: the skies have opened and the sun has shined and the joomla install is happy
ehcpdeveloper: :)
XX: now is everything sympatico or have we created a security issue
ehcpdeveloper: approximately
… dont wory, there is not a big hole in your server
XX: will this create problems with other installations?
ehcpdeveloper: mostly not
XX: ok I am attempting to learn what is going on here so is it now saving in the /var/lib/php5 or is the installer tricked into thinking that it is
ehcpdeveloper: it is actually normal system default, here /var/lib/php5
XX: so it is using the same loacation as if EHCP was not installed?
ehcpdeveloper: yes exactly

add the value for the save path to apachetemplate ?
php_value session.save_path {homedir}/httpdocs/cache

i didnt know about this before,
will test and include in future versions of ehcp.
Thanks for contribution