LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-10-2005, 07:13 PM   #1
Thanotos
Member
 
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Rep: Reputation: 15
Exclamation Garbled


'ello all.

I am still having issues with setting up Apache and PHP.

After many,many,many,many attempts at trying to get libphp5.so created and placed into the right dir I am still not able to load/startup apache after compiling php.

I keep getting the error:
Code:
root@stealth:/usr/local/src/php-5.1.1# /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf:
API module structure `php5_module' in file /usr/local/apache2/modules/libphp5.so is garbled - 
perhaps this is not an Apache module DSO?
now line 54 reads:
Quote:
LoadModule php5_module modules/libphp5.so
I am running the current release of Apache 2 and PHP 5.1 on Slackware 10. There are NO errors with the compile nor at any other time.

I am that much closer to my goal, and have looked every where that I could to see if there is anything else I can do to no success.

Some assistance pls.
 
Old 12-10-2005, 10:41 PM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
I have:
Code:
LoadModule php5_module        modules/libphp5.so
listed in my httpd.conf. The module is located in /usr/local/apache2/modules.

Are you compiling php with apxs? (--with-apxs=DIR)
 
Old 12-10-2005, 10:45 PM   #3
Thanotos
Member
 
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Original Poster
Rep: Reputation: 15
Yes, well with apxs2.

I configured with
Code:
./configure --with-apxs2=/usr/local/apache2/bin/apxs
 
Old 12-10-2005, 10:56 PM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Are you starting with clean source? Here are my *exact* configure strings -- php/apachessl is working perfectly on my Slackware -current box:

Apache 2.0.54:
Code:
./configure --enable-ssl --with-ssl --with-dav --enable-cgi --enable-http --enable-vhost-alias --enable-dav-fs
PHP 5.1.0:
Code:
./configure --with-zlib=/usr/ --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl --with-pdflib=/usr/local/include --with-gd --with-jpeg-dir=/usr/lib --with-bz2 --with-id3 --with-freetype-dir=/usr/X11R6/lib/X11/fonts/local/ --enable-gd-native-ttf
 
Old 12-10-2005, 11:07 PM   #5
Thanotos
Member
 
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Original Poster
Rep: Reputation: 15
again, yes.

I followed these steps when installing ....
Code:
make clean
make clean_dis
./configure --enable-so
make 
make install
./configure --prefix=/usr/local/php \
>--with-mysql \
>--with-apxs2=/usr/local/apapche2/bin/apxs
make all
make install
I did the enable-so seperatley because I was having troubles originally with creating the libphp5.so file and AFTER reading the INSTALL help file it directs to do so first and then configure everything else after.

I was able to get Apache running with No error prior to the second configure.

My thought is that it is related to the httpd.conf. (not fully sure - but that is the only link I make)
 
Old 12-11-2005, 12:03 AM   #6
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Could you post relevant parts of your httpd.conf?
 
Old 12-11-2005, 11:32 AM   #7
Thanotos
Member
 
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Original Poster
Rep: Reputation: 15
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
ServerRoot "/usr/local/apache2"

# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule php5_module modules/libphp5.so

<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.

# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName ******:80

#
# 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 "/usr/local/apache2/htdocs"
#
 
Old 12-11-2005, 01:14 PM   #8
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
The only difference I can see in our compiling methods is --enable-so seperately, and you've done "make all", whereas I "make". Have you successfully compiled PHP in the past, meaning an earlier version? I've not messed with 5.1.1, maybe there is something wrong with the source?
 
Old 12-11-2005, 07:22 PM   #9
Thanotos
Member
 
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks for all the help mdarby.

I cleaned out the dir and tried to compile a later version. It is interesting I went to 4.4.1 and had no issues with the same error. Now however I am getting a symbol error when starting apache:
Code:
root@stealth:/usr/local/src/php-4.4.1/libs# /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: undefined symbol: _emalloc
now I am confident that it is my httpd.conf. However I have no idea what is wrong with line 54. I mean, you have seen the line and the only update made is changing from libphp5 to libphp4, nothing other than that.

Maybe now I might stand a better chance of starting right from scratch, removing Apache, MYSQL and PHP making sure everything is clean and try fresh compiles?

Any other ideas?
 
  


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
Garbled text on screen thelight1 Red Hat 3 11-29-2005 06:53 AM
confluence.org garbled titanium_geek General 13 09-29-2004 06:07 AM
garbled resolustion bejiita Slackware 1 08-01-2004 10:04 PM
VCD is garbled seidren Linux - Software 0 06-27-2003 09:29 PM
VIrtual Console Garbled nxny Linux - Software 6 08-31-2002 09:11 PM

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

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