Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25
Hi I did the following. Code: wget http://www.suphp.org/download/suphp-0.7.1.tar.gz Code: tar -xzvf suphp-0.7.1.tar.gz Code: cd suphp-0.7.1 Code: ./configure --prefix=/usr/ --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with-setid-mode=owner --with-php=/usr/bin/php-cgi --with-logfile=/var/log/httpd/suphp_log --enable-SUPHP_USE_USERGROUP=yes Code: make && make ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66

    SUPHP not installed


    Hi

    I did the following.

    Code:
    wget http://www.suphp.org/download/suphp-0.7.1.tar.gz
    Code:
    tar -xzvf suphp-0.7.1.tar.gz
    Code:
    cd suphp-0.7.1
    Code:
    ./configure --prefix=/usr/ --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with-setid-mode=owner --with-php=/usr/bin/php-cgi --with-logfile=/var/log/httpd/suphp_log --enable-SUPHP_USE_USERGROUP=yes
    Code:
    make && make install
    Output of make and make install is

    make[1]: Entering directory `/tmp/suphp-0.7.1/src'
    make all-recursive
    make[2]: Entering directory `/tmp/suphp-0.7.1/src'
    make[3]: Entering directory `/tmp/suphp-0.7.1/src'
    make[3]: Leaving directory `/tmp/suphp-0.7.1/src'
    make[2]: Leaving directory `/tmp/suphp-0.7.1/src'
    make[1]: Leaving directory `/tmp/suphp-0.7.1/src'
    make[1]: Entering directory `/tmp/suphp-0.7.1'
    make[1]: Nothing to be done for `all-am'.
    make[1]: Leaving directory `/tmp/suphp-0.7.1'
    Making install in src
    make[1]: Entering directory `/tmp/suphp-0.7.1/src'
    make[2]: Entering directory `/tmp/suphp-0.7.1/src'
    make[3]: Entering directory `/tmp/suphp-0.7.1/src'
    test -z "/usr/sbin" || /bin/mkdir -p "/usr/sbin"
    /bin/sh ../libtool --mode=install /usr/bin/install -c 'suphp' '/usr/sbin/suphp'
    /usr/bin/install -c suphp /usr/sbin/suphp
    make install-exec-hook
    make[4]: Entering directory `/tmp/suphp-0.7.1/src'
    chmod u+s /usr/sbin/suphp
    make[4]: Leaving directory `/tmp/suphp-0.7.1/src'
    make[3]: Nothing to be done for `install-data-am'.
    make[3]: Leaving directory `/tmp/suphp-0.7.1/src'
    make[2]: Leaving directory `/tmp/suphp-0.7.1/src'
    make[1]: Leaving directory `/tmp/suphp-0.7.1/src'
    make[1]: Entering directory `/tmp/suphp-0.7.1'
    make[2]: Entering directory `/tmp/suphp-0.7.1'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/tmp/suphp-0.7.1'
    make[1]: Leaving directory `/tmp/suphp-0.7.1'

    I can't find the configuration file suphp in httpd/conf.d/
    in /etc/ too.
    what am i doing wrong?

    Thanks for your help in advance.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    There is an example config file in doc/suphp.conf-example. I am guessing it does not install one by default, i.e. your --sysconfdir=/etc flag to the configure script just tells suphp where it should look for the config file, not to put it there during install.

    So if you copy doc/suphp.conf-example to /etc/suphp.conf, then edit it as needed, you should hopefully be good to go.

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    sysconfdir=/etc flag to the configure script just tells suphp where it should look for the config file, not to put it there during install.
    How do i tell to put it there?
    I will use the sample config now.

    But do i need another config in
    /etc/httpd/conf.d/suphp.conf

    /etc/suphp.conf
    (The Perfect Server - CentOS 6.0 x86_64 [ISPConfig 3] - Page 5 | HowtoForge - Linux Howtos and Tutorials)
    I just used this link to install suphp, I am not installing anything else from there.

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by agriz View Post
    How do i tell to put it there?
    Unless I'm missing something, you don't/can't.
    But do i need another config in
    /etc/httpd/conf.d/suphp.conf
    The guide you posted tells you how to create it:

    Create/edit the following file using an editor (vi):
    Code:
    vi /etc/httpd/conf.d/suphp.conf
    In the file put the following single line:
    Code:
    LoadModule suphp_module modules/mod_suphp.so
    You need to do the above as root, btw.

    You can use gedit (graphical editor) if you're uncomfortable with the vi (command line editor).

  6. #5
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    Thanks for the explanation.
    Now, If i read my question, It is a foolish question!

    Thanks for the help.

  7. #6
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    "The only foolish question is the one that is not asked" or something like that...but I know what you mean :P

  8. #7
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    oops,

    I just restarted the httpd.
    I got the following error.


    Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/suphp.conf: Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: cannot open shared object file: No such file or directory

  9. #8
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    Additionally,

    I checked modules folder. I didn't find any mod_suphp.so

  10. #9
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    It should have been installed to the following file location via the 'make install' command:

    Code:
    /usr/lib/httpd/modules/mod_suphp.so
    Is it not there?

    Edit: Looking again at your error:

    Syntax error on line 1 of /etc/httpd/conf.d/suphp.conf: Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: cannot open shared object file: No such file or directory
    I think you put the wrong path to the file in that config file. Post the contents of yours, if not sure, or just copy-paste the one in the guide - it should work.
    Last edited by atreyu; 11-28-2011 at 04:46 PM. Reason: error

  11. #10
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    inside /usr/lib i didn't find any httpd folder. Is there anything wrong in my configuration?

    EDIT

    Code:
    /usr/lib64/httpd/modules
    I didn't find any mod_suphp.so

    END OF EDIT

    cat /etc/suphp.conf

    Code:
    [global]
    ;Path to logfile
    logfile=/var/log/httpd/suphp.log
    ;Loglevel
    loglevel=info
    ;User Apache is running as
    webserver_user=apache
    ;Path all scripts have to be in
    docroot=/
    ;Path to chroot() to before executing script
    ;chroot=/mychroot
    ; Security options
    allow_file_group_writeable=true
    allow_file_others_writeable=false
    allow_directory_group_writeable=true
    allow_directory_others_writeable=false
    ;Check wheter script is within DOCUMENT_ROOT
    check_vhost_docroot=true
    ;Send minor error messages to browser
    errors_to_browser=false
    ;PATH environment variable
    env_path=/bin:/usr/bin
    ;Umask to set, specify in octal notation
    umask=0077
    ; Minimum UID
    min_uid=100
    ; Minimum GID
    min_gid=100
    
    [handlers]
    ;Handler for php-scripts
    x-httpd-suphp="php:/usr/bin/php-cgi"
    ;Handler for CGI-scripts
    x-suphp-cgi="execute:!self"
    cat /etc/httpd/conf.d/suphp.conf

    Code:
    LoadModule suphp_module modules/mod_suphp.so

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •