希望有人發現它有用......
cakephp_3_x-X
XAMPP v 3.2.1
PART 1(以測試CakePHP是工作在所有的,使用CakePHP包括服務器)
以下CakePHP的導師
在bake.bat創建DB - 添加PHP的路徑:
J:\xampp\php\php "%lib%cake.php" %*
DOS提示符:
J:\xampp\htdocs\cakephp-3-1-6>.\bin\cake bake all users
J:\xampp\htdocs\cakephp-3-1-6>.\bin\cake bake all bookmarks
J:\xampp\htdocs\cakephp-3-1-6>.\bin\cake bake all tags
CMD> CD j:\ XAMPP \ htdocs中\ cakephp的-3-1-6
J:\xampp\htdocs\cakephp-3-1-6>set PATH=%PATH%;J:\xampp\php\;
J:\xampp\htdocs\cakephp-3-1-6>bin\cake server
看它http://localhost:8765/
第2部分(例如,如果我們有港8787免費使用虛擬主機)
重複(對於j:\ XAMPP \ APPS \書籤用)
烘烤。蝙蝠 - 添加PHP路徑:
J:\xampp\php\php "%lib%cake.php" %*
DOS提示符:
J:\xampp\apps\bookmarker>.\bin\cake bake all users
J:\xampp\apps\bookmarker>.\bin\cake bake all bookmarks
J:\xampp\apps\bookmarker>.\bin\cake bake all tags
J:\xampp\htdocs\applications.html (create your own application section...:
<!-- START cakephp-3-0-0 bookmarker -->
<div align="center" class="module_table">
)
...
<div align="right" class="module_access"><a target="_blank" name="bookmarker" href="http://localhost:8787/bookmarks">Access</a></div>
...
1)主要的httpd.conf。
Listen 8787
<VirtualHost *:8787>
DocumentRoot "J:\xampp\apps\bookmarker"
# ServerName www.example.com
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory "J:\xampp\apps\bookmarker" >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
# Other directives here
</VirtualHost>
不包括用於apache的應用特定的配置:
# Include "J:/xampp/apps/bookmarker/conf/httpd-prefix.conf"
2)項:對CSS的工作:在根目錄/ htaccess的
#<IfModule mod_rewrite.c>
# RewriteEngine On
# ## RewriteBase J:\xampp\apps\bookmarker\src\
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule^index.php [L]
#</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
其餘部分作爲安裝由cakePHP可以通過xampp應用程序界面或直接嘗試:
http://localhost:8787/bookmarks
你可以發佈你的Apache錯誤日誌的地方? – 2013-04-11 02:12:12