Question Webserver for local webtrees - Installing via Macports
- Pb
- Topic Author
- Offline
- New Member
- I am retired
Less
More
10 months 4 weeks ago #1
by Pb
Webserver for local webtrees - Installing via Macports was created 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?
(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
- Greetings from Utrecht, Holland
10 months 4 weeks ago #2
by bertkoor
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:
The article you linked to states:
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)
stamboom.BertKoor.nl runs on webtrees v2.1.20
Replied by bertkoor on topic Webserver for local webtrees - Installing via Macports
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:
Then that page says it's PHP 5.6 only, which is not suitable for webtrees 2.xFor information on integrating Apache with MySQL and PHP, see MAMP.
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)
No you don't need it to be encrypted, since all http traffic is local.Also do I need Apache SSL/TLS Encryption?[/i]
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
- I am retired
10 months 4 weeks ago #3
by Pb
Replied by Pb on topic Webserver for local webtrees - Installing via Macports
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.
- fisharebest
- Offline
- Administrator
10 months 3 weeks ago #4
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Webserver for local webtrees - Installing via Macports
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.
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
- I am retired
10 months 3 weeks ago #5
by Pb
Replied by Pb on topic Webserver for local webtrees - Installing via Macports
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.
I guess I'll go back to Homebrew.
Please Log in or Create an account to join the conversation.