Comments (10)
Hello! :)
MongoDB is the only required extension.
Did you run composer install
?
And can you share your Docker files?
Thanks.
from mongodb-php-gui.
Dockerfile:
FROM php:7.2-fpm
# Use the default production configuration
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN apt-get update
RUN pecl install mongodb
RUN apt-get install zip unzip
RUN docker-php-ext-enable mongodb
RUN rm -Rf /var/www/mongogui_src/
RUN mkdir -p /var/www/mongogui_src/
RUN mkdir -p /var/www/mongogui/
COPY ./src/* /var/www/mongogui_src/
WORKDIR /var/www/mongogui/
RUN mkdir -p /app
COPY run.sh /app/
# RUN composer install
# RUN composer update
# RUN composer dump-autoload --optimize
EXPOSE 9000
run.sh:
rm -Rf /var/www/mongogui/* && mkdir -p /var/www/mongogui/ && cp -R /var/www/mongogui_src/* /var/www/mongogui/ && composer install && composer dump-autoload --optimize && php-fpm
compose file:
mongogui:
container_name: mongogui
build: ./mongodb-php-gui
command: "sh /app/run.sh"
ports:
- 9000:9000
networks:
- api-network
- db-network
volumes:
- mongogui_volume:/var/www/mongogui
from mongodb-php-gui.
And when I target /index.php directly I have a weird redirect to /index.php/index too...
from mongodb-php-gui.
Can you try to remove && composer dump-autoload --optimize
from run.sh script?
from mongodb-php-gui.
I added it after to try fixing it so I guess it is not the culprit.
from mongodb-php-gui.
What do I do after running composer install? Is it running? What steps do I need to do to access the GUI?
from mongodb-php-gui.
- Check if MongoDB PHP extension is enabled
- Go to project dir & run
php -S 127.0.0.1:5000
- Open your browser at: http://127.0.0.1:5000/
from mongodb-php-gui.
I commited a Dockerfile and a little doc related to Docker. If problem persists, feel free to re-open an issue.
from mongodb-php-gui.
Thanks a lot, work like a charm.
Although I modified it a bit to be ssl friendly:
FROM php:7.4-cli-alpine
RUN apk update && apk upgrade
# Clone project repository.
RUN apk add --no-cache git
WORKDIR /opt/mongodb-php-gui
RUN git clone https://github.com/SamuelTS/MongoDB-PHP-GUI.git .
# Enable MongoDB PHP ext.
RUN apk add --no-cache autoconf build-base
RUN apk add --no-cache curl-dev openssl-dev
RUN pecl install mongodb-1.8.2 && docker-php-ext-enable mongodb
RUN pecl config-set php_ini /etc/php.ini
# Install PHP dependencies.
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer install
# Start PHP built-in server.
EXPOSE 5000
CMD ["php", "-S", "0.0.0.0:5000"]
from mongodb-php-gui.
@itschrono Thanks for the "SSL friendly" patch 😉
from mongodb-php-gui.
Related Issues (20)
- Secure login with hCatpcha HOT 1
- Add reference to the GitHub repository/issues HOT 1
- Quick edit full document entry HOT 3
- Import from CSV / Export to CSV HOT 1
- Login for user having only database specific roles HOT 1
- Deny access to private files to improve security HOT 1
- Provide tagged Docker image HOT 5
- Not working behind ingress controller HOT 2
- Various feature requests for navigation and search
- Database visualization gets really slow with huge dataset HOT 1
- Edit document null attribute doesn't work
- Support for ARM64 architecture HOT 4
- Login page: store multiple target connection URIs
- Login page: do not retain credentials
- How to query an ObjectId field not named _id? HOT 3
- Accessing through subdirectory (reverse proxy)
- No input file specified.
- URI login problem HOT 4
- How to deploy on kubernetes
- Optimization of data visualization
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongodb-php-gui.