Giter VIP home page Giter VIP logo

lwt-docker's People

Contributors

jcul avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

lwt-docker's Issues

mysql problem

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.