Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql problem #1

Open
vinniec opened this issue Apr 30, 2018 · 0 comments
Open

mysql problem #1

vinniec opened this issue Apr 30, 2018 · 0 comments

Comments

@vinniec
Copy link

vinniec commented Apr 30, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant