Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. #grep -v "#" /etc/httpd/conf/httpd.conf
  2. ServerRoot "/etc/httpd"
  3. Listen 80
  4. Include conf.modules.d/*.conf
  5. User apache
  6. Group apache
  7. ServerAdmin info@houseofsr.co.uk
  8. ServerName www.houseofsr.co.uk:80
  9. <Directory />
  10. AllowOverride none
  11. Require all denied
  12. </Directory>
  13. DocumentRoot "/var/www/html"
  14. <Directory "/var/www">
  15. AllowOverride All
  16. Require all granted
  17. </Directory>
  18. <Directory "/var/www/html">
  19. Options Indexes FollowSymLinks
  20. AllowOverride All
  21. Require all granted
  22. </Directory>
  23. <IfModule dir_module>
  24. DirectoryIndex index.html index.php
  25. </IfModule>
  26. <Files ".ht*">
  27. Require all denied
  28. </Files>
  29. ErrorLog "logs/error_log"
  30. LogLevel warn
  31. <IfModule log_config_module>
  32. LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
  33. LogFormat "%h %l %u %t "%r" %>s %b" common
  34. <IfModule logio_module>
  35. LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
  36. </IfModule>
  37. CustomLog "logs/access_log" combined
  38. </IfModule>
  39. <IfModule alias_module>
  40. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  41. </IfModule>
  42. <Directory "/var/www/cgi-bin">
  43. AllowOverride None
  44. Options None
  45. Require all granted
  46. </Directory>
  47. <IfModule mime_module>
  48. TypesConfig /etc/mime.types
  49. AddType application/x-compress .Z
  50. AddType application/x-gzip .gz .tgz
  51. AddType text/css .css
  52. AddType text/javascript .js
  53. AddType text/html .shtml
  54. AddOutputFilter INCLUDES .shtml
  55. </IfModule>
  56. AddDefaultCharset UTF-8
  57. <IfModule mime_magic_module>
  58. MIMEMagicFile conf/magic
  59. </IfModule>
  60. EnableSendfile on
  61. IncludeOptional conf.d/*.conf
  62.  
  63.  
  64.  
  65. #egrep -v ";|^$" /etc/php.ini
  66. [PHP]
  67. engine = On
  68. short_open_tag = Off
  69. precision = 14
  70. output_buffering = 4096
  71. zlib.output_compression = Off
  72. implicit_flush = Off
  73. unserialize_callback_func =
  74. serialize_precision = -1
  75. disable_functions =
  76. disable_classes =
  77. zend.enable_gc = On
  78. expose_php = On
  79. max_execution_time = 30
  80. max_input_time = 60
  81. memory_limit = 128M
  82. error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
  83. display_errors = Off
  84. display_startup_errors = Off
  85. log_errors = On
  86. log_errors_max_len = 1024
  87. ignore_repeated_errors = Off
  88. ignore_repeated_source = Off
  89. report_memleaks = On
  90. html_errors = On
  91. variables_order = "GPCS"
  92. request_order = "GP"
  93. register_argc_argv = Off
  94. auto_globals_jit = On
  95. post_max_size = 8M
  96. auto_prepend_file =
  97. auto_append_file =
  98. default_mimetype = ""
  99. default_charset = "UTF-8"
  100. doc_root =
  101. user_dir =
  102. enable_dl = Off
  103. file_uploads = On
  104. upload_max_filesize = 2M
  105. max_file_uploads = 20
  106. allow_url_fopen = On
  107. allow_url_include = Off
  108. default_socket_timeout = 60
  109. extension=mysqli
  110. extension=pdo_mysql
  111. [CLI Server]
  112. cli_server.color = On
  113. [Date]
  114. [filter]
  115. [iconv]
  116. [intl]
  117. [sqlite3]
  118. [Pcre]
  119. [Pdo]
  120. [Pdo_mysql]
  121. pdo_mysql.cache_size = 2000
  122. pdo_mysql.default_socket=
  123. [Phar]
  124. [mail function]
  125. SMTP = localhost
  126. smtp_port = 25
  127. mail.add_x_header = On
  128. [ODBC]
  129. odbc.allow_persistent = On
  130. odbc.check_persistent = On
  131. odbc.max_persistent = -1
  132. odbc.max_links = -1
  133. odbc.defaultlrl = 4096
  134. odbc.defaultbinmode = 1
  135. [Interbase]
  136. ibase.allow_persistent = 1
  137. ibase.max_persistent = -1
  138. ibase.max_links = -1
  139. ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
  140. ibase.dateformat = "%Y-%m-%d"
  141. ibase.timeformat = "%H:%M:%S"
  142. [MySQLi]
  143. mysqli.max_persistent = -1
  144. mysqli.allow_persistent = On
  145. mysqli.max_links = -1
  146. mysqli.cache_size = 2000
  147. mysqli.default_port = 3306
  148. mysqli.default_socket =
  149. mysqli.default_host =
  150. mysqli.default_user =
  151. mysqli.default_pw =
  152. mysqli.reconnect = Off
  153. [mysqlnd]
  154. mysqlnd.collect_statistics = On
  155. mysqlnd.collect_memory_statistics = Off
  156. [OCI8]
  157. [PostgreSQL]
  158. pgsql.allow_persistent = On
  159. pgsql.auto_reset_persistent = Off
  160. pgsql.max_persistent = -1
  161. pgsql.max_links = -1
  162. pgsql.ignore_notice = 0
  163. pgsql.log_notice = 0
  164. [bcmath]
  165. bcmath.scale = 0
  166. [browscap]
  167. [Session]
  168. session.save_handler = files
  169. session.use_strict_mode = 0
  170. session.use_cookies = 1
  171. session.use_only_cookies = 1
  172. session.name = PHPSESSID
  173. session.auto_start = 0
  174. session.cookie_lifetime = 0
  175. session.cookie_path = /
  176. session.cookie_domain =
  177. session.cookie_httponly =
  178. session.serialize_handler = php
  179. session.gc_probability = 1
  180. session.gc_divisor = 1000
  181. session.gc_maxlifetime = 1440
  182. session.referer_check =
  183. session.cache_limiter = nocache
  184. session.cache_expire = 180
  185. session.use_trans_sid = 0
  186. session.sid_length = 26
  187. session.trans_sid_tags = "a=href,area=href,frame=src,form="
  188. session.sid_bits_per_character = 5
  189. [Assertion]
  190. zend.assertions = -1
  191. [COM]
  192. [mbstring]
  193. [gd]
  194. [exif]
  195. [Tidy]
  196. tidy.clean_output = Off
  197. [soap]
  198. soap.wsdl_cache_enabled=1
  199. soap.wsdl_cache_dir="/tmp"
  200. soap.wsdl_cache_ttl=86400
  201. soap.wsdl_cache_limit = 5
  202. [sysvshm]
  203. [ldap]
  204. ldap.max_links = -1
  205. [dba]
  206. [opcache]
  207. [curl]
  208. [openssl]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement