Skip to content
Browse files
Fedora also needs a PHP7 config file alternative

Patch by Gustavo Noronha Silva <> on 2016-12-09
Reviewed by Michael Catanzaro.


* Scripts/webkitpy/port/
(Port._is_fedora_php_version_7): check for the php7 library.
(Port._fedora_php_version): get the appropriate filename for Fedora.


* http/conf/fedora-httpd-2.4-php7.conf: Added.

Canonical link:
git-svn-id: 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
iocost-bot authored and webkit-commit-queue committed Dec 9, 2016
1 parent d812215 commit 6ce428436645565528a024cf04665989da436764
Showing 4 changed files with 184 additions and 1 deletion.
@@ -1,3 +1,12 @@
2016-12-09 Gustavo Noronha Silva <>

Fedora also needs a PHP7 config file alternative

Reviewed by Michael Catanzaro.

* http/conf/fedora-httpd-2.4-php7.conf: Added.

2016-12-09 Ryosuke Niwa <>

Custom Elements from a different document are not customized when created with innerHTML
@@ -0,0 +1,152 @@
ServerTokens OS
ServerRoot "/etc/httpd"

PidFile "/tmp/WebKit/"
ScoreBoardFile "/tmp/WebKit/httpd.scoreboard"

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

MinSpareServers 1
MaxSpareServers 5
StartServers 1
MaxClients 150
MaxRequestsPerChild 100000

LoadModule mpm_prefork_module modules/
LoadModule authz_core_module modules/
LoadModule authz_host_module modules/
LoadModule include_module modules/
LoadModule log_config_module modules/
LoadModule headers_module modules/
LoadModule mime_module modules/
LoadModule negotiation_module modules/
LoadModule actions_module modules/
LoadModule alias_module modules/
LoadModule rewrite_module modules/
LoadModule cgi_module modules/
LoadModule ssl_module modules/
LoadModule unixd_module modules/
LoadModule php7_module modules/

LoadModule asis_module modules/

User apache
Group apache

ServerAdmin root@localhost

UseCanonicalName On

<Directory />
Options Indexes FollowSymLinks MultiViews ExecCGI Includes
AllowOverride All
Require all granted

AccessFileName .htaccess

<Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
Require all denied

TypesConfig /etc/mime.types
HostnameLookups Off

LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

ServerSignature On

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8

<IfModule mod_negotiation.c>
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl

AddHandler cgi-script .cgi .pl

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

AddHandler send-as-is asis

<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .bat
AddType application/x-httpd-php-source .phps

<IfModule mod_dir.c>
DirectoryIndex index.html index.php

php_flag log_errors on
php_flag short_open_tag on

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [F]

<VirtualHost *:8443>
SSLEngine On

# Apple-specific filesystem protection.
<Files "rsrc">
Require all denied

<Directory ~ ".*\.\.namedfork">
Require all denied
@@ -1,3 +1,15 @@
2016-12-09 Gustavo Noronha Silva <>

Fedora also needs a PHP7 config file alternative

Reviewed by Michael Catanzaro.

* Scripts/webkitpy/port/
(Port._is_fedora_php_version_7): check for the php7 library.
(Port._fedora_php_version): get the appropriate filename for Fedora.

2016-12-09 Ryan Haddad <>

Complete the revert of r208865.
@@ -1154,6 +1154,11 @@ def _path_to_apache(self):
_log.error("Could not find apache. Not installed or unknown path.")
return None

def _is_fedora_php_version_7(self):
if self._filesystem.exists("/etc/httpd/modules/"):
return True
return False

def _is_debian_php_version_7(self):
if self._filesystem.exists("/usr/lib/apache2/modules/"):
return True
@@ -1178,13 +1183,18 @@ def _debian_php_version(self):
return "-php7"
return ""

def _fedora_php_version(self):
if self._is_fedora_php_version_7():
return "-php7"
return ""

# We pass sys_platform into this method to make it easy to unit test.
def _apache_config_file_name_for_platform(self, sys_platform):
if sys_platform == 'cygwin' or sys_platform.startswith('win'):
return 'apache' + self._apache_version() + '-httpd-win.conf'
if sys_platform.startswith('linux'):
if self._is_redhat_based():
return 'fedora-httpd-' + self._apache_version() + '.conf'
return 'fedora-httpd-' + self._apache_version() + self._fedora_php_version() + '.conf'
if self._is_debian_based():
return 'debian-httpd-' + self._apache_version() + self._debian_php_version() + '.conf'
if self._is_arch_based():

0 comments on commit 6ce4284

Please sign in to comment.