These are chat archives for ppi/framework

15th
Dec 2015
Paul Dragoonis
@dragoonis
Dec 15 2015 00:05
@alfrekjv this seems like a system/php issue rather than PPI.
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:05
I know
it has never happened to me before
Paul Dragoonis
@dragoonis
Dec 15 2015 00:06
just re-run a chown -R and chmod -R on it, see what happens
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:07
same thing, I've even tried with chown root:root 😂
Paul Dragoonis
@dragoonis
Dec 15 2015 00:09
booooo!
are you using funny symlinks
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:10
nope
It's a VM in MS Azure, though, first time using those.
Paul Dragoonis
@dragoonis
Dec 15 2015 00:11
Hmm, maybe the user ‘apache’ isn’t correct?
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:11
well I tried to run it as root and did chmod root:root as well
Paul Dragoonis
@dragoonis
Dec 15 2015 00:11
why don’t you delete app/cache yourselv and have your PHP app re-create app/cache, that way your web user created it, and can RW to it
delete the dir, make a ‘create.php’ file - and access it from the browser - then have it mkdir() and chmod()
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:12
Warning: mkdir(): Permission denied in <b>/var/www/html/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 52
:D
I did try that as well, just sent an email to support maybe it's related to the box's permissions
Paul Dragoonis
@dragoonis
Dec 15 2015 00:13
Have a script make the dir and chmod it, that way PPI or SF won’t try to create it for you
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:17
the script does create the folders, but still not working on PPI :O
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:23
wait a sec, it works on PHP CLI, but not on web.
Paul Dragoonis
@dragoonis
Dec 15 2015 00:23
:D
check is_writeable() from a .php file coming from the browser
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:25
bool(false)
I'm looking around to see if there's something I can change on the httpd.conf or php.ini file
Paul Dragoonis
@dragoonis
Dec 15 2015 00:26
alright, well now you know it’s a system/php/web error and not PPI related :)
what if you made app/cache part of your app’s repo ? :)
your deploy process will make it writeable i’m sure.
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:28
Let me try that one
Alfredo Juárez
@alfrekjv
Dec 15 2015 00:36
Nope, this is definitely a setup problem from the vendor.
can't find any work-around
Yassine
@hubroot
Dec 15 2015 03:31
hello everyone, I'm new here
Paul Dragoonis
@dragoonis
Dec 15 2015 09:00
@jachine welcome
Vítor Brandão
@noisebleed
Dec 15 2015 09:18
Morning all
Security advisories don't make sense in dev-only IMHO, @dragoonis
Why would you exclude vulnerable libraries in dev but allow them in prod?
Paul Dragoonis
@dragoonis
Dec 15 2015 09:20
@noisebleed It’s far point. Sure, go with it then :)
Yassine
@hubroot
Dec 15 2015 15:48
thanks dragoonis
yet a pre-built hooks/events system in PPI ?
I was thinking about modules,services,controllers dependencies in PPI, I searched in the documentation for "dependency" and then I get 5 results, but none of them has the word "dependency".
Paul Dragoonis
@dragoonis
Dec 15 2015 17:06
@jachine there are events in the services and modules that you can utilise. As for building your application’s events you should use EventManager from Doctrine, Zend or Symfony. They all do a similar job.
Yassine
@hubroot
Dec 15 2015 19:59
@dragoonis I see the point, Thanks for sharing the PPI :)
Paul Dragoonis
@dragoonis
Dec 15 2015 20:00
@jachine no problem. With your PPI application, you just include small EventManager component from - https://packagist.org/packages/doctrine/common
Yassine
@hubroot
Dec 15 2015 20:06
@dragoonis the PHP SPL extension has also 2 simple classes for events, SplSubject & SplObserver
@dragoonis Is there a performance statistic for PPI, like requests for seconds for a basic app ?
I'm going to manifest PPI in a program soon.
Paul Dragoonis
@dragoonis
Dec 15 2015 20:13
@jachine no perf statistic. It’s very lightweight and small.
Paul Dragoonis
@dragoonis
Dec 15 2015 20:27
You’re welcome to create and share your own perf. statistics :)
Yassine
@hubroot
Dec 15 2015 23:27
@dragoonis for sure. the base intent was to create a custom framework from scratch, but I found the PPI with luck, search engines show me the same PHP frameworks over and over anytime I ask it for suggestions.
Between, http://ppi.io/downloads occur a server error (500)
Yassine
@hubroot
Dec 15 2015 23:30
@dragoonis Thanks again : )
Paul Dragoonis
@dragoonis
Dec 15 2015 23:30
grab ‘master’ branch of http://github.com/ppi/skeletonapp - and follow instructions
Yassine
@hubroot
Dec 15 2015 23:30
sure, doing it now
Paul Dragoonis
@dragoonis
Dec 15 2015 23:30
To view the video in HD mode - view it directly on Vimeo - https://vimeo.com/143669109
Hope that helps :)
Yassine
@hubroot
Dec 15 2015 23:32
neat haha
right in the code, I watch the video as well,
it really helps,thanks a lot
Paul Dragoonis
@dragoonis
Dec 15 2015 23:34
:+1:
Yassine
@hubroot
Dec 15 2015 23:51
I think ../app/FrameworkRequirements.php fromt the public/check.php is missing !
Paul Dragoonis
@dragoonis
Dec 15 2015 23:51
This gets copied over upon a successful composer install
what happens when you run ‘composer install'
Yassine
@hubroot
Dec 15 2015 23:52
Oh I see, composer got a failure somewhere ! all files are downloaded but when generating the autoload
it has an exception
Paul Dragoonis
@dragoonis
Dec 15 2015 23:52
gist.github.com the output ? I can help you
Yassine
@hubroot
Dec 15 2015 23:53
Failed to create symbolic link from "../../modules/Framework/resources/public/" to "public/modules/framework"
Paul Dragoonis
@dragoonis
Dec 15 2015 23:53
composer install --verbose
https://gist.github.com the full stack trace here
Yassine
@hubroot
Dec 15 2015 23:53
ok
Paul Dragoonis
@dragoonis
Dec 15 2015 23:57
'git' is not recognized as an internal or external command, operable program or batch file.
you don’t have git installed on your system :)
Also, run this command and gist up the output
app/console assets:install --symlink --relative  public
Yassine
@hubroot
Dec 15 2015 23:58
alright
Paul Dragoonis
@dragoonis
Dec 15 2015 23:58
Oh, you’re on windows. That’s why
One second.
Yassine
@hubroot
Dec 15 2015 23:59
sure
Paul Dragoonis
@dragoonis
Dec 15 2015 23:59

See this line? https://github.com/ppi/skeletonapp/blob/master/composer.json#L41

Change it to “relative” insteas of “symlink-relative"