laravel常見異常解決

  requested URL not foundphp

 

http://stackoverflow.com/questions/21458080/the-requested-url-projectname-users-was-not-found-on-this-server-laravelhtml

 

DocumentRoot "/var/www/html/laravel/public/"laravel

 

<Directory "/var/www/html/laravel/public">bootstrap

Allowoverride Allcomposer

</Directory>curl

 

<IfModule mod_rewrite.c>ide

<IfModule mod_negotiation.c>ui

Options -MultiViewsthis

</IfModule>url

 

RewriteEngine On

 

# Redirect Trailing Slashes...

RewriteRule ^(.*)/$ /$1 [L,R=301]

 

# Handle Front Controller...

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^ index.PHP [L]

</IfModule>

 

 

Could not open input file: composer.phar

 

If anyone else came this low on the page and still didn't find a working answer (like I did), use this:

 

解決:

$ curl -sS https://getcomposer.org/installer | php

$ mv composer.phar /usr/local/bin/composer.phar

$ alias composer='/usr/local/bin/composer.phar'

$ composer --version

 

sudo composer.phar update

 

sudo composer phar install

 

et voila! A working composer :-)

 

 

 

composer 報 zlib_decode(): data error

http://www.07net01.com/2015/08/894255.html

 

使用composer 安裝lumen 項目,執行composer create-project laravel/lumen --prefer-dist,命令報 [ErrorException]    zlib_decode(): data error 錯。

 

解決辦法:先運行

 

composer diagnose

 

若所有返回OK

 

再執行通常就行

composer install -vvv

 

Failed to enable crypto

 

解決:修改php.ini文件——有的我都改了

openssl.cafile=/Users/jackluo/tools/https-ca/cacert.pem

 

 failed to open stream: No such file or directory in /var/www/laravel/Learn-Laravel-5/bootstrap/autoload.php on line 17

PHP Fatal error:  require(): Failed opening required '/var/www/laravel/Learn-Laravel-5/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/laravel/Learn-Laravel-5/bootstrap/autoload.php on line 17

 

You have to run composer dumpautoload

相關文章
相關標籤/搜索