4
php框架phalcon7安装
source link: https://www.80shihua.com/archives/2632
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
php框架phalcon7安装
作者: dreamfly 分类: php 发布时间: 2020-10-06 20:50
linux/macos,gcc,phpize,php-config
-
下载源码文件 git clone --depth=1 git://github.com/dreamsxin/cphalcon7.git
-
编译文件 phpize
-
编译 ./configure
-
生成 make && make install
-
添加扩展到配置文件
php --ri phalcon7
app/
controllers/
models/
views/
public/
css/
img/
js/
index.php
伪静态配置
# test/public/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]
</IfModule>
server {
listen 80;
server_name localhost.dev;
root /var/www/phalcon/public;
index index.php index.html index.htm;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?_url=$uri&$args;
}
location ~ \.php {
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index /index.php;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}
创建phalcon脚手架
ln -s ~/cphalcon7/devtools/phalcon.php /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon
生成phalcon框架
phalcon create-project store
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
发表评论 取消回复
电子邮件地址不会被公开。 必填项已用*标注
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK