|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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.. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Install/fetch the latest version of PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|