-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
PHP7 .htaccess #149
Comments
I would prefer to just remove |
Removing the |
Ehh, what a mess. Here is a possible hack:
I don't know the exact syntax to use offhand though, perhaps SetEnv. |
Yup. I came across this earlier, although it's only supported with apache 2.4. Can we drop support for older versions of apache?
Otherwise I'm just inclined to add a comment to the htaccess noting about PHP7, but I did have a few hours of wondering why my PHP's max memory wasn't being read before I realized the php5 bit. Fixing this would definitely help out people down the line. |
@jtnw Any thoughts on this? Or has this been solved? |
@seansan for me, I just changed php5 to php7 in htaccess, haven’t touched it in the past year. Apache 2.4 came out in 2012, so the Define directive should be widely supported. I would recommend we use the structure in my previous comment. |
Can you submit a simple pull request? This would then close the issue
(great! how time and waiiting does sometimes fix common problems)
…On Wed, Sep 5, 2018 at 2:31 PM jtnw ***@***.***> wrote:
@seansan <https://github.com/seansan> for me, I just changed php5 to php7
in htaccess, haven’t touched it in the past year.
Apache 2.4 came out in 2012, so the Define directive should be widely
supported. I would recommend we use the structure in my previous comment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAn0a-UgApWdFitl9q9hyFJD6EBdqj5Tks5uX8QkgaJpZM4LaONb>
.
|
Sure thing, let me just do a quick test to make sure that the directive works. |
actually, Apache is kind of recommending to stop using mod_php https://wiki.apache.org/httpd/php and instead use the fcgi solutions. Besides, everybody should get used to set php settings via the php.ini |
Also, it seems that the Edit: so basically it means the |
I think the only solution right now is to duplicate the directives and put a comment in htaccess explaining it. Seems like mod_php shouldn't be used, but many people will keep using it and those htaccess settings for php are important. If there's another way I'm all ears though. |
with mod_php you can use a php.ini like with php-fpm and php-cli regarding the settings.
|
@Flyingmana does the custom php.ini file require editing vhosts/httpd.conf though? Some users won't be able to edit those files if they're on shared hosting of any sort. |
@jtnw I would refer to the documentation/faq/support of the shared hosting then. Also shared hostings likely would not allow to change memory_limit or max_execution_time in any way. If people notice specific problems with the Environment, they would need to know where to change this settings anyway. And for people not used to apache, it could be confusing to change a setting, and wonder why it is overwritten somewhere else. |
@Flyingmana good points, my only other reservation on making users edit httpd.conf is that it's a departure from the upstream installation process where users just have to extract to htdocs. However if there's a much better solution than my PR above which was just a quick fix, we should take it. |
Closed by #1001 |
the .htaccess file should also include directives for mod_php7.c
The text was updated successfully, but these errors were encountered: