devilbox | modern Docker LAMP stack and MEAN stack | Continuous Deployment library
kandi X-RAY | devilbox Summary
kandi X-RAY | devilbox Summary
The Devilbox has everything setup for you. The only thing you will have to install is Docker and Docker Compose. Virtual hosts and DNS entries will be created automatically, just by adding new project folders. Documentation: Setup Auto DNS | Setup valid HTTPS | Configure Xdebug | Customize PHP.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get document links
- Returns navigation tabs
- Get a table definition
- Return the description of the database .
- Get privileges .
- Copy a table
- Build a version
- Create an inline crypt function for the mode .
- Parse a value .
- Returns a description of a collation
devilbox Key Features
devilbox Examples and Code Snippets
Community Discussions
Trending Discussions on devilbox
QUESTION
I got a working php-fpm docker container acting as the php backend to a nginx frontend. What I mean by working, is that it renders phpinfo output in the browser as expected. My php-fpm container was produced by php-fpm-7.4 prod of the devilbox docker repo. It has OCI8 enable.
The issue: I keep getting ORA-28547 when trying oci_connect
What I have done:
1--add /usr/lib/oracle/client64/lib to a file inside ld.so.conf.d and run ldconfig -v
2--restart docker container.
3-- Now phpinfo shows ORACLE_HOME=/usr/lib/oracle/client64/lib
4--Add tnsnames.ora to /usr/lib/oracle/client6/lib/network/admin (there is a README.md file inside that folder that even tells you to do that) 5--Restart docker container again. 6-oci_connect still fails with the same error.
What I am missing?
Thank you very much for any pointers, I think I have browsed to the end of the internet and back without finding a solution yet.
----SOLUTION: reinstall instantclient, relink libraries (ldconfig) to use new instantclient libraries. Create modified dockerfile to do it when container is created.
I modified the Dockerfile file of the php-fpm to add new instant client files and not the one that were provided by the original file. I was not able to make it work with them. I have tried a few times rebuilding the image (docker-compose up --build) and this is the file that does the trick:
FROM devilbox/php-fpm:7.4-work
#instantclient.conf content: /opt/instantclient RUN echo "/opt/instantclient" >/etc/ld.so.conf.d/instantclient.conf
WORKDIR /opt
RUN unzip instantclient-sdk-linux.x64-19.8.0.0.0dbru.zip
RUN unzip instantclient-sqlplus-linux.x64-19.8.0.0.0dbru.zip
RUN unzip instantclient-basic-linux.x64-19.8.0.0.0dbru.zip
RUN mv instantclient_19_8 instantclient
ADD tnsnames.ora /opt/instantclient/network/admin
RUN ldconfig -v
CMD ["php-fpm"]
expose 9000
...ANSWER
Answered 2020-Oct-17 at 16:08# Insert following to .bash_profile or .profile of the User starting the php-fpm
export ORACLE_HOME=/usr/lib/oracle/client64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin
export TNS_ADMIN=$ORACLE_HOME/network/admin
# Test to Ping Remote Db to be connected by PHP
tnsping
# restart here the php Engine
QUESTION
There is anyway to add custom folder using symbolic link into data folder in Devilbox ? When i put the symbolic link the Auto Virtual Host ignore the folder.
Thank You.
...ANSWER
Answered 2020-Oct-11 at 10:33Ok, i make it work. For future reference, make all the root folders by hand, but inside of the root folders symbolic links are accepted.
data/www/proj-slug/{htdocs} com o {htdocs} -> ~/git/proj-slug
QUESTION
I'm trying to apply custom xdebug settings via editing mods-available/xdebug.ini but when I restart php-fpm there are only the default settings applied. There are no related errors in the error logs visible.
What could be the reason that the custom settings are not applied?
...ANSWER
Answered 2020-Oct-03 at 07:55When trying to find out which modules are enabled via the php-cli command "php -m" I got a list of enabled modules but also an error message right above the list:
QUESTION
I have inherited some code that was written with PHP 5.2, and rather than installing myself, I have it running in a Docker container.
This system also depends on MySQL, so using Docker Compose and extracting the database credentials to a more secured location...
...ANSWER
Answered 2020-Jul-23 at 13:52most probably those env are overridden somewhere in image you are using. docker compose allows to define a command to run on startup. So you can override env vars on startup to whatever you need:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install devilbox
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page