我试图通过执行来制作一个yii项目进行测试
/var/www/html/yii/framework/yiic webapp demo
Run Code Online (Sandbox Code Playgroud)
当我去localhost/demo时,我得到了错误:
Application runtime path "/var/www/html/demo/protected/runtime" is not valid.
Please make sure it is a directory writable by the Web server process.
Run Code Online (Sandbox Code Playgroud)
起初我以为它确实不可写,所以我做了:
chmod 777 /var/www/html/demo/protected/runtime
Run Code Online (Sandbox Code Playgroud)
没有工作,所以我执行的最后一个想法:
chmod 777 -R /var/www/html/demo/
Run Code Online (Sandbox Code Playgroud)
我仍然得到同样的例外.关于可能出错的任何想法?
- -编辑 - -
FFS这让我疯狂
drwxrwxrwx. 4 apache apache 4096 Jun 5 00:06 commands
drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 components
drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 config
drwxrwxrwx. 3 apache apache 4096 Jun 5 00:06 controllers
drwxrwxrwx. 3 apache apache …Run Code Online (Sandbox Code Playgroud) 嗨,我有一个问题.我想获得所有请求重定向到主目录中的索引文件,我已经实现了这一点,但相对路径存在问题.
当我把地址放在:mydomain.com/something时,它的工作正常,因为路径是相对于主目录的.
问题是当我提出类似的东西:mydomain.com/something/somethingelse.
.htaccess文件:
Options FollowSymLinks
RewriteEngine On
# ignore anything that's an actual file
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
# redirect all other traffic to the index page
RewriteRule . index.php [L]
Run Code Online (Sandbox Code Playgroud)
关于如何让css/j工作的任何想法?
编辑:
问题是当输入的路径有多个斜杠时,不会加载css/js文件
:mydomain.com/something/somethingelse
我有状态网格的问题.我不想保存排序状态,但我想保存所有其他选项(列位置,列宽,分组等)
现在我已经尝试使用stateEvents选项,但是当偶数触发时它会保存整个网格状态.
是否有任何选项可以排除保存排序状态?
网格配置的一部分:
this.gridPanel = new Ext.grid.GridPanel({
id:'grid'+this.id,
region:region,
layout:'fit',
stateful:true,
stateEvents: ['columnmove', 'columnresize', 'groupchange', 'bodyresize'],
loadMask:true,
split:true,
store: this.stores['root'+this.id],
cm: this.getRootColumnModel(),
sm: this.getRootSelectionModel(),
Run Code Online (Sandbox Code Playgroud)