jcul / lwt-docker Goto Github PK
View Code? Open in Web Editor NEWLearning With Texts Docker
Learning With Texts Docker
My docker-fu is bad. And this is no longer available from SourceForge as of 2020-09-18. It was taken down by the original author/maintainer, citing legal dispute.
1.6.3 is believed to be the latest release code. Link to the 1.6.3 tag at my gitlab repo:
https://gitlab.com/paraplegicracehorse/mirror-learning-with-texts/-/tree/1.6.3
the dockerfile no longer works, I tried to modify it to run but there are problems with mysql
this is the page content when I try to reach http: // localhost: 8010 /
Fatal Error: DB connect error (MySQL not running or connection parameters are wrong; start MySQL and/or correct file "connect.inc.php"). Please read the documentation: http://lwt.sf.net [Error Code: 1698 / Error Message: Access denied for user 'root'@'localhost']
Backtrace:
#0 my_die(DB connect error (MySQL not running or connection parameters are wrong; start MySQL and/or correct file "connect.inc.php"). Please read the documentation: http://lwt.sf.net [Error Code: 1698 / Error Message: Access denied for user 'root'@'localhost']) called at [/var/www/html/utilities.inc.php:3360]
#1 require_once(/var/www/html/utilities.inc.php) called at [/var/www/html/index.php:46]
Perhaps the error is the same as mentioned here: https://sourceforge.net/p/lwt/discussion/1813497/thread/26bc0075/
Here the modified dockerfile:
# Set up LLMP server
RUN apt-get update && apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y lighttpd php-cgi php-mysql unzip mysql-server mysql-client
RUN lighttpd-enable-mod fastcgi
RUN lighttpd-enable-mod fastcgi-php
RUN rm /var/www/html/index.lighttpd.html
# Install LWT
#COPY lwt_v_1_6_2.zip /tmp/lwt.zip
ADD http://downloads.sourceforge.net/project/lwt/lwt_v_1_6_2.zip /tmp/lwt.zip
RUN cd /var/www/html && unzip /tmp/lwt.zip && rm /tmp/lwt.zip
RUN mv /var/www/html/connect_xampp.inc.php /var/www/html/connect.inc.php
RUN chmod -R 755 /var/www/html
EXPOSE 80
CMD /etc/init.d/mysql start && /etc/init.d/lighttpd start && sleep infinity
# docker built -t lwt .
# docker run -it -p 8010:80 lwt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.