apache : fix break install 3:2 > 3.4
This commit is contained in:
parent
f4f492ae66
commit
8efe12893d
|
@ -10,7 +10,7 @@ Extend pluie/alpine with __apache 2.4.23__ and __php 5.6.24__
|
|||
|
||||
## Image Size
|
||||
|
||||
- image ~ 37 MB
|
||||
- image ~ 50 MB
|
||||
|
||||
|
||||
## Image Volumes
|
||||
|
@ -37,11 +37,11 @@ by default it use the apache rewrite module to redirect all uri to the unique en
|
|||
|
||||
chdir to your project directory
|
||||
```
|
||||
$ docker run --name apache -it --link=db1:mysql -v $(pwd):/app pluie/apache
|
||||
$ docker run --name apache -it --link=mysql:db1 -v $(pwd):/app pluie/alpine-apache
|
||||
```
|
||||
or
|
||||
```
|
||||
$ docker run --name srv -it --link=db1:mysql -e HTTP_SERVER_NAME=yourServerName -v $(pwd):/app pluie/apache
|
||||
$ docker run --name apache -it --link=mysql:db1 -e HTTP_SERVER_NAME=yourServerName -v $(pwd):/app pluie/alpine-apache
|
||||
```
|
||||
|
||||
|
||||
|
|
Binary file not shown.
|
@ -2,6 +2,6 @@
|
|||
# pluie/docker-images - a-Sansara (https://github.com/a-sansara)
|
||||
|
||||
apk --update add apache2 \
|
||||
php5-apache2 php5-cli php5-phar php5-zlib php5-zip php5-ctype php5-mysqli php5-pdo_mysql php5-xml \
|
||||
php5-opcache php5-pdo php5-json php5-curl php5-gd php5-mcrypt php5-openssl \
|
||||
php5-apache2 php5-cli php5-phar php5-zlib php5-zip php5-ctype php5-mysqli php5-xml php5-pdo_mysql \
|
||||
php5-opcache php5-pdo php5-json php5-curl php5-gd php5-mcrypt php5-openssl php5-dom \
|
||||
# php-pdo_odbc php-soap php-pgsql
|
||||
|
|
|
@ -4,8 +4,11 @@
|
|||
mkdir -p /app/www
|
||||
chown -R 1000:apache /app/www
|
||||
chmod -R 755 /scripts/pre-init.d
|
||||
mkdir -p /run/apache2
|
||||
chown apache:apache /run/apache2
|
||||
sed -i 's#^DocumentRoot ".*#DocumentRoot "/app/www"#g' /etc/apache2/httpd.conf
|
||||
sed -i 's#AllowOverride none#AllowOverride All#' /etc/apache2/httpd.conf
|
||||
sed -i 's#\#LoadModule rewrite_module modules/mod_rewrite.so#LoadModule rewrite_module modules/mod_rewrite.so#' /etc/apache2/httpd.conf
|
||||
sed -ir 's/expose_php = On/expose_php = Off/' /etc/php5/php.ini
|
||||
echo -e "\nIncludeOptional /app/vhost" >> /etc/apache2/httpd.conf
|
||||
rm -f /scripts/pre-init.d/50-example.sh
|
||||
|
|
|
@ -7,7 +7,7 @@ if [ ! -z "/app/vhost" ]; then
|
|||
ServerName $HTTP_SERVER_NAME
|
||||
<Directory /app/www>
|
||||
AllowOverride None
|
||||
Allow from all
|
||||
Require all granted
|
||||
DirectoryIndex index.php
|
||||
<IfModule mod_rewrite.c>
|
||||
Options -MultiViews +FollowSymlinks
|
||||
|
|
Binary file not shown.
|
@ -10,4 +10,3 @@ cat <<EOF > /etc/inputrc
|
|||
"\e[5~": history-search-backward # page-up
|
||||
"\e[6~": history-search-forward # page-down
|
||||
EOF
|
||||
bind -f /etc/inputrc
|
||||
|
|
Loading…
Reference in New Issue
Block a user