Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th November 2006, 07:21
Nap Nap is offline
Senior Member
 
Join Date: Oct 2006
Posts: 150
Thanks: 10
Thanked 2 Times in 2 Posts
Default Ubuntu Dapper Drake with MySQL4 and Apache2/PHP4

Hi,

I'm fairly new to Linux, but through using Falko's Debian Sarge setup guide, I've been able to get my LAMP server running with ISPConfig.

I've decided to install Ubuntu Drapper on my machine that is currently running Debian because the Debian MySQL version (4.0.24) is too old for my requirments and wish to use packages rather than custom compiled binaries. My version requirements are based on the setup of my Website (courtesy of a commercial hosting company).

I have read a number of the great HOW TO's available however, none seem to do quite what I'm looking for. (I always seem to be the square peg when all the holes are round.)

I plan to follow the The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake) guide most of the way. But when I get to the part which installs MySQL5 and PHP5, I intend to install MySQL4 and PHP4 instead.

My main area of uncertainty has to do with package names, library dependancies and versions, since I am new to Linux. I need help with the apt-get install commandline to install MySQL4 and Apache2/PHP4 properly. I've seen a variety of commandlines in the HOW TOs but don't know which one I can use in my situation.

Can someone please help?
Can I follow that above guide as I indicated without getting myself into trouble?
Can I get a link to a suitable apt-get install commandline for MySQL4 and Apache2/PHP4 that will work how I would like it to?

Cheers,
Nap
Reply With Quote
Sponsored Links
  #2  
Old 13th November 2006, 19:43
Nap Nap is offline
Senior Member
 
Join Date: Oct 2006
Posts: 150
Thanks: 10
Thanked 2 Times in 2 Posts
Default

I've been looking at different install guides, but I can't seem to get the hang of which libraries are required in which cases. (If anyone has a reference I can read, that would be nice since it seems to me that there is no method behind it.)

For example: The line below will install MySQL5 on Unbunto according to Falko's The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake):
Code:
apt-get install mysql-server mysql-client libmysqlclient12-dev
But when I look at Ubunto's website the line below will install MySQL4:
Code:
mysql-server libapache2-mod-auth-mysql php4-mysql
I don't get it.

Can someone please advise the commandlines I need to use to install MySQL 4.1 and PHP4 while following Falko's The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake)?

Cheers,
Nap

PS.. Is there some sort of configuration tool out where you can specify the core modules (and perhaps optional extras) you want and in turn give you a commandline to use?
Reply With Quote
  #3  
Old 14th November 2006, 11:56
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,488
Thanks: 835
Thanked 5,525 Times in 4,346 Posts
Default

apt resolves all dependencies automatically. Why did you not just use php5 / mysql5 as mentioned in the howto?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 14th November 2006, 14:34
Nap Nap is offline
Senior Member
 
Join Date: Oct 2006
Posts: 150
Thanks: 10
Thanked 2 Times in 2 Posts
Default

My Web Site, hosted by a commercial company uses PHP 4.4.4.
If I do any development work in PHP5, there is a risk that it won't work on my site.

Cheers,
Nap
Reply With Quote
  #5  
Old 14th November 2006, 15:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by Nap
Can someone please advise the commandlines I need to use to install MySQL 4.1 and PHP4 while following Falko's The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake)?
You can search for the required packages like this:
Code:
apt-cache search php4
apt-cache search mysql
If you find suitable packages, you can intstall them with
Code:
apt-get install packagename
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 14th November 2006, 16:40
Nap Nap is offline
Senior Member
 
Join Date: Oct 2006
Posts: 150
Thanks: 10
Thanked 2 Times in 2 Posts
Default

Falko,

Thanks for your reply, but.
When I used:
Code:
apt-cache search mysql
I have about 4 (or more) pages of packages.
Do I install all of them?

With PHP4, I only get 2 pages.
Do I install all of them?



I just re-installed ISPConfig (as per Till's last advice 2 me), and after tweaking some of my phpBB forum config data, was able to get my forum to fire up. I have finally achieved what I set out to do 3 months ago. (Though I would ideally like to have the same versions running as my web hosting provider.)

Being a PC user/programmer for a long time, I've learned along the way that versions do matter. So, being new to Linux, and my Website (commercially hosted) having certain versions of Apache, PHP, MySQL, etc installed, I naturally wanted to match their specification (considering all the applications they use are Open Source). From my point of view, it made sense, since I would be more certain that something I developed on my develpment server would work on my website (and I would need to make minimal changes to code between the dev machine and the production machine).

I finally went head-2-head with Linux because of a need I had. Had I not had this need, I would have remained in my comfortable M$ world.

My experience with the Linux community has been mixed, and have come across many people who, rather than answer my questions, ask why I am asking the question, which, in turn, caused some lively debate on more than one occasion.
One example was when I asked about how to enable root account on Ubuntu (in the Ubunto Forum), instead of answering my question, I got a bunch of people preaching to me about how dangerous it was to do that. (My PC, My problem.) I've had similar occasions in the Debian Forum.

I got really frustrated with this paternalistic attitude in the Debian and Ubuntu communities. I didn't join the forums to make friends or enemies. It was to get/give help when I/someone needed it.

I have found this forum to be quite different. I really appreciate all the effort you guys have been putting in to help others in the community, I don't know if it's your job or you're doing it in your spare time. Whatever the case is, I take my hat off to all of your (Falko, Till, Hans, etc.) assistance.

However, no matter how many people you help, please, never forget that not all of us are experts, not all of us are beginners, and some of us have our reasons for wanting to do things a little different.


Cheers,
Nap
Reply With Quote
  #7  
Old 15th November 2006, 14:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by Nap
Falko,

Thanks for your reply, but.
When I used:
Code:
apt-cache search mysql
I have about 4 (or more) pages of packages.
Do I install all of them?
What's the exact output?

Quote:
Originally Posted by Nap
With PHP4, I only get 2 pages.
Do I install all of them?
What's the exact output?

Quote:
Originally Posted by Nap
I don't know if it's your job or you're doing it in your spare time.
HowtoForge is becoming a 24h job for Till and me...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 15th November 2006, 16:04
Nap Nap is offline
Senior Member
 
Join Date: Oct 2006
Posts: 150
Thanks: 10
Thanked 2 Times in 2 Posts
Default

Falko,

thnx again for your assistance, again.

As I currently have Debian installed, the apt-cache search command will obviously look at Debian packages, not Ubuntu.
I was hoping to get the MySQL 4 and Apache2/PHP4 commandlines before I started the Ubuntu install, so that it would go smoothly.

In the meantime, Till's advice about re-installing ISPConfig, after my MySQL update, has fixed the problem I was having with my Debian install. In fact, I am now able to run a mirror of my phpBB forum and Joomla on my server. This being the case, I'm satisfied with where I have gotten.

At this point, I will stay with Debian since I have a lot of work to catch up on. It's taken 3 months to setup the server, and I didn't expect it to take so long.

Do you still want me to give the output for the Debian apt-cache search? It is quite long.

Cheers,
Nap
Reply With Quote
  #9  
Old 15th November 2006, 16:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Quote:
Originally Posted by Nap
Do you still want me to give the output for the Debian apt-cache search? It is quite long.

Cheers,
Nap
No, as Debian has packages for PHP4 and MySQL4/4.1 only, but not for PHP5/MySQL5.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.