LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-19-2010, 03:46 PM   #1
mdlynn
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 1
Slack 13.1, HTTPD syntax errors & missing lib


This is a clean install of Slackware 13.1, and I am getting a variety of errors trying to set up Apache. Initial errors pertained to missing libraries for apr and apr-util. Installing these packages seems to have resolved those errors, but now am getting syntax errors for httpd.conf on line 478 and also on line 6 of mod_php.conf. Finally error regards libphp5.so not able to load into server. Continues with missing file libmcrypt.so. The libphp5.so file is present where it is looking for it, but I don't see the libmcrypt.so file. No additional info on the syntax errors; I have no clue what either of those lines should look like.

I don't think these errors were here before installing the apr libs.

httpd.conf 478:
include /etc/httpd/mod_php.conf
Only change I made to this line was to remove the comment that was there.

Line 6 from mod_php.conf
LoadModule php5_module lib/httpd/modules/libphp5.so
That file exists in the path under /usr which is where the error says it is looking.


TIA,
PS: anyone know where the speakup parameter files that used to be in /proc have gone to?

Last edited by mdlynn; 08-19-2010 at 07:26 PM.
 
Old 08-19-2010, 03:50 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!
Please click the links in my signature. Once you've done that, a touch more detail to your problem would be nice.
Happy reading!

Oh, and about this;
Quote:
PS: anyone know where the speakup parameter files that used to be in /proc have gone to?
Almost everything in /proc is there because of the way that particular Linux kernel was compiled.

You might have to load a module (maybe compile it first) to get what you're looking for.

You should be able to check either /usr/doc or /lib/modules/`uname -r`

Last edited by xeleema; 08-19-2010 at 03:58 PM.
 
Old 08-19-2010, 07:06 PM   #3
mdlynn
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 1
OK, I read the links: well the second one at least. Google got me answers to the initial part of the problems dealing with apr and aprutil as well as a few mysql issues that I didn't mention in my first post. Additional info will be added to my original post. I don't use the Slackware box for browsing the internet; the screen reader is just too primative for that. I'll get the syntax lines added shortly. The 478 line error in httpd.conf makes no sense as all I did was remove the comment from the line
include /etc/httpd/mod_php
As I recall, that is how it looked in earlier versions of Slackware that had worked for me.
 
Old 08-25-2010, 02:01 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
If you're trying to enable PHP within Apache, create a phpinfo.php file within your DocumentRoot directory that contains the following;

phpinfo.php
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
//phpinfo(INFO_MODULES);
?>


If memory serves me correctly, you're going to have to modify either the init script or an "apache.conf" file for apache to startup with PHP support.

Also, make sure there really is a /etc/httpd/mod_php.conf file.


As for the "LoadModule php5_module lib/httpd/modules/libphp5.so" error;
that's a 'relative path' and not an 'absolute path'. Make a quick backup copy of your mod_php.conf file then see if you can put the whole path to libphp5.so in there.

Let me know how it goes!

Last edited by xeleema; 08-25-2010 at 02:03 AM.
 
Old 08-25-2010, 11:15 PM   #5
MadMaverick9
Member
 
Registered: Aug 2010
Posts: 353
Blog Entries: 4

Rep: Reputation: Disabled
Re: libmcrypt error

Quote:
rmjansen@birdy01:~/ > ldd /usr/lib/httpd/modules/libphp5.so
.
.
libmcrypt.so.4 => /usr/lib/libmcrypt.so.4 (0xb73a4000)
.
.
So - the php5 module for apache httpd obviously requires libmcrypt.

If you did a full install of Slackware 13.1, libmcrypt should be in /usr/lib already.
Quote:
-rwxr-xr-x 1 root root 789 2009-04-05 04:42 /usr/lib/libmcrypt.la
lrwxrwxrwx 1 root root 18 2010-07-03 16:37 /usr/lib/libmcrypt.so -> libmcrypt.so.4.4.8
lrwxrwxrwx 1 root root 18 2010-07-03 16:37 /usr/lib/libmcrypt.so.4 -> libmcrypt.so.4.4.8
-rwxr-xr-x 1 root root 179694 2009-04-05 04:42 /usr/lib/libmcrypt.so.4.4.8

If not - install slackware/l/libmcrypt-2.5.8-i486-1.txz from your install dvd/cd.

You could also check in /var/log/packages and see if libmcrypt is installed or not:
Quote:
/var/log/packages/libmcrypt-2.5.8-i486-1
But libphp5.so has a whole slew of dependencies: pcre, libxml2, libmcrypt, etc. as you can see with ldd. So imho I would do a full install of Slackware 13.1 and you should see no more "missing lib" errors. It's only about 6gb.
 
  


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
Slack: script to detect orphaned libraries, broken lib links, missing dependencies GrapefruiTgirl Slackware 69 10-13-2019 03:39 PM
Missing Alt-Gr & Touchpad errors alvlin Slackware 2 01-05-2009 09:12 AM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:17 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