共享Windows Plesk服务器上的CakePHP
我想知道是否有可能让Cake
PHP在共享的Windows Plesk服务器上运行?
我已将CakePHP文件解压缩到/ httpdocs /文件夹,并按照CakePHP文档中的说明创建了一个web.config文件,但我似乎得到的只是一个“内部服务器错误”.在查看基本的Cake配置页面之前是否还需要设置MySQL数据库,还是应该能够在没有配置任何数据库的情况下向我显示? 我已将我的站点配置为运行PHP 5.4.32(FastCGI). 报告的错误是:
但是我的主机说他们尝试包含php_intl.dll所在目录的路径,但这还没有解决问题. 干杯, 皮特 解决方法
以下是Cakephp 2.x中的操作方法
设置好网站空间后,您无需更改或破坏php配置(只要将php设置为此网站空间的默认设置),并且在Plesk中创建web_space时,Plesk服务器通常会为您完成所有操作. 但是,你需要在Plesk服务器中配置CakePhp应用程序,你需要遵循这些: >根目录 当您创建新的DNS或web_space时,Plesk会为您创建目录结构,您需要将应用程序放在创建的目录中,并在这些文件夹中配置htaccess,如下所示(只需在路径中添加一些“/”): CakePHP root directory (must be copied to your document; redirects everything to your CakePHP app and updated to): <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$app/webroot/ [L] #to=> /app/webroot/ RewriteRule (.*) app/webroot/$1 [L] #to=> /app/webroot/$1 </IfModule> CakePHP app directory (will be copied to the top directory of your application by bake): <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ webroot/ [L] #to=> /webroot/ RewriteRule (.*) webroot/$1 [L] #to=> /webroot/$1 </IfModule> CakePHP webroot directory (will be copied to your application’s web root by bake): <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$index.php [QSA,L] #to=> /index.php </IfModule> >数据库 当然,您需要配置数据库. 为此,您需要在plesk服务器中为您的应用程序设置一个新数据库,然后获取: >数据库IP地址 并使用新的数据库详细信息更新您的app / Config / database.php.如你所知: public $default = array( 'datasource' => 'Database/Mysql','persistent' => false,'host' => 'ip address here','login' => 'database username','password' => 'database password','database' => 'database name' ); Here is how to configure Cakephp 3.x 希望这可以帮助 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- “打开…”是Windows上的一个文件,带有python应用程序
- 如何从命令行在Windows7上以管理员身份运行命令?
- 无法从Windows Mono C#Project访问Linux gcc编译的.so共享库
- windows-server-2008 – 返回HTTP 503的Microsoft SSTP VPN
- 套接字 – 套接字错误10054
- windows-server-2008 – 我是否应该在将域名升级到Server 2
- MSDOS“Hello World”EXE
- Windows 10 Powershell Invoke-WebRequest“Windows安全警告
- windows-phone-8 – 如何从托管代码打开和保存skydrive上的
- XAML中的StringFormat