padster2015 / fullstack

0 stars 0 forks source link

Broken - webtatic + remi have no sense. #1

Open remicollet opened 8 years ago

remicollet commented 8 years ago

Mixing webtatic + remirepo have no sense.

Both provide PHP 7, and are not designed to work together.

Either use "webtatic" and its "php70w" packages (without any additional extension, for now) See : https://uk.repo.webtatic.com/yum/el7-testing/x86_64/RPMS/

Or use "remim-php70" and its standard "php" (with lot of additional extensions) See : http://rpms.remirepo.net/enterprise/7/php70/x86_64/repoview/letter_p.group.html

remicollet commented 8 years ago

More: opcache + mysql + mcrypt seems a very strange choice for defautl extension set.

remicollet commented 8 years ago
-RUN cd /tmp && wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
-RUN rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
+RUN rpm - Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
+RUN yum-config-manager --enable remi-php70

And

RUN yum -y install  php  php-mbstring  php-mysqlnd  php-opcache  composer
remicollet commented 8 years ago

EXPOSE 80 443

No sense mod_ssl is not installed.

remicollet commented 8 years ago
RUN sed -i \
    -e 's~^;date.timezone =$~date.timezone = Europe/Rome~g' \
    -e 's~^;user_ini.filename =$~user_ini.filename =~g' \
    /etc/php.ini

I prefer

RUN echo "date.timezone = Europe/Rome" >/etc/php.d/override.conf

And changing user_ini.filename seens a bad idea, default value (.user.ini) are protected in php.conf.to be not browsable, for obvious security reason.

padster2015 commented 8 years ago

Hey @remicollet thanks for these, I have been making changes and testing, mcrypt was on for Laravel framework