mysql problem
vinniec opened this issue · comments
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