wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-32b Build a php environment
Under win, download wampserver2.5-Apache-2.4.9-Mysql-5.6.17- php5.5.12-32b.exe, installed by default.
Then open the httpd.conf configuration file D:wampbinapacheapache2.4.9confhttpd.conf
in the installation directory and modify it as follows:
<span> 1</span> Listen 0.0.0.0:8088 <span> 2</span> Listen [::0]:8088 <span> 3</span><span> 4</span> ServerName localhost:8088 <span> 5</span><span> 6</span> DocumentRoot "D:/kkkoffice/wwwroot" <span> 7</span><span> 8</span> <directory></directory> <span> 9</span><span>#</span><span>AllowOverride none</span><span>10</span><span>#</span><span>Require all denied</span><span>11</span><span> Options FollowSymLinks </span><span>12</span><span> AllowOverride None </span><span>13</span> Order deny,<span>allow </span><span>14</span><span>#</span><span>Deny from all</span><span>15</span><span> allow from all </span><span>16</span> <span>17</span><span>18</span> <directory> <span>19</span><span> Options FollowSymLinks </span><span>20</span><span> AllowOverride None </span><span>21</span> Order deny,<span>allow </span><span>22</span><span> allow from all </span><span>23</span> </directory>
Instructions:
Listen Listening port
ServerName Server name (with port number)
DocumentRoot php file path (note: be sure not to bring "/" at the end)
Possible problems: visit http://localhost:8088/phpinfo.php
If it occurs You don't have permission to access /test/file.php on this server
Comment Deny from all to have permission to access /test/file.php on this server
Comment Deny from all httpd.conf, remember to restart apache
Restart and refresh the page to access it normally as follows
Okay, the environment has been set up successfully!
The above has introduced the PHP environment construction of wampserver, Apache, Mysql and PHP, including the content of wampserver and PHP environment construction. I hope it will be helpful to friends who are interested in PHP tutorials.