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! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-01-2005, 06:42 AM
|
#1
|
Member
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139
Rep:
|
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/libphp4.so
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 libphp4.so 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.
-Geir
|
|
|
03-01-2005, 08:19 AM
|
#2
|
LQ Newbie
Registered: Dec 2003
Location: Gothenburg, Sweden
Distribution: Fedora | RedHat
Posts: 13
Rep:
|
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?
|
|
|
03-01-2005, 08:48 AM
|
#3
|
Member
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139
Original Poster
Rep:
|
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.
-Geir
|
|
|
03-01-2005, 11:33 AM
|
#4
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
03-02-2005, 03:43 AM
|
#5
|
Member
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139
Original Poster
Rep:
|
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 libphp4.so, 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.
-Geir
|
|
|
All times are GMT -5. The time now is 10:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|