laravel in centos

时间:2022-11-27 06:52:46

如果遇到:

phpunit....

To enable extensions, verify that they are enabled in those .ini files:

- /etc/php5/cli/php.ini

- /etc/php5/cli/conf.d/05-opcache.ini

....

请安装php-xml的扩展就好了。

如果出现500错误,请检查以下:

1.将项目public目录设置为根目录之后,根目录的设置

这里:<Directory />
#    Options FollowSymLinks
#    AllowOverride None
    AllowOverride none
#    Require all denied
 Options FollowSymLinks
    Order deny,allow
    Deny from all
</Directory>
这里

#
<Directory "/var/www/html/ranking/public">

#
# 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 None
AllowOverride All
#        Require all granted
#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

这里:composer install 并且给项目目录添加777 -R权限。
这里:如果使用了git的话 可能要marge这时候执行如下指令:

git fetch --all

git reset --hard origin/master

OK。