当前位置:   article > 正文

wampserver安装好后相关的设置和在不同的电脑上测试_mpmfpe

mpmfpe

1, 访问在页面时直接输入IP地址就好,或者http://ip/  也可以。

要闭了防火墙。

如果好了就会显示:

2,要修改的文档

httpd.conf

文档中修改4处,最后一处暂时不用修改

  1. #
  2. # This is the main Apache HTTP server configuration file. It contains the
  3. # configuration directives that give the server its instructions.
  4. # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  7. # for a discussion of each configuration directive.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do. They're here only as hints or reminders. If you are unsure
  11. # consult the online docs. You have been warned.
  12. #
  13. # Configuration and logfile names: If the filenames you specify for many
  14. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  15. # server will use that explicit path. If the filenames do *not* begin
  16. # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
  17. # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
  18. # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
  19. # will be interpreted as '/logs/access_log'.
  20. #
  21. # NOTE: Where filenames are specified, you must use forward slashes
  22. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  23. # If a drive letter is omitted, the drive on which httpd.exe is located
  24. # will be used by default. It is recommended that you always supply
  25. # an explicit drive letter in absolute paths to avoid confusion.
  26. ServerSignature On
  27. ServerTokens Full
  28. #
  29. # ServerRoot: The top of the directory tree under which the server's
  30. # configuration, error, and log files are kept.
  31. #
  32. # Do not add a slash at the end of the directory path. If you point
  33. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  34. # Mutex directive, if file-based mutexes are used. If you wish to share the
  35. # same ServerRoot for multiple httpd daemons, you will need to change at
  36. # least PidFile.
  37. #
  38. # Apache variable names used by Apache conf files:
  39. # The names and contents of variables:
  40. # APACHE24, VERSION_APACHE, INSTALL_DIR, APACHE_DIR
  41. # should never be changed.
  42. Define APACHE24 Apache2.4
  43. Define VERSION_APACHE 2.4.33
  44. Define INSTALL_DIR c:/wamp64
  45. Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}
  46. ServerRoot "${APACHE_DIR}"
  47. #
  48. # Mutex: Allows you to set the mutex mechanism and mutex file directory
  49. # for individual mutexes, or change the global defaults
  50. #
  51. # Uncomment and change the directory if mutexes are file-based and the default
  52. # mutex file directory is not on a local disk or is not appropriate for some
  53. # other reason.
  54. #
  55. # Mutex default:logs
  56. #
  57. # Listen: Allows you to bind Apache to specific IP addresses and/or
  58. # ports, instead of the default. See also the <VirtualHost>
  59. # directive.
  60. #
  61. # Change this to Listen on specific IP addresses as shown below to
  62. # prevent Apache from glomming onto all bound IP addresses.
  63. #
  64. #Listen 12.34.56.78:80
  65. Listen 0.0.0.0:80
  66. Listen [::0]:8080
  67. ##############修改1111111111111111111111111111111111
  68. #///111111111111111111111111111111
  69. #
  70. # Dynamic Shared Object (DSO) Support
  71. #
  72. # To be able to use the functionality of a module which was built as a DSO you
  73. # have to place corresponding `LoadModule' lines at this location so the
  74. # directives contained in it are actually available _before_ they are used.
  75. # Statically compiled modules (those listed by `httpd -l') do not need
  76. # to be loaded here.
  77. #
  78. # Example:
  79. # LoadModule foo_module modules/mod_foo.so
  80. #
  81. LoadModule access_compat_module modules/mod_access_compat.so
  82. LoadModule actions_module modules/mod_actions.so
  83. LoadModule alias_module modules/mod_alias.so
  84. LoadModule allowmethods_module modules/mod_allowmethods.so
  85. LoadModule asis_module modules/mod_asis.so
  86. LoadModule auth_basic_module modules/mod_auth_basic.so
  87. LoadModule auth_digest_module modules/mod_auth_digest.so
  88. #LoadModule auth_form_module modules/mod_auth_form.so
  89. #LoadModule authn_anon_module modules/mod_authn_anon.so
  90. LoadModule authn_core_module modules/mod_authn_core.so
  91. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  92. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  93. LoadModule authn_file_module modules/mod_authn_file.so
  94. #LoadModule authn_socache_module modules/mod_authn_socache.so
  95. #LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
  96. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  97. LoadModule authz_core_module modules/mod_authz_core.so
  98. #LoadModule authz_dbd_module modules/mod_authz_dbd.so
  99. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  100. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  101. LoadModule authz_host_module modules/mod_authz_host.so
  102. #LoadModule authz_owner_module modules/mod_authz_owner.so
  103. LoadModule authz_user_module modules/mod_authz_user.so
  104. LoadModule autoindex_module modules/mod_autoindex.so
  105. #LoadModule brotli_module modules/mod_brotli.so
  106. #LoadModule buffer_module modules/mod_buffer.so
  107. LoadModule cache_module modules/mod_cache.so
  108. LoadModule cache_disk_module modules/mod_cache_disk.so
  109. #LoadModule cache_socache_module modules/mod_cache_socache.so
  110. #LoadModule cern_meta_module modules/mod_cern_meta.so
  111. LoadModule cgi_module modules/mod_cgi.so
  112. #LoadModule charset_lite_module modules/mod_charset_lite.so
  113. #LoadModule data_module modules/mod_data.so
  114. #LoadModule dav_module modules/mod_dav.so
  115. #LoadModule dav_fs_module modules/mod_dav_fs.so
  116. #LoadModule dav_lock_module modules/mod_dav_lock.so
  117. #LoadModule dbd_module modules/mod_dbd.so
  118. #LoadModule deflate_module modules/mod_deflate.so
  119. LoadModule dir_module modules/mod_dir.so
  120. #LoadModule dumpio_module modules/mod_dumpio.so
  121. LoadModule env_module modules/mod_env.so
  122. #LoadModule expires_module modules/mod_expires.so
  123. #LoadModule ext_filter_module modules/mod_ext_filter.so
  124. LoadModule file_cache_module modules/mod_file_cache.so
  125. #LoadModule filter_module modules/mod_filter.so
  126. #LoadModule http2_module modules/mod_http2.so
  127. #LoadModule headers_module modules/mod_headers.so
  128. #LoadModule heartbeat_module modules/mod_heartbeat.so
  129. #LoadModule heartmonitor_module modules/mod_heartmonitor.so
  130. #LoadModule ident_module modules/mod_ident.so
  131. #LoadModule imagemap_module modules/mod_imagemap.so
  132. LoadModule include_module modules/mod_include.so
  133. #LoadModule info_module modules/mod_info.so
  134. LoadModule isapi_module modules/mod_isapi.so
  135. #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
  136. #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
  137. #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
  138. #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
  139. #LoadModule ldap_module modules/mod_ldap.so
  140. #LoadModule logio_module modules/mod_logio.so
  141. LoadModule log_config_module modules/mod_log_config.so
  142. #LoadModule log_debug_module modules/mod_log_debug.so
  143. #LoadModule log_forensic_module modules/mod_log_forensic.so
  144. #LoadModule lua_module modules/mod_lua.so
  145. #LoadModule md_module modules/mod_md.so
  146. #LoadModule macro_module modules/mod_macro.so
  147. LoadModule mime_module modules/mod_mime.so
  148. #LoadModule mime_magic_module modules/mod_mime_magic.so
  149. LoadModule negotiation_module modules/mod_negotiation.so
  150. #LoadModule proxy_module modules/mod_proxy.so
  151. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  152. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  153. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  154. #LoadModule proxy_express_module modules/mod_proxy_express.so
  155. #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
  156. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  157. #LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
  158. #LoadModule proxy_html_module modules/mod_proxy_html.so
  159. #LoadModule proxy_http_module modules/mod_proxy_http.so
  160. #LoadModule proxy_http2_module modules/mod_proxy_http2.so
  161. #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
  162. #LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
  163. #LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
  164. #LoadModule ratelimit_module modules/mod_ratelimit.so
  165. #LoadModule reflector_module modules/mod_reflector.so
  166. #LoadModule remoteip_module modules/mod_remoteip.so
  167. #LoadModule request_module modules/mod_request.so
  168. #LoadModule reqtimeout_module modules/mod_reqtimeout.so
  169. LoadModule rewrite_module modules/mod_rewrite.so
  170. #LoadModule sed_module modules/mod_sed.so
  171. #LoadModule session_module modules/mod_session.so
  172. #LoadModule session_cookie_module modules/mod_session_cookie.so
  173. #LoadModule session_crypto_module modules/mod_session_crypto.so
  174. #LoadModule session_dbd_module modules/mod_session_dbd.so
  175. LoadModule setenvif_module modules/mod_setenvif.so
  176. #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
  177. #LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
  178. #LoadModule socache_dbm_module modules/mod_socache_dbm.so
  179. #LoadModule socache_memcache_module modules/mod_socache_memcache.so
  180. #LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
  181. #LoadModule speling_module modules/mod_speling.so
  182. #LoadModule ssl_module modules/mod_ssl.so
  183. #LoadModule status_module modules/mod_status.so
  184. #LoadModule substitute_module modules/mod_substitute.so
  185. #LoadModule unique_id_module modules/mod_unique_id.so
  186. LoadModule userdir_module modules/mod_userdir.so
  187. #LoadModule usertrack_module modules/mod_usertrack.so
  188. #LoadModule version_module modules/mod_version.so
  189. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  190. #LoadModule watchdog_module modules/mod_watchdog.so
  191. #LoadModule xml2enc_module modules/mod_xml2enc.so
  192. LoadModule php5_module "${INSTALL_DIR}/bin/php/php5.6.35/php5apache2_4.dll"
  193. <IfModule unixd_module>
  194. #
  195. # If you wish httpd to run as a different user or group, you must run
  196. # httpd as root initially and it will switch.
  197. #
  198. # User/Group: The name (or #number) of the user/group to run httpd as.
  199. # It is usually good practice to create a dedicated user and group for
  200. # running httpd, as with most system services.
  201. #
  202. User daemon
  203. Group daemon
  204. </IfModule>
  205. # 'Main' server configuration
  206. #
  207. # The directives in this section set up the values used by the 'main'
  208. # server, which responds to any requests that aren't handled by a
  209. # <VirtualHost> definition. These values also provide defaults for
  210. # any <VirtualHost> containers you may define later in the file.
  211. #
  212. # All of these directives may appear inside <VirtualHost> containers,
  213. # in which case these default settings will be overridden for the
  214. # virtual host being defined.
  215. #
  216. #
  217. # ServerAdmin: Your address, where problems with the server should be
  218. # e-mailed. This address appears on some server-generated pages, such
  219. # as error documents. e.g. admin@your-domain.com
  220. #
  221. ServerAdmin wampserver@wampserver.invalid
  222. #
  223. # ServerName gives the name and port that the server uses to identify itself.
  224. # This can often be determined automatically, but we recommend you specify
  225. # it explicitly to prevent problems during startup.
  226. #
  227. # If your host doesn't have a registered DNS name, enter its IP address here.
  228. #
  229. ServerName localhost:80
  230. #
  231. # Deny access to the entirety of your server's filesystem. You must
  232. # explicitly permit access to web content directories in other
  233. # <Directory> blocks below.
  234. #
  235. <Directory />
  236. AllowOverride none
  237. Require all granted
  238. ## 修改222222222222222222222222222222222222222222222222222222222222
  239. </Directory>
  240. #
  241. # Note that from this point forward you must specifically allow
  242. # particular features to be enabled - so if something's not working as
  243. # you might expect, make sure that you have specifically enabled it
  244. # below.
  245. #
  246. HostnameLookups Off
  247. #
  248. # DocumentRoot: The directory out of which you will serve your
  249. # documents. By default, all requests are taken from this directory, but
  250. # symbolic links and aliases may be used to point to other locations.
  251. #
  252. DocumentRoot "${INSTALL_DIR}/www"
  253. <Directory "${INSTALL_DIR}/www/">
  254. #
  255. # Possible values for the Options directive are "None", "All",
  256. # or any combination of:
  257. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  258. #
  259. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  260. # doesn't give it to you.
  261. #
  262. # The Options directive is both complicated and important. Please see
  263. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  264. # for more information.
  265. #
  266. Options +Indexes +FollowSymLinks +Multiviews
  267. #
  268. # AllowOverride controls what directives may be placed in .htaccess files.
  269. # It can be "All", "None", or any combination of the keywords:
  270. # AllowOverride FileInfo AuthConfig Limit
  271. #
  272. AllowOverride all
  273. #
  274. # Controls who can get stuff from this server.
  275. #
  276. # onlineoffline tag - don't remove
  277. Require local
  278. Require all granted
  279. ###添加修改33333333333333333333333333333 Require all granted
  280. </Directory>
  281. #
  282. # DirectoryIndex: sets the file that Apache will serve if a directory
  283. # is requested.
  284. #
  285. <IfModule dir_module>
  286. DirectoryIndex index.php index.php3 index.html index.htm
  287. </IfModule>
  288. #
  289. # The following lines prevent .htaccess and .htpasswd files from being
  290. # viewed by Web clients.
  291. #
  292. <Files ".ht*">
  293. Require all denied
  294. </Files>
  295. #
  296. # ErrorLog: The location of the error log file.
  297. # If you do not specify an ErrorLog directive within a <VirtualHost>
  298. # container, error messages relating to that virtual host will be
  299. # logged here. If you *do* define an error logfile for a <VirtualHost>
  300. # container, that host's errors will be logged there and not here.
  301. #
  302. #ErrorLog "logs/error.log"
  303. ErrorLog "${INSTALL_DIR}/logs/apache_error.log"
  304. #
  305. # LogLevel: Control the number of messages logged to the error_log.
  306. # Possible values include: debug, info, notice, warn, error, crit,
  307. # alert, emerg.
  308. #
  309. LogLevel warn
  310. <IfModule log_config_module>
  311. #
  312. # The following directives define some format nicknames for use with
  313. # a CustomLog directive (see below).
  314. #
  315. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  316. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  317. <IfModule logio_module>
  318. # You need to enable mod_logio.c to use %I and %O
  319. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  320. </IfModule>
  321. #
  322. # The location and format of the access logfile (Common Logfile Format).
  323. # If you do not define any access logfiles within a <VirtualHost>
  324. # container, they will be logged here. Contrariwise, if you *do*
  325. # define per-<VirtualHost> access logfiles, transactions will be
  326. # logged therein and *not* in this file.
  327. #
  328. CustomLog "${INSTALL_DIR}/logs/access.log" common
  329. #
  330. # If you prefer a logfile with access, agent, and referer information
  331. # (Combined Logfile Format) you can use the following directive.
  332. #
  333. #CustomLog "logs/access.log" combined
  334. </IfModule>
  335. <IfModule alias_module>
  336. #
  337. # Redirect: Allows you to tell clients about documents that used to
  338. # exist in your server's namespace, but do not anymore. The client
  339. # will make a new request for the document at its new location.
  340. # Example:
  341. # Redirect permanent /foo http://www.example.com/bar
  342. #
  343. # Alias: Maps web paths into filesystem paths and is used to
  344. # access content that does not live under the DocumentRoot.
  345. # Example:
  346. # Alias /webpath /full/filesystem/path
  347. #
  348. # If you include a trailing / on /webpath then the server will
  349. # require it to be present in the URL. You will also likely
  350. # need to provide a <Directory> section to allow access to
  351. # the filesystem path.
  352. #
  353. # ScriptAlias: This controls which directories contain server scripts.
  354. # ScriptAliases are essentially the same as Aliases, except that
  355. # documents in the target directory are treated as applications and
  356. # run by the server when requested rather than as documents sent to the
  357. # client. The same rules about trailing "/" apply to ScriptAlias
  358. # directives as to Alias.
  359. #
  360. ScriptAlias /cgi-bin/ "${INSTALL_DIR}/cgi-bin/"
  361. </IfModule>
  362. <IfModule cgid_module>
  363. #
  364. # ScriptSock: On threaded servers, designate the path to the UNIX
  365. # socket used to communicate with the CGI daemon of mod_cgid.
  366. #
  367. #Scriptsock cgisock
  368. </IfModule>
  369. #
  370. # "c:/Apache24/cgi-bin" should be changed to whatever your ScriptAliased
  371. # CGI directory exists, if you have that configured.
  372. #
  373. <Directory "${INSTALL_DIR}/cgi-bin">
  374. AllowOverride None
  375. Options None
  376. Require all granted
  377. ## 修改444444444444444444444444
  378. </Directory>
  379. <IfModule headers_module>
  380. #
  381. # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
  382. # backend servers which have lingering "httpoxy" defects.
  383. # 'Proxy' request header is undefined by the IETF, not listed by IANA
  384. #
  385. RequestHeader unset Proxy early
  386. </IfModule>
  387. <IfModule mime_module>
  388. #
  389. # TypesConfig points to the file containing the list of mappings from
  390. # filename extension to MIME-type.
  391. #
  392. TypesConfig conf/mime.types
  393. #
  394. # AddType allows you to add to or override the MIME configuration
  395. # file specified in TypesConfig for specific file types.
  396. #
  397. #AddType application/x-gzip .tgz
  398. #
  399. # AddEncoding allows you to have certain browsers uncompress
  400. # information on the fly. Note: Not all browsers support this.
  401. #
  402. AddEncoding x-compress .Z
  403. AddEncoding x-gzip .gz .tgz
  404. #
  405. # If the AddEncoding directives above are commented-out, then you
  406. # probably should define those extensions to indicate media types:
  407. #
  408. AddType application/x-compress .Z
  409. AddType application/x-gzip .gz .tgz
  410. AddType application/x-httpd-php .php
  411. AddType application/x-httpd-php .php3
  412. #
  413. # AddHandler allows you to map certain file extensions to "handlers":
  414. # actions unrelated to filetype. These can be either built into the server
  415. # or added with the Action directive (see below)
  416. #
  417. # To use CGI scripts outside of ScriptAliased directories:
  418. # (You will also need to add "ExecCGI" to the "Options" directive.)
  419. #
  420. #AddHandler cgi-script .cgi
  421. # For type maps (negotiated resources):
  422. #AddHandler type-map var
  423. #
  424. # Filters allow you to process content before it is sent to the client.
  425. #
  426. # To parse .shtml files for server-side includes (SSI):
  427. # (You will also need to add "Includes" to the "Options" directive.)
  428. #
  429. #AddType text/html .shtml
  430. #AddOutputFilter INCLUDES .shtml
  431. </IfModule>
  432. #
  433. # The mod_mime_magic module allows the server to use various hints from the
  434. # contents of the file itself to determine its type. The MIMEMagicFile
  435. # directive tells the module where the hint definitions are located.
  436. #
  437. #MIMEMagicFile conf/magic
  438. #
  439. # Customizable error responses come in three flavors:
  440. # 1) plain text 2) local redirects 3) external redirects
  441. #
  442. # Some examples:
  443. #ErrorDocument 500 "The server made a boo boo."
  444. #ErrorDocument 404 /missing.html
  445. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  446. #ErrorDocument 402 http://www.example.com/subscription_info.html
  447. #
  448. #
  449. # MaxRanges: Maximum number of Ranges in a request before
  450. # returning the entire resource, or one of the special
  451. # values 'default', 'none' or 'unlimited'.
  452. # Default setting is to accept 200 Ranges.
  453. #MaxRanges unlimited
  454. #
  455. # EnableMMAP and EnableSendfile: On systems that support it,
  456. # memory-mapping or the sendfile syscall may be used to deliver
  457. # files. This usually improves server performance, but must
  458. # be turned off when serving from networked-mounted
  459. # filesystems or if support for these functions is otherwise
  460. # broken on your system.
  461. # Defaults: EnableMMAP On, EnableSendfile Off
  462. #
  463. #EnableMMAP off
  464. EnableSendfile off
  465. # AcceptFilter: On Windows, none uses accept() rather than AcceptEx() and
  466. # will not recycle sockets between connections. This is useful for network
  467. # adapters with broken driver support, as well as some virtual network
  468. # providers such as vpn drivers, or spam, virus or spyware filters.
  469. AcceptFilter http none
  470. AcceptFilter https none
  471. # Supplemental configuration
  472. #
  473. # The configuration files in the conf/extra/ directory can be
  474. # included to add extra features or to modify the default configuration of
  475. # the server, or you may simply copy their contents here and change as
  476. # necessary.
  477. # Server-pool management (MPM specific)
  478. #Include conf/extra/httpd-mpm.conf
  479. # Multi-language error messages
  480. #Include conf/extra/httpd-multilang-errordoc.conf
  481. # Fancy directory listings
  482. Include conf/extra/httpd-autoindex.conf
  483. # Language settings
  484. #Include conf/extra/httpd-languages.conf
  485. # User home directories
  486. #Include conf/extra/httpd-userdir.conf
  487. # Real-time info on requests and configuration
  488. #Include conf/extra/httpd-info.conf
  489. # Virtual hosts
  490. Include conf/extra/httpd-vhosts.conf
  491. # Local access to the Apache HTTP Server Manual
  492. #Include conf/extra/httpd-manual.conf
  493. # Distributed authoring and versioning (WebDAV)
  494. #Include conf/extra/httpd-dav.conf
  495. # Various default settings
  496. #Include conf/extra/httpd-default.conf
  497. # Configure mod_proxy_html to understand HTML4/XHTML1
  498. <IfModule proxy_html_module>
  499. Include conf/extra/proxy-html.conf
  500. </IfModule>
  501. # Secure (SSL/TLS) connections
  502. #Include conf/extra/httpd-ssl.conf
  503. #
  504. # Note: The following must must be present to support
  505. # starting without SSL on platforms with no /dev/random equivalent
  506. # but a statically compiled-in mod_ssl.
  507. #
  508. <IfModule ssl_module>
  509. SSLRandomSeed startup builtin
  510. SSLRandomSeed connect builtin
  511. </IfModule>
  512. Include "${INSTALL_DIR}/alias/*"

 

 

