LinuxQuestions.org
Visit Jeremy's Blog.
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 10-08-2005, 07:17 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 540

Rep: Reputation: 32
What distribution do I have?


I need to compile cURL into PHP. I went to PHP's site and read that I need to:
1) Download CURL and upload to the server
2) Re-configure PHP by running "./configure --with-curl[=DIR] --with-curlwrappers"
3) Make by running "make" and "make install"
4) Re-start Apahce with "/etc/rc.d/init.d/httpd restart"

But my problems are:
1) I don't know what distribution of Linux I have (am I using BSD, Fedora, etc)
2) I don't know which directory my Apache server is installed (don't know where to look on the page returned by phpinfo();

Can someone please guide me to determine the above 2?
 
Old 10-08-2005, 07:28 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Open a console and type in uname -a that will tell you the distro name.
Who installed your system/Apache? They can tell you where it is. Or do whereis apache or which apache.

Welcome to LQ
 
Old 10-08-2005, 08:24 AM   #3
grob115
Member
 
Registered: Oct 2005
Posts: 540

Original Poster
Rep: Reputation: 32
Hi. Thanks!
The host installed all software for me. I just the commands and saw the following:
#whereis apache
apache: /usr/lib/apache /usr/include/apache

#which apache
/usr/bin/which: no apache in (/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

#uname -a
Linux ns1.canreef.com 2.4.20-40.7mecca #1 Sat Feb 19 17:51:35 PST 2005 i686 unknown

Does it look like I have a problem with my Apache from the info returned by "which apache"?

"uname -a" returns the same info as the first line generated by "phpinfo();" but I still can't tell what Linux distribution I have.....

I'm not sure if I still have PHP's "configure" (btw is this configure script different for different software?) on the system. I guess I can find it if I download PHP's source code distribution?
 
  


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
What Distribution for me? NintendoFan Linux - Distributions 9 12-11-2005 07:20 PM
Distribution ftwomey Linux - General 2 05-02-2004 07:51 PM
Going from distribution to distribution safe? sausagejohnson Linux - General 8 04-30-2004 02:27 AM
What Distribution do you use? njbrain General 52 04-23-2004 10:34 AM
With Distribution is the best??? banana2 Linux - Distributions 9 12-22-2002 04:31 PM

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

All times are GMT -5. The time now is 07:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration