Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-01-2005, 05:42 AM   #1
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
Question Linux, Apache, PHP, MySQL

I have a server at home running slack 9.0. It runs as a mailserver(postfix), with courier-imap, and DNS server. I have fooled around a bit and tried to install apache, php first. Did something wrong, and that didn't work. I removed most of what I could find, but some things left behind I guess.
Last night I installed apache 1.3.27 (from slack 9.0 package), php 4.3.1(from slack 9.0 package) and mysql 3.23.56 (from slack 9.0 package)
Apache runs ok, along with php4 as .so module.

I can use mysql console and add users, databases, and everything else one can actually do with mysql console.

When I run a php script with: phpinfo(); I get:
Configure Command: 'lots of different stuff' '--with-mysql=/shared' 'lots more'

I know I should have more MySQL stuff further down in this list, but this is not there. What I am unsure of is this:
I use: LoadModule php4_module libexec/

I'm unsure if this is a .so file created when I tried and failed with php4.3.9 last time, or if this was made when I installed php from .tgz package.

When I start mysqld it uses basedir=/usr datadir=/var/lib/mysql

Should I remove apache, php and mysql using pkgtool, and remove the file, and install fresh from source, using the the correct --with-etc, and then see what happens?
I have downloaded apache 1.3.33, php4.3.10 and mysql-max4.1.10. (All as source .tar.gz files)

Anyone understand what I've tried to explain here, or have I done a poore job explaining?

Any help greatly appreciated.

Old 03-01-2005, 07:19 AM   #2
LQ Newbie
Registered: Dec 2003
Location: Gothenburg, Sweden
Distribution: Fedora | RedHat
Posts: 13

Rep: Reputation: 0
Hej akilles,

If you are using a recent version of Slackware, why not use the newest version of Apache? I know lots of people who use older versions but 2.0 is stable, more secure and better.

*.so files are "shared object" files. They are code libraries that php or other tools use.

What are you trying to accomplish with the LAMP (Linux, Apache, MySQL, Php) setup? Are youtrying to access the database over the web?
Old 03-01-2005, 07:48 AM   #3
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Original Poster
Rep: Reputation: 15
Hi there, gnube. (I see you're a neighbour of mine, Sweden)
Thanks for your reply.
I know apache 2.0 is out, but I tried that once, and it didn't want to do anything I told it.
The computer is old, and have limited resources, so I've opted for using: apache 1.3.33, php 4.3.10 and mysql-max 4.1.10.

I'm trying ty access and use MySQL databases via LAN using this server as a webserver. The server has no connection to the internet.
I'm developing scripts and programs in PHP, and I also want to do this at home, so I need to get it running.

Tonight I'll remove the packages installed from slackware, and install all three from source and see what happens.

If it works, I'll post it here.

Old 03-01-2005, 10:33 AM   #4
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You might want to move to a newer version of Slackware.....Out of the box, 10.1 PHP and mySQL work together. No hassling with compiling options.
Old 03-02-2005, 02:43 AM   #5
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Original Poster
Rep: Reputation: 15
Thought about re-doing the server, and upgrading to 10.1, but that would mean reconfiguring everything on the server, and that wasn't appealing.
Anyway, I did everything again yesterday, and I thought I'd downloaded the source tarball of mysql, but I had downloaded a binary distribution.
After configuring and installing apache, I extracted mysql and set permissions correctly on the different folders, I configured php with mysql support, and pointed to the right folder. (Guess how excited I was when testing time came.)
I edited httpd.conf and used ScriptAlias to use php. (Didn't have, which was a configuring error on my part.)
Testing, and everything worked like a charm.
(apache1.3.33, mysql4.1.10 and php4.3.10) This is all running on my old P200MMX pc, with 64MB ram and 2.1GB hdd.



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
Linux + Apache + PHP + ??MySQL/PostgreSQL?? Thakowbbery Linux - Enterprise 4 10-28-2005 03:18 PM
LAMP(Linux, Apache, MySQL, PHP) Problem gamehack Slackware 7 08-17-2004 02:52 PM
Installing Apache,MySQL&PHP on Linux foo_mulan Linux - Newbie 1 07-16-2004 01:29 AM
Linux 8.0 installed with Apache 2.0, PHP and MySQL fmagoufis Linux - Newbie 1 12-12-2002 01:13 PM
VMWare, RH Linux 7.3, Apache, MySQL and PHP xibernex Linux - Software 2 06-17-2002 09:57 AM > Forums > Linux Forums > Linux - Newbie

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