LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2006, 07:04 PM   #46
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30

Quote:
Originally Posted by Markness
So, what do we do from here! Plllease dont leave me in the dark. We're getting so close :P I must conquer this. Heheheheh
I ask you to do something already:

Quote:
Ok, run this command:

$ ls -l /usr/lib/httpd/modules

and post the output here.


The last thing I'm working on is the "mime_module" block, which I mentioned on page 3 (I think). First, I want to see if mime_module got built as a DSO and if it did, we'll need to get that loaded but I also wanna see what else got built as a DSO. I'm also pondering having you move the AddType directive for the PHP MIME type out of the mime_module block.

Now that we've established you've got Apache modules in another location, I'm starting to think you might be mixing Apache installations, and that's not good.

So, post the output I requested above and we'll go from there.

Peace...
 
Old 04-25-2006, 07:06 PM   #47
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
Here's the output. Sorry I didnt see that post. Heh. My fault.

Quote:
[root@cpe-24-195-24-133 ~]# ls -l /usr/lib/httpd/modules
total 5104
-rwxr-xr-x 1 root root 3206744 Feb 28 06:23 libphp5.so
-rwxr-xr-x 1 root root 6136 Feb 11 18:12 mod_actions.so
-rwxr-xr-x 1 root root 10228 Feb 11 18:12 mod_alias.so
-rwxr-xr-x 1 root root 5728 Feb 11 18:12 mod_asis.so
-rwxr-xr-x 1 root root 7000 Feb 11 18:12 mod_auth_basic.so
-rwxr-xr-x 1 root root 26876 Feb 11 18:12 mod_auth_digest.so
-rwxr-xr-x 1 root root 5884 Feb 11 18:12 mod_authn_alias.so
-rwxr-xr-x 1 root root 5144 Feb 11 18:12 mod_authn_anon.so
-rwxr-xr-x 1 root root 6712 Feb 11 18:12 mod_authn_dbd.so
-rwxr-xr-x 1 root root 5912 Feb 11 18:12 mod_authn_dbm.so
-rwxr-xr-x 1 root root 4540 Feb 11 18:12 mod_authn_default.so
-rwxr-xr-x 1 root root 5880 Feb 11 18:12 mod_authn_file.so
-rwxr-xr-x 1 root root 24764 Feb 11 18:12 mod_authnz_ldap.so
-rwxr-xr-x 1 root root 7000 Feb 11 18:12 mod_authz_dbm.so
-rwxr-xr-x 1 root root 4380 Feb 11 18:12 mod_authz_default.so
-rwxr-xr-x 1 root root 7712 Feb 11 18:12 mod_authz_groupfile.so
-rwxr-xr-x 1 root root 7064 Feb 11 18:12 mod_authz_host.so
-rwxr-xr-x 1 root root 5980 Feb 11 18:12 mod_authz_owner.so
-rwxr-xr-x 1 root root 4920 Feb 11 18:12 mod_authz_user.so
-rwxr-xr-x 1 root root 31032 Feb 11 18:12 mod_autoindex.so
-rwxr-xr-x 1 root root 29556 Feb 11 18:12 mod_cache.so
-rwxr-xr-x 1 root root 7192 Feb 11 18:12 mod_cern_meta.so
-rwxr-xr-x 1 root root 28852 Feb 11 18:12 mod_cgid.so
-rwxr-xr-x 1 root root 22612 Feb 11 18:12 mod_cgi.so
-rwxr-xr-x 1 root root 44340 Feb 11 18:12 mod_dav_fs.so
-rwxr-xr-x 1 root root 88756 Feb 11 18:12 mod_dav.so
-rwxr-xr-x 1 root root 10676 Feb 11 18:12 mod_dbd.so
-rwxr-xr-x 1 root root 16344 Feb 11 18:12 mod_deflate.so
-rwxr-xr-x 1 root root 6036 Feb 11 18:12 mod_dir.so
-rwxr-xr-x 1 root root 18392 Feb 11 18:12 mod_disk_cache.so
-rwxr-xr-x 1 root root 6484 Feb 11 18:12 mod_dumpio.so
-rwxr-xr-x 1 root root 5908 Feb 11 18:12 mod_env.so
-rwxr-xr-x 1 root root 9176 Feb 11 18:12 mod_expires.so
-rwxr-xr-x 1 root root 16728 Feb 11 18:12 mod_ext_filter.so
-rwxr-xr-x 1 root root 8852 Feb 11 18:12 mod_file_cache.so
-rwxr-xr-x 1 root root 12500 Feb 11 18:12 mod_filter.so
-rwxr-xr-x 1 root root 12440 Feb 11 18:12 mod_headers.so
-rwxr-xr-x 1 root root 7380 Feb 11 18:12 mod_ident.so
-rwxr-xr-x 1 root root 12568 Feb 11 18:12 mod_imagemap.so
-rwxr-xr-x 1 root root 39032 Feb 11 18:12 mod_include.so
-rwxr-xr-x 1 root root 16356 Feb 11 18:12 mod_info.so
-rwxr-xr-x 1 root root 44308 Feb 11 18:12 mod_ldap.so
-rwxr-xr-x 1 root root 21408 Feb 11 18:12 mod_log_config.so
-rwxr-xr-x 1 root root 7932 Feb 11 18:12 mod_log_forensic.so
-rwxr-xr-x 1 root root 5864 Feb 11 18:12 mod_logio.so
-rwxr-xr-x 1 root root 22616 Feb 11 18:12 mod_mem_cache.so
-rwxr-xr-x 1 root root 21000 Feb 11 18:12 mod_mime_magic.so
-rwxr-xr-x 1 root root 14516 Feb 11 18:12 mod_mime.so
-rwxr-xr-x 1 root root 28604 Feb 11 18:12 mod_negotiation.so
-rwxr-xr-x 1 root root 217124 Feb 12 02:30 mod_perl.so
-rwxr-xr-x 1 root root 30648 Feb 11 18:12 mod_proxy_ajp.so
-rwxr-xr-x 1 root root 19452 Feb 11 18:12 mod_proxy_balancer.so
-rwxr-xr-x 1 root root 8136 Feb 11 18:12 mod_proxy_connect.so
-rwxr-xr-x 1 root root 30596 Feb 11 18:12 mod_proxy_ftp.so
-rwxr-xr-x 1 root root 26616 Feb 11 18:12 mod_proxy_http.so
-rwxr-xr-x 1 root root 64628 Feb 11 18:12 mod_proxy.so
-rwxr-xr-x 1 root root 95168 Feb 27 10:57 mod_python.so
-rwxr-xr-x 1 root root 57688 Feb 11 18:12 mod_rewrite.so
-rwxr-xr-x 1 root root 9208 Feb 11 18:12 mod_setenvif.so
-rwxr-xr-x 1 root root 10040 Feb 11 18:12 mod_speling.so
-rwxr-xr-x 1 root root 166348 Feb 11 18:12 mod_ssl.so
-rwxr-xr-x 1 root root 18292 Feb 11 18:12 mod_status.so
-rwxr-xr-x 1 root root 5204 Feb 11 18:12 mod_suexec.so
-rwxr-xr-x 1 root root 7268 Feb 11 18:12 mod_unique_id.so
-rwxr-xr-x 1 root root 6776 Feb 11 18:12 mod_userdir.so
-rwxr-xr-x 1 root root 9432 Feb 11 18:12 mod_usertrack.so
-rwxr-xr-x 1 root root 5848 Feb 11 18:12 mod_version.so
-rwxr-xr-x 1 root root 8444 Feb 11 18:12 mod_vhost_alias.so
[root@cpe-24-195-24-133 ~]#
 
