It isn't rocket science.bsaidus said:So my question is: is there any tutorial on how to install php as a cgi for apache.
cd /usr/ports/lang/php5
make install clean
(enable the Apache module)
SirDice said:It isn't rocket science.
Code:cd /usr/ports/lang/php5 make install clean (enable the Apache module)
Handbook: 5.6 Using the Ports Collection
# portsnap fetch update (or extract, consult portsnap())$ cd /usr/ports/lang/php5# make config# make fetch-recursive# 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.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.