LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 12-11-2009, 03:43 AM   #1
rctelles
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
Fiddling with linux again. Still a newb.


Hello, my name is Ricky. I consider myself pretty technical but for some reason or another I've always been loyal to the commercial software I was brainwashed into using with the purchase of a new PC. While Im still not able to completely ween myself from this commercial software for gaming reasons, and the fact im so used to it since the early days of computing, I am making headway again with linux.

All by myself I was able to get CentOS 5.4 installed on a seperate hard drive and to dual boot. I like it like I liked Ubuntu when I first tried it, although I didnt continue using it because it was slow on my old pc. Anyway, I got everything installed and was able to use the version of apache and php that come with CentOS 5.4 successfully. The version was a bit older than the one on the WAMP server I am trying to replace, so I installed Apache 2.2.11. The server works fine by itself, but then I tried to install it with PHP/MySQL and kept getting confused, frustrated, and ultimately a little upset. I forget the exact error but I was following the instructions on php.net for installing php/mysql but it was saying something about not being able to find the header files for mysql when configuring PHP.

I kind of just gave up and just left it as a lonely Apache 2.2.11 server with no other "frills" like php/mysql. Obviously this no es bueno (not good). Basically I am trying to re-create this setup on CentOS 5.4:

Apache 2.2.11
PHP 5.2.11
MySQL 5.1.36

I will be playing with Joomla! on this setup so the php version needs to remain < 5.3.

Any tips, pointers, guides or other information is much appreciated. Please dont hurt me if this belongs in the servers forum.

PS. the reason I am using CentOS is because the VPS host I am planning to use will be using CentOS.
 
Old 12-11-2009, 06:41 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Hi Ricky. If something complains about missing header files, it usually means you need to install the devel package for whatever program it's complaining about. In your case that probably means installing mysql-devel.

I've not used Centos so I don't know the exact details, but open your package manager and look for something like mysql-dev or mysql-devel and install that, then re-follow your instructions for installing PHP.

Also, in future could you make you post title something relating to your problem please? It means that those of us who browse the topics to see what we can help with have a good idea before opening the thread of whether we'll be any use or not!

Cheers,

Steve
 
Old 12-11-2009, 02:18 PM   #3
rctelles
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Komakino View Post
Hi Ricky. If something complains about missing header files, it usually means you need to install the devel package for whatever program it's complaining about. In your case that probably means installing mysql-devel.

I've not used Centos so I don't know the exact details, but open your package manager and look for something like mysql-dev or mysql-devel and install that, then re-follow your instructions for installing PHP.

Also, in future could you make you post title something relating to your problem please? It means that those of us who browse the topics to see what we can help with have a good idea before opening the thread of whether we'll be any use or not!

Cheers,

Steve
Sorry about that. I will next time. I tried installing the version of MySQL I wanted but I couldnt figure out where it installed it.
 
Old 12-11-2009, 05:32 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally Posted by rctelles View Post
Sorry about that. I will next time. I tried installing the version of MySQL I wanted but I couldnt figure out where it installed it.
No problem

Did you have any luck with getting the mysql development files from your repository? I'm fairly certain getting them installed will solve your problem.
 
Old 12-11-2009, 05:36 PM   #5
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Actually - I'd recommend a different route.
Try XAMPP - if you're not going for a production class web server, XAMPP is a crazy easy way to get an apache/mysql/php set up running for development and testing.
 
Old 12-11-2009, 05:40 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally Posted by MBybee View Post
Actually - I'd recommend a different route.
Try XAMPP - if you're not going for a production class web server, XAMPP is a crazy easy way to get an apache/mysql/php set up running for development and testing.
Not something I've heard of. Some sort of config tool?
 
Old 12-12-2009, 03:03 AM   #7
rctelles
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by MBybee View Post
Actually - I'd recommend a different route.
Try XAMPP - if you're not going for a production class web server, XAMPP is a crazy easy way to get an apache/mysql/php set up running for development and testing.
I actually want to learn this so that I will be comfortable deploying a server that will serve as the server of one of my website projects. I may just hold off though and keep a shared hosting account until I really need it. In that case I will probably go with the cPanel "managed hosting" version of my hosting companies dedicated servers.

I have kind of given up on CentOS a little. I got Ubuntu installed where CentOS was and am pleased with it. I may try to learn a few more linux things before trying to make even a testing server again. XAMPP might even be a good learning point who knows, lol. But Ill need DNS, email, FTP, etc on my website server.
 
Old 12-12-2009, 01:55 PM   #8
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Quote:
Originally Posted by Komakino View Post
Not something I've heard of. Some sort of config tool?
More like a pre-built dev package: http://www.apachefriends.org/en/xampp.html

Not really what the OP is looking for, though. Sounds like you want more of an Apache config guide?

http://www.linuxhelp.net/guides/apache/
 
  


Reply


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
Suse Newb: Not Linux Newb rodericj SUSE / openSUSE 9 03-25-2005 11:03 AM
The first step to ascending newb status, acknowledging you're a newb :P LordRaven LinuxQuestions.org Member Intro 1 08-24-2004 06:05 PM
Fiddling with Menudrake (10.0 Community) Napper Mandriva 11 03-22-2004 05:53 AM
String fiddling ujotne Programming 1 09-11-2003 05:14 PM
fiddling with lilo.conf rvijay17 Linux - Newbie 3 02-24-2003 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:24 PM.

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