Old 04-25-2006, 07:08 PM   #48
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Ok, just to make sure we're not mixing up Apache installations, run this command:

$ find /usr -name httpd

Peace...
 
Old 04-25-2006, 07:10 PM   #49
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
Results are as follows:

Quote:
[root@cpe-24-195-24-133 ~]# find /usr -name httpd
/usr/lib/httpd
/usr/sbin/httpd
/usr/local/apache2/bin/httpd
[root@cpe-24-195-24-133 ~]#
 
Old 04-25-2006, 07:10 PM   #50
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Bingo! Ok run this command:

# /usr/sbin/httpd -V

post the results.

Peace...
 
Old 04-25-2006, 07:12 PM   #51
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
Woot, lots of information here.

Quote:
[root@cpe-24-195-24-133 ~]# /usr/sbin/httpd -V
Server version: Apache/2.2.0
Server built: Feb 11 2006 18:10:38
Server's Module Magic Number: 20051115:0
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
[root@cpe-24-195-24-133 ~]#
I cant wait to print this entire walkthrough out and go back over and analyze what I did wrong :P
 
Old 04-25-2006, 07:14 PM   #52
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Actually, that looks pretty good. You can forget about /usr/local/apache2 for a moment since you've got Apache 2.2 installed in /usr (and spread out all over the place).

