BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old September 19th, 2002, 11:48 AM
SiS SiS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Denmark
Posts: 66 SiS User rank is Corporal (100 - 500 Reputation Level)SiS User rank is Corporal (100 - 500 Reputation Level)SiS User rank is Corporal (100 - 500 Reputation Level)SiS User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 58 m 27 sec
Reputation Power: 12
Send a message via ICQ to SiS
Install/fetch the latest version of PHP

Just having installed FreeBSD v.4.5-RELEASE, and beeing a total n00b at BSD/*NIX systems, i'm trying to learn more about this whole thing.

I have allready iinstalled/setup SSH, Samba and Apache.
But there is no PHP, so this is next.
Having search on google.com/bsd and theese forums, I still can't figure out howto do it!!

I would like the latest version.

Is there some good toturials for new users to BSD?
Or could anyone point me in the right direction, perhaps just some keywords on what to look into.

BTW I have tried to do a make install in the ports/www/mod_php4 dir, but it gives me some wierd error, so I'm looking for some guides/howtos on this subject

Thanks alot
Simon
__________________
I always wanted to be somebody, guess I should have been more specific

Reply With Quote
  #2  
Old September 19th, 2002, 02:31 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
The current version of FreeBSD is 4.6.2 and within two or more or less weeks, we will have 4.7..

However, care to post what's error that you are getting? My first guess would be.... You need to update the ports tree first by CVSup, right before use the ports. But, I highly recommend you to update your system by do the CVSup the source, then buildworld/recompile kernel first, then update the ports tree second..

Just read the great doc of handbook over at www.freebsd.org .. It's near walk-throught-doc..

Reply With Quote
  #3  
Old September 22nd, 2002, 08:47 PM
basher basher is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Missouri
Posts: 55 basher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to basher
I just installed 4.6.2 and configured Apache with MySQL and PHP.

Here's pretty much what I did, the install instructions for PHP lay it all out:

cp httpd-2.0.40.tar.gz in /tmp
cd /tmp
gunzip httpd-2.0.40.tar.gz
tar xf httpd-2.0.40.tar
cp php-4.2.3.tar.gz /tmp
gunzip php-4.2.3.tar.gz
tar xf php-4.2.3.tar
cd httpd-2.0.40
./configure --prefix=/usr/local/apache2 --enable-module=so
make
make install
cd /php-4.2.3
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
make
install
ee /usr/local/apach2/conf/httpd.conf
Add lines:
AddType application/x-httpd-php php php4 html htm
LoadModule php4_module modules/libphp4.so (MAY BE present)
cp php.ini-dist /usr/local/lib/php.ini
Mysql - cd /usr/ports/databases/mysql323-server
make
make install

It took a few minutes for PHP to apply to Apache. I always check the PHP install by creating a index.html file in the document root of your web server with these lines:
<?php
phpinfo ();
?>

If it displays your PHP info, your good to go.

Reply With Quote
  #4  
Old September 23rd, 2002, 12:21 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 49 m 40 sec
Reputation Power: 797
You'd probably want to unzip the files to somewhere in /usr/local/src instead of /tmp. Also, you might want to use --prefix=/usr/local instead of /usr/local/apache2 and adjust the other /usr/local/apache2/... paths accordingly, so that you can keep up to the file hierarchy standards. If you want more information about the standards, I suggest you read man hier for more details.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Install/fetch the latest version of PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway