LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-28-2005, 12:47 PM   #1
j@ckrabbit
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Rep: Reputation: 0
Compiling PHP on Debian


I have encountered something confusing. If I install apache + php onto Debian 3.1 using:
Code:
'apt-get install -y apache2 apache2-common apache2-mpm-prefork libapache2-mod-php4'
and then upload a phpinfo.php script to the server I can observe the following output:


Quote:
'../configure' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php4/apache2' '--enable-memory-limit' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc' '--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql' '--without-sybase-ct'
note the php compile option that reads '--without-mysql' !

However I know that the apache mod does actually run mysql succesfully since I run a discussion board with it. My understanding then is that the stuff thats disabled is available as modules (php4-mysql, php4-xml etc...), so the configure script line only defines what will be hardlinked into the main php4 apache module.

Forgive the ignorance here as I have only scratched the surface of php programming but does this mean that php itself is modular in a similar manner to the way that Apache is modular? Is it intended to be this way or does Debian mangle it to suit its own purposes? Basically I am trying to compile/build a minimal hosting system that mimics the Debian installation style but this whole situation is making it very difficult.
 
Old 10-28-2005, 02:43 PM   #2
birdseye
Member
 
Registered: Mar 2005
Location: Wales, UK
Distribution: Gentoo, Debian, Ubuntu
Posts: 60

Rep: Reputation: 15
Hi there,

I am not an expert at administering Debian, but I have had to get php working with mysql. The package that allows apache to work with mysql is different to the one for php. php needs the php-mysql (that is not the package name) packages in order to be able to access mysql databases. It includes the functions and all that, which provides the necessary functionality.

Hope that helps,

Rhys
 
  


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
Re-compiling PHP lumux Linux - Software 1 01-12-2004 01:25 PM
compiling PHP 4.3.4 bmw5002 Linux - Software 2 12-27-2003 02:01 PM
Compiling PHP Risen Linux - Software 3 10-13-2003 12:28 PM
compiling PHP WiWa Linux - Software 4 10-07-2003 09:16 AM
Re-compiling PHP with GD library ubers0ldat Linux - Software 1 08-20-2003 02:59 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration