FreeBSD port for 1.5.0

#1
Past 5 days I tried to make a FreeBSD port.
Seems it still has some obstacles before it's perfect (both the source as the port), but... I was getting somewhere.
If you wish to have a look:

Code:
portsnap fetch extract
fetch https://dns.company/downloads/openlitespeed/lsws.shar.txt
sh lsws.shar.txt
mv openlitespeed /usr/ports/www/
cd /usr/ports/www/openlitespeed
make install clean
*should do the job*

You might need to install devel/rcs and dns/udns manually - as said the port isn't perfect yet.

If I install the port as described above it works for me.
But if I test in poudriere it fails - will post on this later.

If you have any pointers or comments please leave them here, or at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234728
 
#3
I've updated the port - the URL / instructions remain equal.
So... it's now working! - as long you keep at least the "required options".
Still it ignores a number of configure options, like for example it insists in embedding it's own openssl, even if you ask for boringssl, or like installing php5 (EoL, unmaintained) while asking for php7.

Has this knowledge base covered the OpenLitespeed installation on FreeBSD already?
https://openlitespeed.org/kb/installation-from-source-code/
It's one way. But I'm trying to have this commited to the freebsd ports repository; then installing OpenLitespeed (including all depencies) on a default FreeBSD system would as easy as a truly "single-line install" command:
Code:
pkg install openlitespeed
What I would wish for would be a (not OS specific) list of requirements and optional dependencies stating what functionality they serve.
For example I see Bash and gettext being used. I'm curious what I'm missing out because of not having certain dependencies.
Further my install still complains about not having wget and even about not having apt-get.

Anyway, it's a start, and I hope other users would be happy with it, and hopefully contribute.
Next thing I'd like to spend some time on is adding LSMCD, which seems to have atomic issues.
 

Pong

Administrator
#4
'm trying to have this commited to the freebsd ports repository; then installing OpenLitespeed (including all depencies) on a default FreeBSD system would as easy as a truly "single-line install" command:
Code:
pkg install openlitespeed
Great effort. Thanks for that.

apt-get, wget etc are more system level thing, you may need there if you compile OpenLiteSpeed from source, but you won't need them to run.
Let us know if you have any questions during the effort.
 
#5
I've tried to install this.. and came across a few minor bugs but also a show-stopper..
background: when I originally downloaded and compiled from source, I got a segmentation fault on install, caused i think by running the downloaded admin.php

2019-02-24 08:59:40 URL:http://www.litespeedtech.com/packages/lsphp5_bin/x86_64-freebsd/lsphp5 [4651136/4651136] -> "/usr/local/lsws/admin/fcgi-bin/admin_php" [1]
admin_php downloaded.
Generating key pair for web console login page, please wait ...
Generating RSA private key, 512 bit long modulus
......++++++++++++
............................................................................................++++++++++++
e is 65537 (0x10001)
Segmentation fault
chown: /usr/local/lsws/admin/conf/jcryption_keypair: No such file or directory
chmod: /usr/local/lsws/admin/conf/jcryption_keypair: No such file or directory
[OK] The startup script has been successfully installed!

It ran.. but I decided to try your port instead..

So this installed very nicely without errors but when trying to start I found that there was a symbolic link in
/usr/local/etc/openlitespeed/lsws/bin/lshttpd -> which pointed to ./openlitespeed which did not exist.. so I created a symbolic link from
/usr/local/etc/openlitespeed/lsws/bin/openlitespeed to
/usr/local/bin/openlitespeed

I could then run the system fine.. but it wont allow me to save any virtualhost config.. which is strange because the permissions were correctly set to 'www' for the config files and openlitespeed is running as www.. so I changed the permissions on the config files to 666 and directories to 777 and it then fixed the problem and I can then create Virtualhosts.. however, all that is created is an empty config file:
ls -l test/vhconf.conf
-rw-rw-rw- 1 www wheel 0 Feb 23 23:09 test/vhconf.conf
So clearly I have some kind of permission issue.. or editting issue..
I Also had to do the same for /tmp/lshttpd/swap setting it to 777 along with subdirectories..

2019-02-24 09:35:51.907124 [NOTICE] [87.75.107.42:49221:HTTP2-97#_AdminVHost] [STDERR] cmd restart

failed to connect to server! socket_connect() failed: Permission denied uds://usr/local/etc/openlitespeed/lsws/admin/tmp/admin.sock.7888
2019-02-24 09:35:57.346198 [NOTICE] [87.75.107.42:49221:HTTP2-123#_AdminVHost] [STDERR] PHP Warning: file_get_contents(/tmp/lshttpd/lshttpd.pid): failed to open stream: No such file or directory in /usr/local/etc/openlitespeed/lsws/admin/html.open/lib/ControllerBase.php on line 459

the lshttpd.pid doesnt seem to be anywhere..
will update if I make progress..

Jonathan
 
Top