Upgrading PHP & Jailed Users

Discussion in 'Installation/Configuration' started by Matthes, Jul 24, 2008.

  1. Matthes

    Matthes New Member

    First, I'd like to say that ISPConfig is awesome. You guys rule.

    Issue #1

    ISPConfig Perfect setup installed PHP Version 4.3.9 on my CentOS 4.6 server. I however need to upgrade to at least PHP 5, however not PHP 5.0.4 due to application compatibility. Are there any other applications I need to upgrade to do this and is there a good tutorial on doing it?

    Issue #2
    I created a user for FTP for my host website. This user is able to browse all the way to the root directory. Is there a setting I missed to stop this? I do have him checked as "Administrator" in his permissions on the panel, however could you provide some clarification as to what this means?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) I dont have a upgrade guide for you, but ISPConfig works fine with any PHP version. So installing any php5 package for centos should work.

    2) Please make sure that you have the following line in the proftpd.conf file:

    DefaultRoot ~
     
  3. Matthes

    Matthes New Member

    For those needing to run PHP5 on CentOS 4.6 do this

    To replace php-4.3.9 to php-5.x.x, you must remove php-domxml first and then do:

    yum --enablerepo=centosplus upgrade php*

    or to do and install, use this command:

    yum --enablerepo=centosplus --exclude=php-domxml install php*

    (or install individually the files that you need)​

    However, when I type yum remove php-domxml it says "No packages marked for removal"

    Does this mean that the second option would work for me?

    Thanks for the fast reply till ;)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, this should work.
     
  5. Matthes

    Matthes New Member

    Here is what I have for my proftpd.conf

    Code:
    # Use this to excude users from the chroot
    DefaultRoot                     ~ !adm
    
    Looks correct to me
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Looks fine. Please try to put it in global tags:

    <global>
    DefaultRoot ~ !adm
    </global>

    if this wont work, please check with "locate proftpd.conf" if there is any other proftpd.conf file. Also make sure, that you are not accidently running a instance of another ftp server like vsftpd by running:

    netstat -tap | grep ftp
     
  7. Matthes

    Matthes New Member

    When attempting to update to php5 through yum I get this error at the end of the download:

    Code:
    Error: php-pecl-apc conflicts with php-eaccelerator
    Error: Missing Dependency: php = 4.3.9 is needed by package php-mmcache
    Error: Missing Dependency: libssh2.so is needed by package php-pecl-ssh2
    Error: Missing Dependency: libssh2 is needed by package php-pecl-ssh2
    Error: Missing Dependency: php-pecl(Xdebug) is needed by package php-pear-PHPUnit2
    Error: php-pecl-apc conflicts with php-mmcache
    Error: php-eaccelerator conflicts with php-mmcache
    
     
  8. Matthes

    Matthes New Member

    When I SSH'd in I typed cd / and ls and it displays everything =[ The only ftp software I'm running is proftpd.

    I will say that when I try to edit any files it says permission denied, however I'd be more comfortable if people couldn't go beyond their folders.

    As for locate proftpd.conf

     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try to uninstall php-mmcache first and then try to update php again.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, that explains it:

    SSH is not FTP, thats something completely different! For FTP, you will have to login with a FTP client and not a SSH client. Sftp is SSH too and not FTP, even if the name sounds similar.
     
  11. Matthes

    Matthes New Member

    haha, my bad. I'm getting used to stuff around here. =P

    Is there a solution though?
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Use an FTP client such as FileZilla.
     

Share This Page