This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gemini-php [2020/09/28 03:15] admin |
gemini-php [2025/03/26 22:51] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Gemini-PHP ====== | ====== Gemini-PHP ====== | ||
- | A Gemini server written in PHP. This code is designed to be simple to understand (we'll use it in our socket programming workshops). If you have any questions or want to get in touch, you can join our community on Matrix at **#gemini-php:glasgow.social** | + | A [[https://gemini.circumlunar.space/|Gemini]] server written in PHP. This code is designed to be simple to understand (we'll use it in our socket programming workshops). If you have any questions or want to get in touch, you can join our community on Matrix at **#gemini-php:glasgow.social** |
Our offical Gemini page is **[[gemini://glasgow.social/gemini-php]]** | Our offical Gemini page is **[[gemini://glasgow.social/gemini-php]]** | ||
Line 6: | Line 6: | ||
===== Download ===== | ===== Download ===== | ||
- | You can [[https://coding.openguide.co.uk/gitweb/?p=gemini-php;a=summary|view the source]], download the [[https://coding.openguide.co.uk/gitweb/?p=gemini-php;a=snapshot;h=HEAD;sf=tgz|latest tarball]] or git clone it via: | + | You can [[https://git.mckillop.org/gitweb/?p=gemini-php;a=summary|view the source]], download the [[https://git.mckillop.org/gitweb/?p=gemini-php;a=snapshot;h=HEAD;sf=tgz|latest tarball]] or git clone it via: |
<code bash> | <code bash> | ||
git clone https://coding.openguide.co.uk/git/gemini-php/ | git clone https://coding.openguide.co.uk/git/gemini-php/ | ||
Line 23: | Line 23: | ||
* Combine your private key with the certificate and put it in the ''certs'' directory | * Combine your private key with the certificate and put it in the ''certs'' directory | ||
<code bash> | <code bash> | ||
- | * cp cert.pem certs/combined.pem | + | cp cert.pem certs/combined.pem |
- | * cat key.pem >> certs/combined.pem | + | cat key.pem >> certs/combined.pem |
</code> | </code> | ||
* Create a config file | * Create a config file | ||
Line 37: | Line 37: | ||
* You should be able to visit your new server in any Gemini client (remember to open your firewall if needed [port 1965]). | * You should be able to visit your new server in any Gemini client (remember to open your firewall if needed [port 1965]). | ||
* The default file it serves (like an index.html) is at ''hosts/default/index.gemini'' | * The default file it serves (like an index.html) is at ''hosts/default/index.gemini'' | ||
+ | * We recommend [[https://github.com/skyjake/lagrange|Lagrange]] if you haven't settled on a Gemini client yet. |