Comments (10)
@bparees @csrwng @mfojtik @mnagy @soltysh fyi
from s2i-php-container.
is this any different than v2 behavior? shouldn't index.php end up served as "host.com/public/index.php" in your scenario?
from s2i-php-container.
@bparees well as we spoke, in v2 you are able to detect the document root, where the index.php is located http://docs.openshift.org/origin-m4/oo_cartridge_guide.html#document-root
Unfortunately this cant be done with our approach since we dont know how the application looks like upon the php-55-***7 image build. In that case we have to come with a solution that will supply user with possibility to change the DocumentRoot.
A simple fix would be to add 151s%AllowOverride None%AllowOverride All%
to the end of httdconf.sed which will take additional instructions for apache from .htaccess
file which user will have to supply.
from s2i-php-container.
basically here are the changes I had to make: https://github.com/openshift/sti-php/compare/master...jhadvig:laravel5?expand=1
from s2i-php-container.
@jhadvig @bparees why we can't set AllowOverride All by default? Is there a security concern here?
from s2i-php-container.
@jhadvig in your diff, you also installing 'git' which I think is now included in base
from s2i-php-container.
@mfojtik it is, we can leave that out of discussion. Regarding setting the AllowOverride All
, if you look closer to that change it only applies to the line 151 in the httpd.conf, and which allows reading the .htaccess
file in the opt/openshift/src
directory, which for now I think would be the best solution. In that case the index.php
could be nested inside the repo and user will just have to supply the .htaccess
to the root of the repo so Apache can pick up the information from it.
from s2i-php-container.
@jhadvig sounds ok to me.
from s2i-php-container.
@bparees ok will send PR + update docs accordingly
from s2i-php-container.
PR -> #19
from s2i-php-container.
Related Issues (20)
- ENV and FPM HOT 2
- allow easily consuming kubernetes TLS secrets HOT 1
- tests suite failure: blocker composer plugin HOT 1
- PHP 8.1 build - It's the latest/greatest/fastest and we're anxious to start using it. HOT 11
- AH02282: No slotmem from mod_heartmonitor
- Testing issue created for samples operator HOT 1
- Feature request: Support custom certs for composer HOT 1
- Executing `test_scl_usage` when tty exists waits on 'cat' forever HOT 5
- No Action Required !! Testing automation workflow HOT 1
- No Action Required !! Testing automation workflow HOT 1
- How to get PHP 8.0.28 ? Multiple vulnerabilities in PHP 8.0.20 HOT 2
- Incomplete ssl test
- Run script error HOT 2
- 8.1 version of s2i-php-container web server user does not get the environment variables (env) secrets from Openshift HOT 2
- Environment variables are being ignored by the php engine HOT 4
- php-fpm issues (container runtime) HOT 4
- PHP version leakage HOT 5
- Default fpm settings easily lead to out of memory events or OOMkiller being active HOT 1
- Add support for PHP-8.2 to Fedora HOT 1
- PHP 8.3 timeline / PHP 8.3 is measuring+53% faster than 8.2 - HOT 2
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 s2i-php-container.