LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-13-2004, 03:40 AM   #1
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Rep: Reputation: 30
PHP in Linux equivalent of Program Files and System32


Getting used to FC2 now.
I downloaded php.tar.gz and now I want to know where should I extract the files to ?
For Windows 2003, I had it in C:\Program File\PHP and the php4ts.dll in C:\Windows\System32. Whats the equivalent for that in FC2 or Linux for that matter.

Ok. We can extract to anywhere - even in Windows its no prob - but I would like to have it in the common place like C:\Program Files - so where do these go in Linux ?
Thanks
 
Old 11-13-2004, 11:58 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Standard *nix directories...

Try this:

http://www.pathname.com/fhs/pub/fhs-2.3.html

When building a package from source, I usually just run "./configure" and "make install" and let the package install itself where ever it wants (typically, into /usr/local).

When I install a "package", I tend to install it into /opt.

And finally, on my SuSE Linux, PHP happens to be installed here:

/usr/local/bin/php
/usr/local/lib/php
/usr/local/include/php

Hope that helps .. PSM
 
Old 11-13-2004, 09:46 PM   #3
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Re: Standard *nix directories...

Quote:
Originally posted by paulsm4

When building a package from source, I usually just run "./configure" and "make install" and let the package install itself where ever it wants (typically, into /usr/local).
What do you mean building from source - compiling the source ? Isnt it just possible to extract and specify that location in httpd.conf as I did in Windows ?
 
Old 11-13-2004, 10:15 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

FC2 has PHP packae with it
why don't u use that itself???

regards
 
Old 11-13-2004, 10:46 PM   #5
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Alright. In that case where has is been installed to ? I need to know because I got to do this in Apache's httpd.conf file :
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
Also I'll need to overwrite the old php folder with php's content.
 
Old 11-13-2004, 10:52 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

wait a sec....
which httpd.conf file are u referring to???

try referring to /etc/httpd/conf/httpd.conf file
it maks the entries there by default

also install the rpm package for php the packages required that get my php running are

[root@gaurav root]# rpm -qa|grep php
php-pear-4.3.4-11
php-4.3.4-11
php-ldap-4.3.4-11

see that u have theese installed, or intall them from ur distro CD, u may not require all these

regards
 
Old 11-13-2004, 11:43 PM   #7
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
In Windows I just had to add
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
in the httpd.conf file. I thought similarly in Linux - /etc/httpd/conf/httpd.conf.
Because there is no keyword "php" in this file !
 
Old 11-13-2004, 11:53 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

i made no changes to my httpd.conf file to run php , just the php packages that came with the Distro

regards
 
Old 11-14-2004, 01:24 AM   #9
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Yes. PHP must have come with FC2 - but I bet its ver4 - So I want to replace that directory with vers 5
 
  


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
Equivalent to MS's "Program Files" Seiken Linux - Newbie 7 02-14-2005 05:24 AM
Does Linux have a Program Files directory? aznluvsmc Linux - Newbie 4 08-24-2004 08:26 PM
<windows root>\system32\hal.dll error forpar General 2 07-11-2004 09:12 AM
Equivalent program to MS Publisher ylkien Linux - Software 4 06-21-2004 05:05 PM
Opening M$ Access files in linux (need program) enigma Z Linux - Software 1 10-08-2003 07:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:38 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