LinuxQuestions.org
Visit Jeremy's Blog.
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 05-24-2005, 08:17 AM   #1
shadowhelm
LQ Newbie
 
Registered: May 2005
Location: Alabama
Distribution: Slackware 10.1
Posts: 5

Rep: Reputation: 0
Newbie Looking to upgrade AMP


I am a long time Windows and Microsoft SQL administrator looking to move to Linux development. I have chosen Slackware Linux in order to learn the internal workings of the system. I really want to get a strong base in command line operation before moving to the more user friendly/GUI based systems. Everything has gone well with the installation and I have had very few troubling issues...until now.

I am trying to learn PHP and MySql development and I want to start off with the current versions. PHP5 being the most critical. What I am having trouble with is finding good information on how to upgrade Apache, MySQL, and PHP. The Slackware 10.1 distribution comes with PHP4 along with older, but more stable versions of Apache and MySQL. I was wondering if it would be easier to remove the three packages with the Slackware package remove utility and then install everything fresh from source. Since this is a new server I really don't have to worry about loosing any configuration information. The book I am using to learn PHP has an Appendix that lays out a complete HOW-TO with regards to installing AMP including SSL and several other libraries.

Is this a workable solution to my issue? I really would like to find an upgrade document, but everything I have read so far (I have been google searching for two days now) has been fairly cryptic and definitely not written for new Linux users.

Thanks for any help.
 
Old 05-24-2005, 08:27 AM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Removing the packages and installing by source is a great way to take control of your machine and start the Linux conversion process

1. Install MySQL (default configure options are fine)
a. ./configure
b. make
c. make install

2. Install Apache2: (default configure options are fine)
a. ./configure
b. make
c. make install

3. Install PHP5
a. ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl
b. make
c. make install

Last edited by mdarby; 05-24-2005 at 08:32 AM.
 
Old 05-24-2005, 08:38 AM   #3
shadowhelm
LQ Newbie
 
Registered: May 2005
Location: Alabama
Distribution: Slackware 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Do you think I will run up against any dependency problems doing it that way? The instructions I have list several libraries to install with the setup including gd2 and PDFlib. The instructions seem detailed enough for me to follow without too much trouble. It seems like removing the old stuff and installing fresh is a lot easier than trying to upgrade. Of course at some point I would like to know how to upgrade as well, but I guess it is one thing at a time.

Thanks again.
 
Old 05-24-2005, 08:53 AM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
You don't need PDFLib & gd2 (unless you plan on using them of course). I've developed PHP/MySQL for years and I've never touched them

When it comes time to upgrade look into Swaret (swaret.sourceforge.net), or SlackPkg (http://slackpkg.sourceforge.net).
 
Old 05-24-2005, 10:43 AM   #5
shadowhelm
LQ Newbie
 
Registered: May 2005
Location: Alabama
Distribution: Slackware 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks,

Those two libraries are used as part of the tutorials that I am working through. GD2 is also used for photo album add-in for PHPBB2 that I am currently using on a hosted Linux website.

With the slackpkg application, does it remove old packages or should you do that first before installing the new package? The whole package/source file thing has been a major change in thinking for me when compared to windows software installs.

Last edited by shadowhelm; 05-24-2005 at 10:51 AM.
 
Old 05-24-2005, 11:12 AM   #6
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
I can empathize, I too used to admin Windows machines / networks.
Linux can be very difficult, but once you get it, you'll never go back.

You can get PDFLib Lite (free) from:
http://www.icewalkers.com/Linux/Soft...FLib-Lite.html

And GD2 from:
http://site.n.ml.org/info/gd2/

Essentially you extract, configure, make, and make install each package, and configure PHP as:
Code:
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl --with-gd2 --with-pdflib
As for updating Slackware, I personally use Swaret. There is holy war between Swaret and SlackPkg; I just happen to prefer Swaret. It allows you to upgrade the entire OS with one command:
Code:
swaret --upgrade

Last edited by mdarby; 05-24-2005 at 11:14 AM.
 
  


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
mandrake10.1 after upgrade kde3.3&gnome2.8 simple loginwith no choice & no desktop msalimane Mandriva 3 11-22-2004 08:27 PM
Newbie Fedora kernel upgrade help kevinb583 Linux - Newbie 2 10-12-2004 12:43 AM
Newbie seeks upgrade glibc & gcc on SuSE 7.0 sfarber53 Linux - Newbie 2 01-14-2004 09:17 AM
Newbie: Samba Upgrade question buzzvang Linux - Networking 4 09-17-2003 11:41 AM
Newbie Kernel upgrade ? & up2date rpm hell lsgko Linux - Newbie 2 08-06-2003 06:59 PM

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

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

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