Web based family history software

Question Webserver for local webtrees - Installing via Macports

  • Pb
  • Topic Author
  • Offline
  • New Member
  • New Member
  • I am retired
More
10 months 4 weeks ago #1 by Pb
For a local webtrees, has anyone tried to setup a local webserver (with Apache, PHP etc) using Macports?
(eg. [url] trac.macports.org/wiki/howto/Apache2 [/url] ). 
Is there anything I need be aware?
Also do I need Apache SSL/TLS Encryption?

 

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 months 4 weeks ago #2 by bertkoor

For a local webtrees, has anyone tried to setup a local webserver (with Apache, PHP etc) using Macports?
(eg. [url] trac.macports.org/wiki/howto/Apache2 [/url] ). 
Is there anything I need be aware?

Well, Apache on its own can only server plain files: txt, html, css, js, pdf, etc etc. What you need is integration with MySQL and PHP. Our homepage does state that:

All you need to use it is a website with PHP and MySQL installed.


The article you linked to states:

For information on integrating Apache with MySQL and PHP, see MAMP.

Then that page says it's PHP 5.6 only, which is not suitable for webtrees 2.x
MAMP has an installer of its own (with PHP8) which should work just fine as well:
www.mamp.info/en/mamp/mac/

When I did try MAMP some years ago, I did not like it at all. Then I tried to use XAMPP but that failed - probably due to some component of MAMP getting in the way, which I could not (bother to) completely uninstall. MAMP stands for 'Mac Apache MySql PHP', while the 'X' in XAMPP stands for 'cross-platform'.

I'm not familiar with MacPorts at all, this is the first time I heard of it. What I often use (and should have used with MAMP and XAMPP) is HomeBrew: brew.sh
With homebrew I know it can uninstall about anything I have installed without much chance it leaves things behind. Also it does not need to do any compilation like MacPorts states. The Mac platform is not linux, I see no need to pretend it is.

Another option to run webtrees locally on a Mac is to use Docker images:
github.com/NathanVaughn/webtrees-docker
hub.docker.com/r/nathanvaughn/webtrees/dockerfile

With docker on a Mac I don't use the standard Docker Desktop, the CLI of colima is good enough (also installed via brew)

Also do I need Apache SSL/TLS Encryption?[/i]
No you don't need it to be encrypted, since all http traffic is local.

stamboom.BertKoor.nl runs on webtrees v2.1.20

Please Log in or Create an account to join the conversation.

  • Pb
  • Topic Author
  • Offline
  • New Member
  • New Member
  • I am retired
More
10 months 4 weeks ago #3 by Pb
Thank you for your considered reply. Your view on Apache SSL/TLS Encryption is most welcome.

Please Log in or Create an account to join the conversation.

More
10 months 3 weeks ago #4 by fisharebest
I do all the webtrees development on a Mac.

I use homebrew to install most things.

But I also use a tool "laravel valet" which uses homebrew to install/configure all the webserver stuff automatically.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Pb
  • Topic Author
  • Offline
  • New Member
  • New Member
  • I am retired
More
10 months 3 weeks ago #5 by Pb
Thank you for the tip on Homebrew. I initially tried it gave up and am now trying with Macports.
I guess I'll go back to Homebrew.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum