LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 04:26 PM   #31
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30

Ok, not isn't THAT interesting. In your httpd.conf file, you're instructing Apache to load the PHP5 module as a DSO:

Loadmodule php5_module modules/libphp5.so

but that module doesn't exist in the modules directory, based on your output above. What exactly did you do to build PHP5?

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

Original Poster
Rep: Reputation: 15
Ok. Go to this link, and you can see exactaly what I was instructed to do through the book.

Now, some of the instructions say download program along the lines of...so and so, but that wasnt exact so I just downloaded the most up to date program from each site it sent me to because thats what was listed.

http://mohawk-paintball.org/AMP/
 
Old 04-25-2006, 06:16 PM   #33
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
You got your instructions from a site with "mohawk-paintcall" as the URL? No wonder we're having problems...

Reading now....

Peace...
 
Old 04-25-2006, 06:17 PM   #34
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Ok, those instructions look good. We need to find where your PHP module went:

$ find / -name libphp5.so

post the results.

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

Original Poster
Rep: Reputation: 15
Thats my website :P I took screenshots from the ebook, lol!
 
Old 04-25-2006, 06:21 PM   #36
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
Thats my website :P I took screenshots from the ebook, lol!
I know.. just giving you a hard time, Mr Mohawk.

Peace...
 
Old 04-25-2006, 06:21 PM   #37
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
We need to find where your PHP module went:

$ find / -name libphp5.so

post the results.

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

Original Poster
Rep: Reputation: 15
Results. I love warnings... :P

Quote:
[root@cpe-24-195-24-133 mbenoit]# find / -name libphp5.so
/usr/lib/httpd/modules/libphp5.so
find: WARNING: Hard link count is wrong for /selinux: 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.
[root@cpe-24-195-24-133 mbenoit]#
 
Old 04-25-2006, 06:30 PM   #39
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Excellent! I think we have the missing piece.. I think.

Ok, here is the ServerRoot as defined in your httpd.conf file:

ServerRoot "/usr/local/apache2"

That means that is where Apache will look for various things, namely our PHP DSO module. You've got it in /usr/lib/httpd/modules/libphp5.so and I'm thinking it needs to be in /usr/local/apache2/modules.

So, try this:

$ cd /usr/local/apache2
$ ls -ld modules

Then post that output. Then I'll have you do something else.

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

Original Poster
Rep: Reputation: 15
Reply posted.

Quote:
[root@cpe-24-195-24-133 mbenoit]# cd /usr/local/apache2
[root@cpe-24-195-24-133 apache2]# ls -ld modules
drwxr-xr-x 2 root root 4096 Apr 24 17:13 modules
[root@cpe-24-195-24-133 apache2]#
Enjoy.
 
Old 04-25-2006, 06:34 PM   #41
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Ok, now do this:

# cp /usr/lib/httpd/modules/libphp5.so /usr/local/apache2/modules

Then restart Apache:

# /usr/local/apache2/bin/apachectl restart

Then try your test page and see what happens.

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

Original Poster
Rep: Reputation: 15
I get the same error. Any other clue what the problems might be?
Quote:
[root@cpe-24-195-24-133 conf]# ls
extra httpd.conf httpd.conf~ magic mime.types original
[root@cpe-24-195-24-133 conf]#
What are those other two files in there? Each time I save in emacs it makes copies with a ~ next to it or like before there was a #httpd.conf# that I deleted because it was never in there originally.

Last edited by Markness; 04-25-2006 at 06:41 PM.
 
Old 04-25-2006, 06:53 PM   #43
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Ok, run this command:

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

and post the output here.

Thanks...

Peace...
 
Old 04-25-2006, 06:54 PM   #44
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
What are those other two files in there? Each time I save in emacs it makes copies with a ~ next to it or like before there was a #httpd.conf# that I deleted because it was never in there originally.
The tilde is a backup copy of the file you edited. Emacs does that. The #file# file is a work copy that didn't get properly cleaned up, for whatever reason.

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

Original Poster
Rep: Reputation: 15
Roger.

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:10 PM.

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