winglian / heroku-buildpack-php Goto Github PK
View Code? Open in Web Editor NEWThis project forked from heroku/heroku-buildpack-php
This project forked from heroku/heroku-buildpack-php
[core:error] pid 46:tid 139813576832768Permission denied: [client 172.17.42.1:44701] AH00035: access to /php-cgi/index.php denied (filesystem path '/app/apache/cgi-bin') because search permissions are missing on a component of the path
I recently installed this build pack and run Laravel 4 on Heroku. I added https://github.com/jenssegers/Laravel-MongoDB/ to my Laravel application and pushed changes to heroku. However I got Class 'MongoClient' not found error.
Is there some way to add MongoClient class to this build pack?
Thanks :)
The default composer.json
provided by laravel has the following scripts:
"scripts": {
"post-install-cmd": [
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
However, php
is not available, thus the push fails. I tried using $BUILD_DIR/bin/php
, since that's what you use in the compile
script to execute composer, however apparently $BUILD_DIR
is empty when composer executes these functions because I receive the following error messages.
sh: /bin/php: not found
Script $BUILD_DIR/bin/php artisan optimize handling the post-install-cmd event returned with an error
How might I go about modifying the composer.json
provided by Laravel so that it can successfully execute artisan commands via the json file?
It would be great if we could add in support for the PHP FTP extension
In order to use FTP functions with your PHP configuration, you should add the --enable-ftp option when installing PHP.
Push is rejected:
-----> PHP app detected
Build dir is /tmp/build_ebbce85d-a645-44e4-82a2-f0046069479b
-----> Extracting Apache 2.4.9 PHP 5.5.11 build 2.0-rc2
-----> from http://vulcan-wlian.herokuapp.com/output/95ee1f8b-46fa-4ef7-a99f-92d6e03ed8d2
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
! Push rejected, failed to compile PHP app```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.