Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-10-2004, 12:09 PM   #1
LQ Newbie
Registered: Oct 2004
Location: Lenexa, KS
Distribution: Slackware 10.2
Posts: 7

Rep: Reputation: 0
Debian, Apache, PHP, MySQL

I am working in my first bits of Linux and have hit a snag that I just cannot solve. I did a mostly default install of the Debian client using the SARGE installer.

Debian: Test version 2.4.27
Apache: 1.3.31
MySQL (most recent from apt-get)
PHP4 (most recent from apt-get)

As I do not really know what I'm doing yet, I have been using a guide I found online Which gave me the following instructions:

If you changed the /etc/apt/sources.list file pull package updates over the Internet and you have modem connection be sure to dial up your ISP before proceeding. (It's only about a 630K download.) To add PHP4 to your server enter the command:

apt-get install php4

At the end of the package installation answer No to the prompt to run the Apache configuration tool. We'll take care of that manually by enterting the command:

ee /etc/apache/httpd.conf

Arrow down until you find the section with all of the LoadModule statements and add the following statement at the bottom of them:

LoadModule php4_module /usr/lib/apache/1.3/

Then exit the editor saving the file. You'll also want to configure PHP to work with the MySQL database. To do that open the PHP configuration file with the command:

ee /etc/php4/apache/php.ini

Look for the Dynamic Extensions section in the file for the line:

; extension

and remove the ; character from the beginning of the line to uncomment it. Then exit the editor saving the file.

There's a lot you can do with PHP that doesn't have anything to do with databases. However, if you want to use your PHP pages to access MySQL databases, you'll have to install MySQL and a libraries package. To install the MySQL package, enter:

apt-get install mysql-server

Press Enter at the password notification screen and again at the purge databases screen to accept the default No selection (this is to remove any old MySQL files that may be on a system - which yours shouldn't have). Select Yes to start MySQL at boot up.

Now we install the library files with the command:

apt-get install php4-mysql

That's it! All we have to do is restart Apache so the PHP module gets loaded with the command:

/etc/init.d/apache restart

Now, when I try to restart Apache, I get an error stating that does not exist. I then tried to fix the problem by finding and putting it in the directory. I found in /usr/lib/apache2/modules/, so I proceeded to copy the file to /usr/lib/apache/1.3/

After putting the file into the directory, I get another error which is as follows:
Syntax error on line 205 of /etc/apache/httpd.conf; Cannot load /usr/lib/apache/1.3/ into server: /usr/lib/apache/1.3/ undefined symbol: unixd_config

What I don't understand is why do I have apache 2 packages installed when I am running v1.3. Also I have no clue what this error does or means and I cannot find a lick of information about it online.

Any help or insight is much appreciated. I'll keep researching it and try to find a solution online, but I'm losing hope fast of figuring this out!

Thanks in advance!
Old 10-10-2004, 02:27 PM   #2
LQ Newbie
Registered: Oct 2004
Location: Lenexa, KS
Distribution: Slackware 10.2
Posts: 7

Original Poster
Rep: Reputation: 0
Still working on this!
Old 10-30-2004, 07:51 AM   #3
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
I ran into the same problem ...

I did following :

dpkg -l | grep apache

and I removed every single package containing apache2 like this :

# apt-get remove xxpackagenameyoufoundxxx
# dpkg --purge xxpackagenameyoufoundxxx

sometimes when you try to run apt-get remove xxxpackagenameyoufoundxxx it wont work cause the packagename does not correspond ...

then you have to do this :

apt-cache search packagename from dpkg -l without the version number, then do an apt-get remove with the package name that corresponds more or less from your dpkg -l ...

if you removed all the apache2 stuff you can do a find / -name apache2 to be sure you removed everything ...

I reinstalled all my packages, reinstalled apache (ver 1.3 !!!!) and php4 ...

keep posted, we'll fix your prob


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
Debian + Apache + PHP + = Error critical Linux - Software 4 08-04-2005 05:18 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
Apache / PHP / Mysql config problem - debian bandit Linux - Software 14 09-03-2003 10:04 AM
php-mysql-apache spako Linux - Newbie 1 08-16-2003 08:05 AM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 07:23 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration