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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-25-2006, 07:04 PM
|
#46
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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...
|
|
|
04-25-2006, 07:06 PM
|
#47
|
Member
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85
Original Poster
Rep:
|
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 ~]#
|
|
|
|
04-25-2006, 07:08 PM
|
#48
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
Ok, just to make sure we're not mixing up Apache installations, run this command:
$ find /usr -name httpd
Peace...
|
|
|
04-25-2006, 07:10 PM
|
#49
|
Member
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85
Original Poster
Rep:
|
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 ~]#
|
|
|
|
04-25-2006, 07:10 PM
|
#50
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
Bingo! Ok run this command:
# /usr/sbin/httpd -V
post the results.
Peace...
|
|
|
04-25-2006, 07:12 PM
|
#51
|
Member
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85
Original Poster
Rep:
|
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
|
|
|
04-25-2006, 07:14 PM
|
#52
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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...
|
|
|
04-25-2006, 07:17 PM
|
#53
|
Member
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85
Original Poster
Rep:
|
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 ~]#
|
|
|
|
04-25-2006, 07:22 PM
|
#54
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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....
|
|
|
04-25-2006, 07:24 PM
|
#55
|
Member
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85
Original Poster
Rep:
|
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.
|
|
|
04-25-2006, 07:29 PM
|
#56
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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.
|
|
|
04-25-2006, 07:37 PM
|
#57
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
Come on man, I'm waiting.....
Peace...
|
|
|
04-25-2006, 07:43 PM
|
#58
|
Member
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85
Original Poster
Rep:
|
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.
#
|
|
|
|
04-25-2006, 07:46 PM
|
#59
|
Member
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85
Original Poster
Rep:
|
WAIT WAIT WAIT I forgot to put my script in there!
|
|
|
04-25-2006, 07:46 PM
|
#60
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
Hmmm.. ServerRoot isn't set, for some reason. Can you post the entire /etc/httpd/httpd.conf file here?
Peace...
|
|
|
All times are GMT -5. The time now is 12:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|