Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
php tmp dir
#1
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/yourdom.com/phptmpdir
so, in upload script or whatever it is, choose upload dir as /var/www/vhosts/yourftp/yourdom.com/phptmpdir (replace yourftp with what name implies, and so yourdom.com)

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 <yyyyyy@xxxxxx.net> 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() [function.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
> http://www.ehcp.net/helper/yardim/cats.php
> 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 install.sh
> 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 install.sh as "sudo install.sh"
>
> hope this helps...
> i put this story in http://www.ehcp.net/?q=node/315
>
>
> On Sun, Feb 8, 2009 at 6:12 PM, yyyyyy zzzzzz <yyyyyy@xxxxxx.net> 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,
Reply
#2
XX: ii just e-mailed last night and you replied but I am unclear with your answer
… http://www.ehcp.net/?q=node/356
ehcpdeveloper: which point are your unclear ?
… what is your doain and ftp name ?
XX: domain is domdomdom.com
… 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/domdomdom.com/phptmpdir
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: Smile
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


Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#3
add the value for the save path to apachetemplate ?
Like:
php_value session.save_path {homedir}/httpdocs/cache


Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
i didnt know about this before,
will test and include in future versions of ehcp.
Thanks for contribution

Restored from old drupal forum, for user uid:2290 username:gauji
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping