You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok thanks, but could you give me code you are benchmarking?
This is the code of your framework, but maybe you made some modifications / installations before using the benchmark kit?
Ok thanks, but could you give me code you are benchmarking?
This is the code of your framework, but maybe you made some modifications / installations before using the benchmark kit?
I've added Zest Framework to benchmark kit.
You can call phpbenchkit --selfupdate, then answer framework to Composent type? question, and you will see Zest Framework in the list for next question.
I've added Zest Framework to benchmark kit.
You can call phpbenchkit --selfupdate, then answer framework to Composent type? question, and you will see Zest Framework in the list for next question.
Yes i see but when i follow steps it showing same result, even i run that command with sudo prefix
The permission denied problem is inside Docker phpbenchmarks/benchmark-kit:4 container.
The phpbenchkit configure:benchmark command will create the directory and files on /var/www/benchmark/.phpbenchmarks folder.
And it seems that the phpbenchkit script will use the docker exec with phpbenchmarks user to create above directory.
It can look at this line to find out above command.
It will be permission denied because the /var/www/benchmark/ directory owner is the root, not phpbenchmarks.
To fix above issue temporarily, it should use docker exec container_id /bin/bash -c "chown -R phpbenchmarks:phpbenchmarks /var/www/benchmark/" before running phpbenchkit configure:benchmark command.
I thought you were on a subdirectory of /var/www, but peter is right if you are not (/var/www is the root of your installation, not /var/www/Zest_Framework for example).
You can change permissions of /var/www with it's command, or do it outside of the container.
But i think the best solution is to add a subdirectory into /var/www, and give permissions of your user only to this directory.
Activity
steevanb commentedon Aug 24, 2020
Hi,
Could you please show me the full code?
assets:installis not called by benchmark kit.lablnet commentedon Aug 24, 2020
would you like see code i am benchmarking?
i am benchmarking this https://github.com/Zestframework/Zest
steevanb commentedon Aug 24, 2020
Ok thanks, but could you give me code you are benchmarking?
This is the code of your framework, but maybe you made some modifications / installations before using the benchmark kit?
lablnet commentedon Aug 24, 2020
this is same code i push yet
https://github.com/zestframework/Zest-Benchmark
lablnet commentedon Aug 24, 2020
i install kit as mentioned and i have to change url in wget because from the readme the url was not work
then i run command
phpbenchkitit ask me directory name i put Zest which was inside/var/www/html/Zest/and i run script from/htmlthen it show me to run
phpbenchkit configure:allwhen i run this it show me above mentioned error
Thanks
steevanb commentedon Aug 24, 2020
Thanks i will take a look as soon as possible.
lablnet commentedon Aug 27, 2020
Any update, if possible?
steevanb commentedon Aug 28, 2020
I will have time for it during this week-end or next week, i will tell you here when i've fixed it.
steevanb commentedon Aug 31, 2020
I've found the problem: it's not the code, it's the documentation.
Commands has been renamed but i didn't change the documentation:
configure:allhas been renamed toconfigure:benchmark.Problem is solved, you can call
phpbenchkit --selfupdateto get the documentation fix and callphpbenchkit configure:benchmark.lablnet commentedon Aug 31, 2020
Give me time to check pls 😊 I will be back with status yet it's late night here
Thanks for your time to look to issue
lablnet commentedon Sep 1, 2020
Nah Boss its not working

Even i try to run with
sudoprefix as well.I changed the permission of whole directory as well
Looking forward to hear from you thanks
steevanb commentedon Sep 1, 2020
It seems ok on my side:

steevanb commentedon Sep 1, 2020
Could you tell me your UID with
echo $UID?Do it on your host, not inside the Docker container.
steevanb commentedon Sep 1, 2020
I've added Zest Framework to benchmark kit.
You can call
phpbenchkit --selfupdate, then answerframeworktoComposent type?question, and you will seeZest Frameworkin the list for next question.lablnet commentedon Sep 2, 2020
lablnet commentedon Sep 2, 2020
Yes i see but when i follow steps it showing same result, even i run that command with
sudoprefixpeter279k commentedon Sep 2, 2020
The issue is about permission denied.
That is, the
/var/www/benchmarkowner is not same as your current user.The
/var/www/benchmarkowner should bewww-datauser and it's notlablnet.To resolve above issue, I think it can add
sudobefore thephpbenchkit configure:benchmark.lablnet commentedon Sep 2, 2020
I try with that too but still same issue
peter279k commentedon Sep 2, 2020
The permission denied problem is inside Docker
phpbenchmarks/benchmark-kit:4container.The
phpbenchkit configure:benchmarkcommand will create the directory and files on/var/www/benchmark/.phpbenchmarksfolder.And it seems that the
phpbenchkitscript will use thedocker execwithphpbenchmarksuser to create above directory.It can look at this line to find out above command.
It will be
permission deniedbecause the/var/www/benchmark/directory owner is theroot, notphpbenchmarks.To fix above issue temporarily, it should use
docker exec container_id /bin/bash -c "chown -R phpbenchmarks:phpbenchmarks /var/www/benchmark/"before runningphpbenchkit configure:benchmarkcommand.And it will be worked :).
steevanb commentedon Sep 2, 2020
Thanks @peter279k.
I thought you were on a subdirectory of
/var/www, but peter is right if you are not (/var/wwwis the root of your installation, not/var/www/Zest_Frameworkfor example).You can change permissions of
/var/wwwwith it's command, or do it outside of the container.But i think the best solution is to add a subdirectory into
/var/www, and give permissions of your user only to this directory.lablnet commentedon Sep 2, 2020
Its fixed thanks both @peter279k and @steevanb
But the document should be improved for new person in docker and Linux environment thanks.
peter279k commentedon Sep 2, 2020
That's right. They should be improved :).
steevanb commentedon Sep 2, 2020
Yes, for now benchmark kit 4 is under developement. Documentation is not fully written ;)
Closes issue phpbenchmarks#153
Closes issue phpbenchmarks#153