Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on August 28, 2024 1

Starting the MySQL database fails for me:

Step 12/20 : RUN /bin/sh /etc/init.d/mysql start
---> Running in b00c41f5c48e

  • Starting MySQL database server mysqld
    ...fail!
    The command '/bin/sh -c /bin/sh /etc/init.d/mysql start' returned a non-zero code: 1

from daloradius.

lirantal avatar lirantal commented on August 28, 2024

unfortunately I don't have much time to handle that but if you find a fix to the Dockerfile config I'd be happy to merge it in.

from daloradius.

apatel-r avatar apatel-r commented on August 28, 2024

I could resolve this error just by starting mysql server as shown below. Now build is successful and could also start the container.

RUN /bin/sh /etc/init.d/mysql start

# Run MySQL server so that it initializes the database and seeds information
RUN chown -R mysql:mysql /var/lib/mysql /var/run/mysqld; /usr/bin/mysqld_safe & \
 sleep 10s && \
 /usr/bin/mysql --host localhost --port 3306 -u root --password="" -e "CREATE DATABASE radius" && \
 /usr/bin/mysql -u root --password="" radius < /var/www/html/contrib/db/fr2-mysql-daloradius-and-freeradius.sql

But now I am facing problem when I access the server. Page does not load properly and I can see following errors in /var/log/apache2/error.log even though following permissions are set for all the files.

-rw------- 1 www-data www-data

Also checked calling permission with "echo exec('whoami');" in index.php and its printing www-data only.

/var/log/apache2/error.log

[Sat Jul 21 13:38:10.995186 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include(library/checklogin.php): failed to open stream: Permission denied in /var/www/html/index.php on line 4
[Sat Jul 21 13:38:10.995231 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include(): Failed opening 'library/checklogin.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/index.php on line 4
[Sat Jul 21 13:38:10.995246 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice:  Undefined variable: _SESSION in /var/www/html/index.php on line 5
[Sat Jul 21 13:38:10.995312 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include_once(lang/main.php): failed to open stream: Permission denied in /var/www/html/menu-home.php on line 14
[Sat Jul 21 13:38:10.995321 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include_once(): Failed opening 'lang/main.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/menu-home.php on line 14
[Sat Jul 21 13:38:10.995383 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include_once(include/menu/menu-items.php): failed to open stream: Permission denied in /var/www/html/menu-home.php on line 22
[Sat Jul 21 13:38:10.995390 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include_once(): Failed opening 'include/menu/menu-items.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/menu-home.php on line 22
[Sat Jul 21 13:38:10.995446 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include_once(include/menu/home-subnav.php): failed to open stream: Permission denied in /var/www/html/menu-home.php on line 23
[Sat Jul 21 13:38:10.995453 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include_once(): Failed opening 'include/menu/home-subnav.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/menu-home.php on line 23
[Sat Jul 21 13:38:10.995459 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice:  Undefined variable: l in /var/www/html/menu-home.php on line 34
[Sat Jul 21 13:38:10.995464 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice:  Undefined variable: l in /var/www/html/menu-home.php on line 35
[Sat Jul 21 13:38:10.995469 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice:  Undefined variable: l in /var/www/html/menu-home.php on line 36
[Sat Jul 21 13:38:10.995473 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice:  Undefined variable: l in /var/www/html/menu-home.php on line 40
[Sat Jul 21 13:38:10.995478 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice:  Undefined variable: l in /var/www/html/menu-home.php on line 41
[Sat Jul 21 13:38:10.995531 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include_once(library/config_read.php): failed to open stream: Permission denied in /var/www/html/index.php on line 9
[Sat Jul 21 13:38:10.995538 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include_once(): Failed opening 'library/config_read.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/index.php on line 9
[Sat Jul 21 13:38:10.995578 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include(include/config/logging.php): failed to open stream: Permission denied in /var/www/html/index.php on line 11
[Sat Jul 21 13:38:10.995585 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include(): Failed opening 'include/config/logging.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/index.php on line 11
[Sat Jul 21 13:38:10.995620 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include(library/exten-welcome_page.php): failed to open stream: Permission denied in /var/www/html/index.php on line 23
[Sat Jul 21 13:38:10.995627 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning:  include(): Failed opening 'library/exten-welcome_page.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/index.php on line 23
[Sat Jul 21 13:38:10.995633 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice:  Undefined variable: l in /var/www/html/page-footer.php on line 25
[Sat Jul 21 13:38:11.002810 2018] [core:crit] [pid 458] (13)Permission denied: [client 172.17.0.1:42238] AH00529: /var/www/html/css/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/css/' is executable, referer: http://localhost/



from daloradius.

schoentoon avatar schoentoon commented on August 28, 2024

The change that @apurva356 shows actually works entirely for me. Your permission issue is probably related to something completely different.

from daloradius.

lirantal avatar lirantal commented on August 28, 2024

are there any changes needed to be made on the Dockerfile? If so, will you please open a pull request?

from daloradius.

chris-ryu avatar chris-ryu commented on August 28, 2024

Starting the MySQL database fails for me:

Step 12/20 : RUN /bin/sh /etc/init.d/mysql start
---> Running in b00c41f5c48e

  • Starting MySQL database server mysqld
    ...fail!
    The command '/bin/sh -c /bin/sh /etc/init.d/mysql start' returned a non-zero code: 1

I have same problem.

from daloradius.

Related Issues (20)

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.