So, let's find the "good" httpd.conf file:

# find /usr -name httpd.conf

please post the results.

Peace...
 
Old 04-25-2006, 07:17 PM   #53
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
Quickreply for the win.

Quote:
[root@cpe-24-195-24-133 ~]# find /usr -name httpd.conf
/usr/local/apache2/conf/httpd.conf
/usr/local/apache2/conf/original/httpd.conf
[root@cpe-24-195-24-133 ~]#
 
Old 04-25-2006, 07:22 PM   #54
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Hold up... I gave you the wrong command... Sorry.

Run this:

# find / -name httpd.conf

post the results. I'm thinking there's one in /etc/httpd somewhere...

Peace....
 
Old 04-25-2006, 07:24 PM   #55
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
Wrong command?!?! Unacceptable. *cracks whip*

Quote:
[root@cpe-24-195-24-133 ~]# find / -name httpd.conf
find: WARNING: Hard link count is wrong for /proc/5801/task: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
/home/mbenoit/httpd-2.2.0/docs/conf/httpd.conf
/usr/local/apache2/conf/httpd.conf
/usr/local/apache2/conf/original/httpd.conf
/etc/httpd/conf/httpd.conf
[root@cpe-24-195-24-133 ~]#
Looks like you were right.
 
Old 04-25-2006, 07:29 PM   #56
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Great. Look in /etc/httpd/conf/httpd.conf for the following:

DocumentRoot (this contains the directory where you will need to put your test PHP script. Put your PHP script in this directory!)

LoadModule php5_module modules/libphp5.so (this is the PHP module)

ServerRoot (This will be good to have on GP)

Post that info here. After making note of those values, do this:

# /usr/local/apache2/bin/apachectl stop
# ps ax | grep http
(you should see either nothing or your grep command repeated)
# /usr/sbin/httpd &
# ps ax | grep http
(you should see several httpd entries, like before)
#

Then try your PHP test script.

Peace...

Last edited by tomdkat; 04-25-2006 at 07:36 PM.
 
Old 04-25-2006, 07:37 PM   #57
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Come on man, I'm waiting.....

Peace...
 
Old 04-25-2006, 07:43 PM   #58
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
Ok, this is what I did. I think I strayed off course.

Quote:
[root@cpe-24-195-24-133 ~]# cd /etc/httpd/conf/
[root@cpe-24-195-24-133 conf]# ls
httpd.conf magic
[root@cpe-24-195-24-133 conf]# emacs httpd.conf
[root@cpe-24-195-24-133 conf]# /usr/local/apache2/bin/apachectl stop
[root@cpe-24-195-24-133 conf]# ps ax | grep http
19540 pts/2 S+ 0:00 grep http
[root@cpe-24-195-24-133 conf]# /usr/sbin/httpd &
[1] 19545
[root@cpe-24-195-24-133 conf]# [Tue Apr 25 20:34:11 2006] [warn] module php5_module is already loaded, skipping
httpd: Syntax error on line 282 of /etc/httpd/conf/httpd.conf: ServerRoot takes one argument, Common directory of server-related files (logs, confs, etc.)

[1]+ Exit 1 /usr/sbin/httpd
[root@cpe-24-195-24-133 conf]# ps ax | grep http
19555 pts/2 R+ 0:00 grep http
[root@cpe-24-195-24-133 conf]#
Quote:
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
LoadModule php5_module modules/libphp5.so
ServerRoot
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
 
Old 04-25-2006, 07:46 PM   #59
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
WAIT WAIT WAIT I forgot to put my script in there!
 
Old 04-25-2006, 07:46 PM   #60
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Hmmm.. ServerRoot isn't set, for some reason. Can you post the entire /etc/httpd/httpd.conf file here?

Peace...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hello. Problems with apache, (I believe.) $Linuxnoob Fedora 5 04-09-2006 05:51 PM
Problems with Apache XblueorbX Linux - Software 22 08-13-2005 09:31 AM
apache 1.3 problems Dill Linux - Software 4 09-05-2004 05:01 PM
Apache: Several Problems! overbored Linux - Software 5 08-31-2004 10:01 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-09-2003 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration