mod_php does not exist in binary format

Hi.

I'm trying to install PHP as a module for Apache from the tbz package and I have found that it's not included in binary format and if I want to use it I must install it from the port. So my question is: is there any tutorial on how to install PHP as a CGI for Apache?

Thank you.
 
On FreeBSD machine connected to the internet do
# portsnap fetch update (or extract, consult portsnap())
$ cd /usr/ports/lang/php5
# make config
select options you want
# make fetch-recursive


Then transfer at least /usr/ports/distfiles to machine without internet connection and run # make install with same options selected above. Both machines should share same version of ports tree, otherwise you will end with files downloaded for some port version and trying to build some older version, so I would prefer to copy whole /usr/ports from connected machine to second one.

By the way, from page linked above
For users which cannot be connected all the time, the make fetch option is provided. Run this command within /usr/ports and the required files will be downloaded. This command also works in the lower level categories, such as /usr/ports/net. Note that if a port depends on libraries or other ports, this will not fetch the distfiles of ports from another category. Use make fetch-recursive to fetch all the dependencies of a port.

Reading definitely isn't rocket science :)
 
Using FreeBSD in a system that does not have an internet connection is a very very small niche, it's not anymore worth catering specially to people who can not or will not follow the advancements in technology.
 
Back
Top