php創建方法

編寫工具能夠從網上下載Sublime Textphp

一:下載wampserverhtml

二:啓動服務:mysql

1.肯定 Apache中的Service與MysQL是否啓動了;默認端口爲80sql

2.改Apache端口:在Apache中選中httpd.conf,修改Listen與ServerName附近的80前面在加一個80數據庫

 

小提示:建議覆蓋:apache

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all Satisfy all </Directory>
複製代碼

 

修改爲瀏覽器

複製代碼
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
#    Deny from all Allow from all #容許全部訪問 Satisfy all </Directory>
複製代碼

 

 

還有服務器

 

複製代碼
<Directory "D:/Wamp5/www"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you.  # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. # # onlineoffline tag - don't remove  Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory>
複製代碼

 

修改爲ide

 

複製代碼
<Directory "D:/Wamp5/www"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you.  # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. # # onlineoffline tag - don't remove  Order Deny,Allow # Deny from all # Allow from 127.0.0.1 Allow from all </Directory>
複製代碼

 

而後保存,重啓服務,在訪問就解決了這個問題。工具

 

 

 

 

3.點擊Restart All Services從新啓動一下服務器圖標變爲綠色爲登陸服務器成功

 

三:判斷服務是否可用:

1.找到根目錄下的安裝環境進入www文件夾,進入index.php,運行在瀏覽器中查看localhost後面加:8080若是出現如下界面說明登陸成功

 

2.若是不可用點擊設置來設置站點與服務器

 

四:裝界面:

1.登陸到sql命令行

點擊MySQL裏面的MySQL console

2.進入MySQL console裏面按回車

 

3.用SQL來修改密碼:在一行上寫use mysql而後回車,出現database changed說明登陸成功了

 

4.在寫入UPDATE mysql.user SET password=PASSWORD(123) WHERE user='root';而後回車出現ok後關閉

 

5.從新打開MySQL console輸入括號裏面的密碼123就能夠了

6.打開SQL數據庫創建鏈接從新啓動Restart All Services完成。

相關文章
相關標籤/搜索