Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 25
inside /usr/lib i didn't find any httpd folder. Is there anything wrong in my configuration? Quite possibly. What is your Linux distro/version? How did you install apache (from source/tarball, via ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353

    inside /usr/lib i didn't find any httpd folder. Is there anything wrong in my configuration?
    Quite possibly.

    What is your Linux distro/version?

    How did you install apache (from source/tarball, via package manager, etc.)?

  2. #12
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    centos 6 x86_64

    Code:
    yum install httpd mysql-server php php-mysql

  3. #13
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Do you have a /usr/lib64 directory? The httpd package should have put the modules in

    /usr/lib64/httpd/modules

    Did you see an error in the output of the 'make install' command, regarding the /usr/lib directory missing?

    If that directory exists, try copying the .so file there, then restarting apache.
    Last edited by atreyu; 11-28-2011 at 04:43 PM. Reason: typo

  4. $spacer_open
    $spacer_close
  5. #14
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    Code:
    /usr/lib64/httpd/modules
    (I have posted this in the first page of this thread)

    I didn't see any error regarding /usr/lib/
    I have posted the output of
    Code:
    make && make install
    From where should i copy and paste the .so file?

  6. #15
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    When you ran 'make', it should have created:

    Code:
    ./src/apache2/.libs/mod_suphp.so
    You could have found this file location by running this command in the suphp source dir:
    Code:
    find .|grep mod_suphp.so
    And the location of your apache modules dir you've ascertained:

    Code:
    /usr/lib64/httpd/modules/
    So, make sure you are in the suphp source directory, and do:
    Code:
    cp ./src/apache2/.libs/mod_suphp.so /usr/lib64/httpd/modules/

  7. #16
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by agriz View Post
    Code:
    /usr/lib64/httpd/modules
    (I have posted this in the first page of this thread)
    Sorry, missed your edit in our flurry of posts...

  8. #17
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    cp: cannot stat `./src/apache2/.libs/mod_suphp.so': No such file or directory

    /apache2/.libs is not there
    I found .deps which has mod_suphp.Pso

    Code:
    find .|grep mod_suphp.so
    returned nothing

  9. #18
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    Finally I installed it!
    I have to install httpd-devel as well as apr-devel
    After installing those, everything went good.

    Just a question.
    Without suphp, apache will run files as "nouser"

    Now after installing suphp, under which username it will run the files?

    Thanks for you help

  10. #19
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    I would think it would still run under the same user name. It did not modify httpd.conf, which is where that is defined:

    Code:
    grep ^User /etc/httpd/conf/httpd.conf
    check currently running apache:

    Code:
    ps -o user,cmd -p $(pidof httpd)

  11. #20
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    Code:
    grep ^User /etc/httpd/conf/httpd.conf
    Code:
    User apache
    Code:
    ps -o user,cmd -p $(pidof httpd)
    USER CMD
    root /usr/sbin/httpd
    apache /usr/sbin/httpd
    apache /usr/sbin/httpd
    apache /usr/sbin/httpd
    apache /usr/sbin/httpd
    apache /usr/sbin/httpd
    apache /usr/sbin/httpd
    apache /usr/sbin/httpd
    apache /usr/sbin/httpd
    apache /usr/sbin/httpd
    How do i change it?
    Is suphp not configured properly?

Page 2 of 3 FirstFirst 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
  •