suPHP problems.

Discussion in 'Installation/Configuration' started by nhybgtvfr, Jan 27, 2016.

  1. nhybgtvfr

    nhybgtvfr Member

    hi,
    i've installing everything from scratch on some new servers, on ubuntu 14.04,
    i'm following the instructions for the perfect server ubuntu 14.04 with apache.
    with some changes. i''ve added the percona repository and am installing percona-server-client-5.6 and percona-server-server-5.6 instead of the standard mysql client or server.
    i've also added the ppa:eek:ndrej/php5-5.6 repo and am using php 5.6 as the default php version.

    which means that for the instructions (part 14) i am altering this:
    apt-get install apache2 apache2-doc apache2-utils libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-python php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached snmp

    libapache2-mod-php5 is omitted because i want to use mpm_event instead of mpm_prefork, and this seems to be the only way to do that.
    apache2-suxec is replaced with apache2-suexec-pristine due to dependencies.
    php5-ming is omitted because the package does not appear to be included in the repo.

    everything else is done according to the documentatiion.
    the control panel is working, i can't see any problems with that. but i can't access phpmyadmin.
    i just get a popup stating:

    you have chosen to open:

    which is: application/x-httpd-suphp(18.5 kB)
    from: http://<server address>
    what should firefox do with this file?
    open with:
    save file

    what's the best way to fix this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Suphp is outdated and should not be used anymore. ISPConfig supports it only for legacy reasons and it will get removed soon.

    Use php-fcgi or php-fpm + suexec instead.

    Regarding your phpmyadmin problem, phpmyadmin depends on mod_php and you did not install that.
     
  3. nhybgtvfr

    nhybgtvfr Member

    i'd be happy to not use suPHP.
    i've got php5-fpm installed, and is the preferred variant to run all the sites we'll be hosting.
    mod_php is not installed because we want to run mpm_event, not mpm_prefork. and as soon as mod_php is installed it changes the apache configs to run mpm_prefork and there seems to be no way of stopping it. if i try changing it back to mpm_event then apache won't start, with complaints about non thread-safe php.

    there are instructions to getting phpmyadmin working with suphp
    http://ubuntuforums.org/showthread.php?t=1753871
    or
    http://serverfault.com/questions/211935/running-phpmyadmin-and-suphp

    neither seem to work properly, the first one wants to change the min uid/gid that can run elevated to 33, which i don't like, i've tried creating a new user with a uid/gid of 500 and making that owner of the phpmyadmin folder, but that didn't seem to work either.

    i just want to find a way to run phpmyadmin properly without mod-php, or get apache working both with mpm_event and mod-php,
    if there's a way to get phpmyadmin working with php-fpm that'll be great, but i couldn't find anything.
     

Share This Page