Skip to content

Commit 34a99e3

Browse files
committed
Update apache conf
1 parent 372d1d9 commit 34a99e3

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed

.circleci/apache_ci.conf

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
1-
Listen 8080
2-
31
<VirtualHost *:8080>
42

5-
DocumentRoot "/home/circleci/wp-php-console/wordpress"
6-
ServerName wp-php-console.test
7-
DirectoryIndex index.html index.json index.php
8-
ServerAlias *.test
9-
LogLevel notice
10-
11-
<FilesMatch \.php$>
12-
SetHandler application/x-httpd-php
13-
</FilesMatch>
14-
15-
<Directory "/home/circleci/wp-php-console/wordpress">
16-
Options Indexes FollowSymLinks MultiViews
17-
AllowOverride All
18-
Allow from All
19-
<IfModule mod_authz_core.c>
20-
Require all granted
21-
</IfModule>
22-
<IfModule !mod_authz_core.c>
23-
Order allow,deny
24-
Allow from all
25-
</IfModule>
26-
</Directory>
3+
DocumentRoot "/home/circleci/wp-php-console/wordpress"
4+
ServerName wp-php-console.test
5+
DirectoryIndex index.html index.php
6+
ServerAlias wp-php-console
7+
ServerAlias *.wp-php-console.test
8+
9+
<FilesMatch \.php$>
10+
SetHandler application/x-httpd-php
11+
</FilesMatch>
12+
13+
<Directory "/home/circleci/wp-php-console/wordpress">
14+
15+
AllowOverride All
16+
Allow from All
17+
Options Indexes FollowSymLinks MultiViews
18+
19+
<IfModule mod_authz_core.c>
20+
Require all granted
21+
</IfModule>
22+
23+
<IfModule !mod_authz_core.c>
24+
Order allow,deny
25+
Allow from all
26+
</IfModule>
27+
28+
</Directory>
2729

2830
</VirtualHost>

.circleci/config.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ jobs:
2020
- run: sudo apt-get install libzip-dev libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev mysql-client -y
2121
- run: sudo docker-php-ext-install -j$(nproc) mbstring zip gd
2222
- run: sudo docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
23-
# Install Chrome headless
24-
# - run: sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
25-
# - run: sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
26-
# - run: sudo apt-get update
23+
# Configure and restart Apache
24+
- run: sudo cp .circleci/apache_ci.conf /etc/apache2/sites-available
25+
- run: sudo a2ensite apache_ci.conf
26+
- run: sudo a2enmod rewrite
27+
- run: sudo systemctl restart apache2
2728
# Install plugin dependencies via Composer
2829
- run: composer install
2930
- run: mkdir plugin
@@ -39,10 +40,6 @@ jobs:
3940
# Move plugin into WordPress and activate
4041
- run: mv plugin wordpress/wp-content/plugins/wp-php-console
4142
- run: ./wp-cli.phar plugin activate wp-php-console --path=wordpress || true
42-
# Configure and restart Apache, then run tests
43-
- run: sudo cp .circleci/apache_ci.conf /etc/apache2/sites-available
44-
- run: sudo a2ensite apache_ci.conf
45-
- run: sudo service apache2 restart
46-
- run: sudo service apache2 reload
43+
# Run tests
4744
- run: cd wordpress/wp-content/plugins/wp-php-console
4845
- run: vendor/bin/codecept run acceptance

0 commit comments

Comments
 (0)