*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to install Apache 2, PHP and MySQL on my local FreeBSD.
Now i am running Apache on linux for local testing, but like to move it to FreeBSD as my servers are FreeBSD, so i can do local testing much better.
My problem is slow internet, i can just go to /usr/ports/www/apache2 && make install clean as it takes lot of time to get the distro files downloaded, i don't think i can ever do this with my slow internet, it get disconnected at times.
With Linux, i can download Apache or any software in tar.gz and install it on server, how can i do similar in FreeBSD, that is downloading required files manually to /usr/ports/distfiles
In the apache2 ports and other ports, you usually find these files :
*Makefile which contains the build mecanism
*distinfo which contains the filenames and their md5 sums.
*pkg-descr which contains the description of the package
*pkg-plist which contains the list of the files installed by the port
Have a look at distinfo file to determine the apache version needed and the filename. At the top of the makefile, you will probably find the sites to download from.
Most of the time you have to put files in /usr/ports/distfiles. Sometimes you have to put it in a subdirectory like gnome, etc. When you type make install clean, it will tell you the directory it wants and you just have to create it if it is not just /usr/ports/distfiles but /usr/ports/distfiles/subdirectory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.