2,修改 www文件夹下面的index.php,修改493行内容

  1. <?php
  2. // Page created by Shepard [Fabian Pijcke] <Shepard8@laposte.net>
  3. // Arno Esterhuizen <arno.esterhuizen@gmail.com>
  4. // and Romain Bourdon <rromain@romainbourdon.com>
  5. // and Hervé Leclerc <herve.leclerc@alterway.fr>
  6. // Icons by Mark James <http://www.famfamfam.com/lab/icons/silk/>
  7. // Version 2.5 -> 3.0.0 by Dominique Ottello aka Otomatic
  8. // 3.1.2 - verify strip_tags and trim on $_GET and $_POST
  9. //
  10. //
  11. //
  12. $server_dir = "../";
  13. require $server_dir.'scripts/config.inc.php';
  14. require $server_dir.'scripts/wampserver.lib.php';
  15. //chemin jusqu'aux fichiers alias
  16. $aliasDir = $server_dir.'alias/';
  17. //Fonctionne à condition d'avoir ServerSignature On et ServerTokens Full dans httpd.conf
  18. $server_software = $_SERVER['SERVER_SOFTWARE'];
  19. $error_content = '';
  20. // on récupère les versions des applis
  21. $phpVersion = $wampConf['phpVersion'];
  22. $apacheVersion = $wampConf['apacheVersion'];
  23. $doca_version = 'doca'.substr($apacheVersion,0,3);
  24. $mysqlVersion = $wampConf['mysqlVersion'];
  25. //On récupére la valeur de urlAddLocalhost
  26. $suppress_localhost = ($wampConf['urlAddLocalhost'] == 'off' ? true : false);
  27. //On récupère la valeur de VirtualHostMenu
  28. $VirtualHostMenu = $wampConf['VirtualHostSubMenu'];
  29. //on récupère la valeur de apachePortUsed
  30. $port = $wampConf['apachePortUsed'];
  31. $UrlPort = $port !== "80" ? ":".$port : '';
  32. //On récupère le ou les valeurs des ports en écoute dans Apache
  33. $ListenPorts = implode(' - ',listen_ports());
  34. //on récupère la valeur de mysqlPortUsed
  35. $Mysqlport = $wampConf['mysqlPortUsed'];
  36. // répertoires à ignorer dans les projets
  37. $projectsListIgnore = array ('.','..','wampthemes','wamplangues');
  38. // images
  39. $pngFolder = <<< EOFILE
  40. iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAA3NCSVQICAjb4U/gAAABhlBMVEX//v7//v3///7//fr//fj+/v3//fb+/fT+/Pf//PX+/Pb+/PP+/PL+/PH+/PD+++/+++7++u/9+vL9+vH79+r79+n79uj89tj89Nf889D88sj78sz78sr58N3u7u7u7ev777j67bL67Kv46sHt6uP26cns6d356aP56aD56Jv45pT45pP45ZD45I324av344r344T14J734oT34YD13pD24Hv03af13pP233X025303JL23nX23nHz2pX23Gvn2a7122fz2I3122T12mLz14Xv1JPy1YD12Vz02Fvy1H7v04T011Py03j011b01k7v0n/x0nHz1Ejv0Hnuz3Xx0Gvz00buzofz00Pxz2juz3Hy0TrmznzmzoHy0Djqy2vtymnxzS3xzi/kyG3jyG7wyyXkwJjpwHLiw2Liw2HhwmDdvlXevVPduVThsX7btDrbsj/gq3DbsDzbrT7brDvaqzjapjrbpTraojnboTrbmzrbmjrbl0Tbljrakz3ajzzZjTfZijLZiTJdVmhqAAAAgnRSTlP///8A9XzUpQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAB90RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgOLVo0ngAAACqSURBVBiVY5BDAwxECGRlpgNBtpoKCMjLM8jnsYKASFJycnJ0tD1QRT6HromhHj8YMOcABYqEzc3d4uO9vIKCIkULgQIlYq5haao8YMBUDBQoZWIBAnFtAwsHD4kyoEA5l5SCkqa+qZ27X7hkBVCgUkhRXcvI2sk3MCpRugooUCOooWNs4+wdGpuQIlMDFKiWNbO0dXTx9AwICVGuBQqkFtQ1wEB9LhGeAwDSdzMEmZfC0wAAAABJRU5ErkJggg==
  41. EOFILE;
  42. $pngFolderGo = <<< EOFILE
  43. iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJISURBVDjLpZPLS5RhFIef93NmnMIRSynvgRF5KWhRlmWbbotwU9sWLup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K2pDBAQR67q9+l6zh66MkBXW0+
  103. koxTrqamSjXdG25+JTtAuG20i2V0C5O7rNzI60NtqWVgWqAMz8ykYFFehnY+h43DYSb4Opb0T1jd
  104. 7KFj5apUqOIxIDjYM5j4udSQqjMj6lIvJtkw6sgMEvt7hjaxCmjE9jc7QDg//JAMPlOTCb+fptJy
  105. 1ssFrNBKQuQ9KtFdbIHGU29mxVVshY+yRB+kI6zNt7KUX09XUjdqw0/YGvDhDwSqTRIH5f5lgByk
  106. yv8QkBExiW7n4KDNBWmuwwZdYQNmVieOviu7zFJLu750beA+ExrF5FzFzgCFSRsBlzLoAq+XJt4P
  107. v/tvZG0ZRsjXPERWNcFsre33yFrEICtFFiX5e64ja7/nOvD1ZceTXWnFDXBkIZTtDO1yF5yTKLK6
  108. FhJ+jPPjk9z9pzRXSqG4P+PSgeYBumsMGI4P2EjBmadntA/rgXNXk1XFJtavVRK/QwlHERJ7PyJr
  109. l0WpgOiWLgzQVdBa+HitkQaQ6UB960n5LZVhNyBdIKPgM/iEPXFeRoeUoyzT8hDi1vRB8kuk89tk
  110. 1fxIDZBUJvQja8JGip7WG4k6ubcABK2P96twVBFZanqewO/X8ayzF9l3a044DwK2mILTjKp/u3Cf
  111. 1K5+DnXWFfkjVcQram4MvmMq2kf6bCmHnxVKBYmzvB03y8fXJquGUo0ARZzf4Hgmjn9lqADB97Qc
  112. Ti+cO2e0WYFkmDpWq9wVrMN5vQ+ibn6I6w/hnJS1tKHwW4l1QA5If/c7WnvVv9NGm8e1fqs6o7tx
  113. rgDCFtWzw6kggv5XL++P35J9+g84eCWO/WSVESoj+CqkRaRyC66PwPWeWnj6MxBOMWMTiD4Hxzu0
  114. 0HYlzklBrCxtzcfxZqhI2UbypPZhe8DUsRQs86uEd8h1qf1sj5Emx6OM/okATIL9UNeUNA/E8Xwc
  115. q/ntaJ492o4Bg3CDbKz3mvaymfg9CRwXAjYJkcUUfB5tnzE6oZegr9FGmhraorJOUHCFyirj4xtj
  116. 6Eu1m9rLoTOIdNCQQrVdfiscb0V6W/o3AOeU99YDx+tCjJ4huDYHHmGh5pBcE+2z7RjQhIK7Wp3Q
  117. ht9gPOgw/m7QDPUdkMpitD+PNpMNBvxD64OS7u44FnV1PAwDul7IMlhtTlH5Xa4IBBF7MhHSJkO+
  118. GhikPKOzRv+24d7uIfpHmmAUQgOMRLt8g7gRPzucESYYHrlZVS6vh8StAVOULlRqqLHWoYkYHQMQ
  119. J5iQYeR79XMZFL7mJ7dcqtL6WJUkyqbgNmOCsgn4YyB+HQpOuAgBn0T78yBWUZi+6HAUcdEwbUSr
  120. 7z0b47NDXvBT+W0ll+HvASq/PF/VyTcEgXbBGM8l77b8UsNyOIb7CBi3LzFS+mAkykR6RxjEqSD+
  121. frTbi1GTB+GajXtEXSwxiBQO8rVvlULff+J4pwfPDpkL6qfpUn1x3OOa362WflaFDvRjpBzR7p1i
  122. eALrQng4ys2tC6kupWDJ4MoQ3pUfPj/B5w91XSRT3wJ5nHatUPvd26Z/OlQBgaWNud91VM+2U0FK
  123. 7awAd/XNiRZAn++AdBF0rfwfroeRmtiK673gvRCYsko7VjHHGQouVy2G4Sctke/TGN8GTJe53Ola
  124. 6mQJBKYFPvQjSOwm7V3T4CGJMW+KUTGPgostQvVPhyKMrP7l/Hdvnp1a2VAD1C62N1fEZJzCVN65
  125. 5BiMYCZVYPBd/n/CyYXLO2ZdZsClDf8XYACcVJnoRcTY2AAAAABJRU5ErkJggg==
  126. EOFILE;
  127. $pngPlugin = <<< EOFILE
  128. iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABmklEQVR42mL4//8/AyUYIIDAxK5du1BwXEb3/9D4FjBOzZ/wH10ehkF6AQIIw4B1G7b+D09o/h+X3gXG4YmteA0ACCCsLghPbPkfm9b5PzK5439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5Fylwb+y68x4p
  157. MlNW2CLnPUmnrE/d7F1dOGXJ+Qb0neQqre9ptZiAscTI38ng7YTQ8g6Budlg75pktkxPV9idctss
  158. 1mGYOKciupsxatQB8pJkmkUTpgCvHZ0jDtg+t4/60vAf3tVGBf8WYAC3Rq8Ub3mHyQAAAABJRU5E
  159. rkJggg==
  160. EOFILE;
  161. // Recherche des différents thèmes disponibles
  162. $styleswitcher = '<select id="themes">'."\n";
  163. $themes = glob('wampthemes/*', GLOB_ONLYDIR);
  164. foreach ($themes as $theme) {
  165. if (file_exists($theme.'/style.css')) {
  166. $theme = str_replace('wampthemes/', '', $theme);
  167. $styleswitcher .= '<option id="'.$theme.'">'.$theme.'</option>'."\n";
  168. }
  169. }
  170. $styleswitcher .= '</select>'."\n";
  171. //affichage du phpinfo
  172. if (isset($_GET['phpinfo']))
  173. {
  174. phpinfo();
  175. exit();
  176. }
  177. //affichage des images
  178. if (isset($_GET['img']))
  179. {
  180. switch (strip_tags(trim($_GET['img'])))
  181. {
  182. case 'pngFolder' :
  183. header("Content-type: image/png");
  184. echo base64_decode($pngFolder);
  185. exit();
  186. case 'pngFolderGo' :
  187. header("Content-type: image/png");
  188. echo base64_decode($pngFolderGo);
  189. exit();
  190. case 'gifLogo' :
  191. header("Content-type: image/gif");
  192. echo base64_decode($gifLogo);
  193. exit();
  194. case 'pngPlugin' :
  195. header("Content-type: image/png");
  196. echo base64_decode($pngPlugin);
  197. exit();
  198. case 'pngWrench' :
  199. header("Content-type: image/png");
  200. echo base64_decode($pngWrench);
  201. exit();
  202. case 'favicon' :
  203. header("Content-type: image/x-icon");
  204. echo base64_decode($favicon);
  205. exit();
  206. }
  207. }
  208. // Language
  209. $langue = $wampConf['language'];
  210. if (isset($_GET['lang']))
  211. $langue = strip_tags(trim($_GET['lang']));
  212. // Recherche des différentes langues disponibles
  213. $langueswitcher = '<form method="get" style="display:inline-block;"><select name="lang" id="langues" onchange="this.form.submit();">'."\n";
  214. $i_langues = glob('wamplangues/index_*.php');
  215. $selected = false;
  216. foreach ($i_langues as $i_langue) {
  217. $i_langue = str_replace(array('wamplangues/index_','.php'), '', $i_langue);
  218. $langueswitcher .= '<option value="'.$i_langue.'"';
  219. if(!$selected && $langue == $i_langue) {
  220. $langueswitcher .= ' selected ';
  221. $selected = true;
  222. }
  223. $langueswitcher .= '>'.$i_langue.'</option>'."\n";
  224. }
  225. $langueswitcher .= '</select></form>';
  226. include('wamplangues/index_english.php');
  227. if(file_exists('wamplangues/index_'.$langue.'.php')) {
  228. $langue_temp = $langues;
  229. include('wamplangues/index_'.$langue.'.php');
  230. $langues = array_merge($langue_temp, $langues);
  231. }
  232. //initialisation
  233. // Récupération MySQL si supporté
  234. $MySQLdb = '';
  235. if(isset($wampConf['SupportMySQL']) && $wampConf['SupportMySQL'] =='on') {
  236. $MySQLdb = <<< EOF
  237. <dt>{$langues['versm']}</dt>
  238. <dd>${mysqlVersion}&nbsp;-&nbsp;{$langues['mysqlportUsed']}{$Mysqlport}&nbsp;-&nbsp; <a href='http://{$langues['docm']}'>{$langues['documentation']}</a></dd>
  239. EOF;
  240. }
  241. // Récupération MariaDB si supporté
  242. $MariaDB = '';
  243. if(isset($wampConf['SupportMariaDB']) && $wampConf['SupportMariaDB'] =='on') {
  244. $MariaDB = <<< EOF
  245. <dt>{$langues['versmaria']}</dt>
  246. <dd>${c_mariadbVersion}&nbsp;-&nbsp;{$langues['mariaportUsed']}{$wampConf['mariaPortUsed']}&nbsp;-&nbsp; <a href='http://{$langues['docmaria']}'>{$langues['documentation']}</a></dd>
  247. EOF;
  248. }
  249. // No Database Mysql System
  250. $noDBMS = (empty($MySQLdb) && empty($MariaDB)) ? true : false;
  251. $phpmyadminTool = $noDBMS ? '' : '<li><a href="phpmyadmin/">phpmyadmin</a></li>';
  252. $aliasContents = '';
  253. // récupération des alias
  254. if (is_dir($aliasDir))
  255. {
  256. $handle=opendir($aliasDir);
  257. while (($file = readdir($handle))!==false)
  258. {
  259. if (is_file($aliasDir.$file) && strstr($file, '.conf'))
  260. {
  261. if(!($noDBMS && ($file == 'phpmyadmin.conf' || $file == 'adminer.conf'))) {
  262. $msg = '';
  263. $aliasContents .= '<li><a href="'.str_replace('.conf','',$file).'/">'.str_replace('.conf','',$file).'</a></li>';
  264. }
  265. }
  266. }
  267. closedir($handle);
  268. }
  269. if (empty($aliasContents))
  270. $aliasContents = "<li>".$langues['txtNoAlias']."</li>\n";
  271. //Récupération des ServerName de httpd-vhosts.conf
  272. $addVhost = "<li><a href='add_vhost.php?lang=".$langue."'>".$langues['txtAddVhost']."</a></li>";
  273. if($VirtualHostMenu == "on") {
  274. $vhostError = false;
  275. $vhostErrorCorrected = true;
  276. $error_message = array();
  277. $allToolsClass = "four-columns";
  278. $virtualHost = check_virtualhost();
  279. $vhostsContents = '';
  280. if($virtualHost['include_vhosts'] === false) {
  281. $vhostsContents = "<li><i style='color:red;'>Error Include Apache</i></li>";
  282. $vhostError = true;
  283. $error_message[] = sprintf($langues['txtNoIncVhost'],$wampConf['apacheVersion']);
  284. }
  285. else {
  286. if($virtualHost['vhosts_exist'] === false) {
  287. $vhostsContents = "<li><i style='color:red;'>No vhosts file</i></li>";
  288. $vhostError = true;
  289. $error_message[] = sprintf($langues['txtNoVhostFile'],$virtualHost['vhosts_file']);
  290. }
  291. else {
  292. if($virtualHost['nb_Server'] > 0) {
  293. $port_number = true;
  294. $nb_Server = $virtualHost['nb_Server'];
  295. $nb_Virtual = $virtualHost['nb_Virtual'];
  296. $nb_Document = $virtualHost['nb_Document'];
  297. $nb_Directory = $virtualHost['nb_Directory'];
  298. $nb_End_Directory = $virtualHost['nb_End_Directory'];
  299. foreach($virtualHost['ServerName'] as $key => $value) {
  300. if($virtualHost['ServerNameValid'][$value] === false) {
  301. $vhostError = true;
  302. $vhostErrorCorrected = false;
  303. $vhostsContents .= '<li>'.$value.' - <i style="color:red;">syntax error</i></li>';
  304. $error_message[] = sprintf($langues['txtServerName'],"<span style='color:black;'>".$value."</span>",$virtualHost['vhosts_file']);
  305. }
  306. elseif($virtualHost['ServerNameValid'][$value] === true) {
  307. $UrlPortVH = ($virtualHost['ServerNamePort'][$value] != '80') ? ':'.$virtualHost['ServerNamePort'][$value] : '';
  308. if(!$virtualHost['port_listen'] && $virtualHost['ServerNamePortListen'][$value] !== true || $virtualHost['ServerNamePortApacheVar'][$value] !== true) {
  309. $value_url = ((strpos($value, ':') !== false) ? strstr($value,':',true) : $value);
  310. $vhostsContents .= '<li>'.$value_url.$UrlPortVH.' - <i style="color:red;">Not a Listen port</i></li>';
  311. if($virtualHost['ServerNamePortListen'][$value] !== true)
  312. $msg_error = ' not an Apache Listen port';
  313. elseif($virtualHost['ServerNamePortApacheVar'][$value] !== true)
  314. $msg_error = ' not an Apache define variable';
  315. if(!$vhostError) {
  316. $vhostError = true;
  317. $vhostErrorCorrected = false;
  318. $error_message[] = "Port ".$UrlPortVH." used for the VirtualHost is ".$msg_error;
  319. }
  320. }
  321. elseif($virtualHost['ServerNameIp'][$value] !== false) {
  322. $vh_ip = $virtualHost['ServerNameIp'][$value];
  323. if($virtualHost['ServerNameIpValid'][$value] !== false) {
  324. $vhostsContents .= '<li><a href="http://'.$vh_ip.$UrlPortVH.'">'.$vh_ip.'</a> <i>('.$value.')</i></li>';
  325. }
  326. else {
  327. $vhostError = true;
  328. $vhostErrorCorrected = false;
  329. $vhostsContents .= '<li>'.$vh_ip.' for '.$value.' - <i style="color:red;">IP not valid</i></li>';
  330. $error_message[] = sprintf($langues['txtServerNameIp'],"<span style='color:black;'>".$vh_ip."</span>","<span style='color:black;'>".$value."</span>",$virtualHost['vhosts_file']);
  331. }
  332. }
  333. elseif($virtualHost['DocRootNotwww'][$value] === false) {
  334. $vhostError = true;
  335. $vhostErrorCorrected = false;
  336. $vhostsContents .= '<li>'.$value.' - <i style="color:red;">DocumentRoot error</i></li>';
  337. $error_message[] = sprintf($langues['txtDocRoot'],"<span style='color:black;'>".$value."</span>","<span style='color:black;'>".$wwwDir."</span>");
  338. }
  339. else {
  340. $value_url = ((strpos($value, ':') !== false) ? strstr($value,':',true) : $value);
  341. $vhostsContents .= '<li><a href="http://'.$value_url.$UrlPortVH.'">'.$value.'</a></li>';
  342. }
  343. }
  344. else {
  345. $vhostError = true;
  346. $error_message[] = sprintf($langues['txtVhostNotClean'],$virtualHost['vhosts_file']);
  347. }
  348. }
  349. //Check number of <Directory equals </Directory
  350. if($nb_End_Directory != $nb_Directory) {
  351. $vhostError = true;
  352. $vhostErrorCorrected = false;
  353. $error_message[] = sprintf($langues['txtNbNotEqual'],"&lt;Directory ....&gt;","&lt;/Directory&gt;",$virtualHost['vhosts_file']);
  354. }
  355. //Check number of DocumentRoot equals to number of ServerName
  356. if($nb_Document != $nb_Server) {
  357. $vhostError = true;
  358. $vhostErrorCorrected = false;
  359. $error_message[] = sprintf($langues['txtNbNotEqual'],"DocumentRoot","ServerName",$virtualHost['vhosts_file']);
  360. }
  361. //Check validity of DocumentRoot
  362. if($virtualHost['document'] === false) {
  363. foreach($virtualHost['documentPath'] as $value) {
  364. if($virtualHost['documentPathValid'][$value] === false) {
  365. $documentPathError = $value;
  366. $vhostError = true;
  367. $vhostErrorCorrected = false;
  368. $error_message[] = sprintf($langues['txtNoPath'],"<span style='color:black;'>".$value."</span>", "DocumentRoot", $virtualHost['vhosts_file']);
  369. break;
  370. }
  371. }
  372. }
  373. //Check validity of Directory Path
  374. if($virtualHost['directory'] === false) {
  375. foreach($virtualHost['directoryPath'] as $value) {
  376. if($virtualHost['directoryPathValid'][$value] === false) {
  377. $documentPathError = $value;
  378. $vhostError = true;
  379. $vhostErrorCorrected = false;
  380. $error_message[] = sprintf($langues['txtNoPath'],"<span style='color:black;'>".$value."</span>", "&lt;Directory ...", $virtualHost['vhosts_file']);
  381. break;
  382. }
  383. }
  384. }
  385. //Check number of <VirtualHost equals or > to number of ServerName
  386. if($nb_Server != $nb_Virtual && $wampConf['NotCheckDuplicate'] == 'off') {
  387. $port_number = false;
  388. $vhostError = true;
  389. $vhostErrorCorrected = false;
  390. $error_message[] = sprintf($langues['txtNbNotEqual'],"&lt;VirtualHost","ServerName",$virtualHost['vhosts_file']);
  391. }
  392. //Check number of port definition of <VirtualHost *:xx> equals to number of ServerName
  393. if($virtualHost['nb_Virtual_Port'] != $nb_Virtual && $wampConf['NotCheckDuplicate'] == 'off') {
  394. $port_number = false;
  395. $vhostError = true;
  396. $vhostErrorCorrected = false;
  397. $error_message[] = sprintf($langues['txtNbNotEqual'],"port definition of &lt;VirtualHost *:xx&gt;","ServerName",$virtualHost['vhosts_file']);
  398. }
  399. //Check validity of port number
  400. if($port_number && $virtualHost['port_number'] === false) {
  401. $port_number = false;
  402. $vhostError = true;
  403. $vhostErrorCorrected = false;
  404. $error_message[] = sprintf($langues['txtPortNumber'],"&lt;VirtualHost *:port&gt;",$virtualHost['vhosts_file']);
  405. }
  406. //Check if duplicate ServerName
  407. if($virtualHost['nb_duplicate'] > 0) {
  408. $DuplicateNames = '';
  409. foreach($virtualHost['duplicate'] as $NameValue)
  410. $DuplicateNames .= " ".$NameValue;
  411. $vhostError = true;
  412. $vhostErrorCorrected = false;
  413. $error_message[] = "Duplicate ServerName <span style='color:blue;'>".$DuplicateNames."</span> into ".$virtualHost['vhosts_file'];
  414. }
  415. //Check if duplicate Server IP
  416. if($virtualHost['nb_duplicateIp'] > 0) {
  417. $DuplicateNames = '';
  418. foreach($virtualHost['duplicateIp'] as $NameValue)
  419. $DuplicateNames .= " ".$NameValue;
  420. $vhostError = true;
  421. $vhostErrorCorrected = false;
  422. $error_message[] = "Duplicate IP <span style='color:blue;'>".$DuplicateNames."</span> into ".$virtualHost['vhosts_file'];
  423. }
  424. }
  425. }
  426. }
  427. if(empty($vhostsContents)) {
  428. $vhostsContents = "<li><i style='color:red:'>No VirtualHost</i></li>";
  429. $vhostError = true;
  430. $error_message[] = sprintf($langues['txtNoVhost'],$wampConf['apacheVersion']);
  431. }
  432. if(!$c_hostsFile_writable){
  433. $vhostError = true;
  434. $error_message[] = sprintf($langues['txtNotWritable'],$c_hostsFile);
  435. }
  436. if($vhostError) {
  437. $vhostsContents .= "<li><i style='color:red;'>Error(s)</i> See below</li>";
  438. $error_content .= "<p style='color:red;'>";
  439. foreach($error_message as $value) {
  440. $error_content .= $value."<br />";
  441. }
  442. $error_content .= "</p>\n";
  443. if($vhostErrorCorrected)
  444. $addVhost = "<li><a href='add_vhost.php?lang=".$langue."'>".$langues['txtAddVhost']."</a> <span style='font-size:0.72em;color:red;'>".$langues['txtCorrected']."</span></li>";
  445. }
  446. }
  447. else {
  448. $allToolsClass = "three-columns";
  449. }
  450. //Fin Récupération ServerName
  451. // récupération des projets
  452. $handle=opendir(".");
  453. $projectContents = '';
  454. while (($file = readdir($handle))!==false)
  455. {
  456. if (is_dir($file) && !in_array($file,$projectsListIgnore))
  457. {
  458. $projectContents .= '<li><a href="';
  459. if($suppress_localhost)
  460. $projectContents .= 'http://写你自己的ip/'.$file.$UrlPort.'/"';
  461. else
  462. $projectContents .= 'http://localhost/'.$UrlPort.'/'.$file.'/"';
  463. $projectContents .= '>'.$file.'</a></li>';
  464. ///修改
  465. /方案1修改为上面这样
  466. //方案2直接把自己服务器的IP添加在原文件http的后面///
  467. }
  468. }
  469. closedir($handle);
  470. if (empty($projectContents))
  471. $projectContents = "<li>".$langues['txtNoProjet']."</li>\n";
  472. else {
  473. if(strpos($projectContents,"http://localhost/") !== false) {
  474. $projectContents .= "<li><i style='color:blue;'>Warning:</i> See below</li>";
  475. if(!isset($error_content))
  476. $error_content = '';
  477. $error_content .= "<p style='color:blue;'>".sprintf($langues['nolocalhost'],$wampConf['apacheVersion'])."</p>";
  478. }
  479. }
  480. //initialisation
  481. $phpExtContents = '';
  482. // récupération des extensions PHP
  483. $loaded_extensions = get_loaded_extensions();
  484. // classement alphabétique des extensions
  485. setlocale(LC_ALL,"{$langues['locale']}");
  486. sort($loaded_extensions,SORT_LOCALE_STRING);
  487. foreach ($loaded_extensions as $extension)
  488. $phpExtContents .= "<li>${extension}</li>";
  489. //vérifications diverses - Quel php.ini est chargé ?
  490. $phpini = strtolower(trim(str_replace("\\","/",php_ini_loaded_file())));
  491. $c_phpConfFileOri = strtolower($c_phpVersionDir.'/php'.$wampConf['phpVersion'].'/'.$phpConfFileForApache);
  492. $c_phpCliConf = strtolower($c_phpVersionDir.'/php'.$wampConf['phpVersion'].'/'.$wampConf['phpConfFile']);
  493. if($phpini != strtolower($c_phpConfFile) && $phpini != $c_phpConfFileOri) {
  494. $error_content .= "<p style='color:red;'>*** ERROR *** The PHP configuration loaded file is: ".$phpini." - should be: ".$c_phpConfFile." or ".$c_phpConfFileOri;
  495. $error_content .= "<br>You must perform: <span style='color:green;'>Right-click icon Wampmanager -> Refresh</span><br>";
  496. if($phpini == $c_phpCliConf || $phpini == $c_phpCliConfFile)
  497. $error_content .= " - This file is only for PHP in Command Line - Maybe you've added 'PHPIniDir' in the 'httpd.conf' file. Delete or comment this line.";
  498. $error_content .= "</p>";
  499. }
  500. if($filelist = php_ini_scanned_files()) {
  501. if (strlen($filelist) > 0) {
  502. $error_content .= "<p style='color:red;'>*** ERROR *** There are too much php.ini files</p>";
  503. $files = explode(',', $filelist);
  504. foreach ($files as $file) {
  505. $error_content .= "<p style='color:red;'>*** ERROR *** There are other php.ini files: ".trim(str_replace("\\","/",$file))."</p>";
  506. }
  507. }
  508. }
  509. $pageContents = <<< EOPAGE
  510. <!DOCTYPE html>
  511. <html>
  512. <head>
  513. <title>{$langues['titreHtml']}</title>
  514. <meta charset="UTF-8">
  515. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  516. <meta name="viewport" content="width=device-width">
  517. <link id="stylecall" rel="stylesheet" href="wampthemes/classic/style.css" />
  518. <link rel="shortcut icon" href="index.php?img=favicon" type="image/ico" />
  519. </head>
  520. <body>
  521. <div id="head">
  522. <div class="innerhead">
  523. <h1><abbr title="Windows">W</abbr><abbr title="Apache">A</abbr><abbr title="MySQL">M</abbr><abbr title="PHP">P</abbr></h1>
  524. <ul>
  525. <li>PHP 5</li>
  526. <li>Apache 2.4</li>
  527. <li>MySQL 5</li>
  528. </ul>
  529. </div>
  530. <ul class="utility">
  531. <li>Version ${c_wampVersion} - ${c_wampMode}</li>
  532. <li>${langueswitcher}${styleswitcher}</li>
  533. </ul>
  534. </div>
  535. <div class="config">
  536. <div class="innerconfig">
  537. <h2> {$langues['titreConf']} </h2>
  538. <dl class="content">
  539. <dt>{$langues['versa']}</dt>
  540. <dd>${apacheVersion}&nbsp;&nbsp;-&nbsp;<a href='http://{$langues[$doca_version]}'>{$langues['documentation']}</a></dd>
  541. <dt>{$langues['versp']}</dt>
  542. <dd>${phpVersion}&nbsp;&nbsp;-&nbsp;<a href='http://{$langues['docp']}'>{$langues['documentation']}</a></dd>
  543. <dt>{$langues['server']}</dt>
  544. <dd>${server_software}&nbsp;-&nbsp;{$langues['portUsed']}{$ListenPorts}</dd>
  545. <dt>{$langues['phpExt']}</dt>
  546. <dd>
  547. <ul>
  548. ${phpExtContents}
  549. </ul>
  550. </dd>
  551. ${MySQLdb}
  552. ${MariaDB}
  553. </dl>
  554. </div>
  555. </div>
  556. <div class="divider1">&nbsp;</div>
  557. <div class="alltools ${allToolsClass}">
  558. <div class="inneralltools">
  559. <div class="column">
  560. <h2>{$langues['titrePage']}</h2>
  561. <ul class="tools">
  562. <li><a href="?phpinfo=1">phpinfo()</a></li>
  563. {$phpmyadminTool}
  564. {$addVhost}
  565. </ul>
  566. </div>
  567. <div class="column">
  568. <h2>{$langues['txtProjet']}</h2>
  569. <ul class="projects">
  570. ${projectContents}
  571. </ul>
  572. </div>
  573. <div class="column">
  574. <h2>{$langues['txtAlias']}</h2>
  575. <ul class="aliases">
  576. ${aliasContents}
  577. </ul>
  578. </div>
  579. EOPAGE;
  580. if($VirtualHostMenu == "on") {
  581. $pageContents .= <<< EOPAGEA
  582. <div class="column">
  583. <h2>{$langues['txtVhost']}</h2>
  584. <ul class="vhost">
  585. ${vhostsContents}
  586. </ul>
  587. </div>
  588. EOPAGEA;
  589. }
  590. if(!empty($error_content)) {
  591. $pageContents .= <<< EOPAGEB
  592. <div id="error" style="clear:both;"></div>
  593. ${error_content}
  594. EOPAGEB;
  595. }
  596. $pageContents .= <<< EOPAGEC
  597. </div>
  598. </div>
  599. <div class="divider2">&nbsp;</div>
  600. <ul id="foot">
  601. <li><a href="{$langues['forumLink']}">{$langues['forum']}</a></li>
  602. </ul>
  603. <script>
  604. var select = document.getElementById("themes");
  605. if (select.addEventListener) {
  606. /* Only for modern browser and IE > 9 */
  607. var stylecall = document.getElementById("stylecall");
  608. /* looking for stored style name */
  609. var wampStyle = localStorage.getItem("wampStyle");
  610. if (wampStyle !== null) {
  611. stylecall.setAttribute("href", "wampthemes/" + wampStyle + "/style.css");
  612. selectedOption = document.getElementById(wampStyle);
  613. selectedOption.setAttribute("selected", "selected");
  614. }
  615. else {
  616. localStorage.setItem("wampStyle","classic");
  617. selectedOption = document.getElementById("classic");
  618. selectedOption.setAttribute("selected", "selected");
  619. }
  620. /* Changing style when select change */
  621. select.addEventListener("change", function(){
  622. var styleName = this.value;
  623. stylecall.setAttribute("href", "wampthemes/" + styleName + "/style.css");
  624. localStorage.setItem("wampStyle", styleName);
  625. })
  626. }
  627. </script>
  628. </body>
  629. </html>
  630. EOPAGEC;
  631. echo $pageContents;
  632. ?>

这个有时候不用修改,但有时候必须要修改:修改 httpd-vhosts.conf

  1. # Virtual Hosts
  2. #
  3. <VirtualHost *:80>
  4. ServerName localhost
  5. ServerAlias localhost
  6. DocumentRoot "${INSTALL_DIR}/www"
  7. <Directory "${INSTALL_DIR}/www/">
  8. Options +Indexes +Includes +FollowSymLinks +MultiViews
  9. AllowOverride All
  10. Require all granted #/以前是 Require local
  11. </Directory>
  12. </VirtualHost>

 

3,查电脑ip

windows+R------>cmd------->ipconfig

在黑窗口中的ip可以选中后复制粘贴出来

4,正常是绿色

5, 查看是否可以访问资源

a,直接输入localhost

b,直接输入ip,或者http://IP/

c.自带的方法

 

6,在网页上访问资源,需要修改按每2步修改添加ip的访问

7,都设置好后,服务启动了1或2个,第三个无法启动则重启电脑也许就好了。

或者用自带的设置

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/300290
推荐阅读
相关标签
  

闽ICP备14008679号