I am a novice and tried running the bookmarker tutorial from cakephp cookbook but it is showing the following error:
theclownprince#theclownprince-K53SM:~/bookmarker/bin$ cake server
Error: Class ServerShell could not be loaded.
If it try running it from bookmarker folder it showing a different error
theclownprince#theclownprince-K53SM:~/bookmarker$ bin/cake server
PHP Warning: require_once(/home/theclownprince/bookmarker/vendor/composer/autoload_real.php): failed to open stream: No such file or directory in /home/theclownprince/bookmarker/vendor/autoload.php on line 3
PHP Fatal error: require_once(): Failed opening required '/home/theclownprince/bookmarker/vendor/composer/autoload_real.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/theclownprince/bookmarker/vendor/autoload.php on line 3
Thanks.
Related
I am new in cake php development, I have done a cake php upgrade from 2.7.5 to latest version 3. but i have some issues, when i try to run bin/cake server it shows below errors.
PHP Warning: include(Cake/Console/ShellDispatcher.php): failed to
open stream: No such file or directory in
/var/www/project_1/bin/cake.php on line 31 PHP Warning: include():
Failed opening 'Cake/Console/ShellDispatcher.php' for inclusion
(include_path='/var/www/lib:.:/usr/share/php') in
/var/www/project_1/bin/cake.php on line 31
PHP Fatal error: Could not locate CakePHP core files. in
/var/www/project_1/bin/cake.php on line 32
I can see the file cake.php which does not have any change but all other files moved from app to src folder, using cake php upgrade tool
i use command : "cake server" to start the project.
It run the first time. The second time it give me this error
Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0
Fatal error: Unknown: Failed opening required
‘C:\Users\duyqu\Desktop\page\webroot/index.php’ (include_path=’.;C:\php\pear’) in Unknown on line 0
I have check several time and it appear to delete the “index.php” file in webroot folder for no reason.
Here is what is already try:
-re-download Wamp server and composer
-update to newest version 3.5.2 of cakePHP
-copy the index.php to another place and recopy them back to webroot ( can’t be done because access denied)
I am stuck and have no idea what is happening. I have been use cakePHP for 6 months and this is the first
I think it could be antivirus. Everytime I create new project - everytime my antivirus tries to delete webroot/index.php
I've just created a new project and I'm trying to bake my tables. I've added the database config information to the config/app file and MySQL is running. When I run bake i get the following error:
Exception: SQLSTATE[HY000] [2002] No such file or directory in
[/Users/Marcus/PhPStormProjects/comet_mobile/vendor/cakephp/cakephp/src/Database/Driver/PDODriverTrait.php, line 48]
Can anyone tell me what this is referring to or how to fix it?
I almost managed to deploy a CakePHP-application on CentOS-server, but it still needs little configuration. I have enabled mod_rewrite in /etc/httpd/conf/httpd.conf and restarted apache-server.
Then I have put Cake core library in /home/user/cakephp-core/
I get message "500 internal error" when i try to go to this page through web-browser.
In apache-logs I found following messages:
PHP Warning: include(/$HOME/cakephp-core/lib/Cake/bootstrap.php): failed to open stream: Permission denied in /srv/www/site/public_html/main/index.php on line 96
PHP Warning: include(): Failed opening '/$HOME/cakephp-core/lib/Cake/bootstrap.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /srv/www/site/public_html/main/index.php on line 96
PHP Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in /srv/www/site/public_html/main/index.php on line 101
it says something about "permission denied"... to whom I should give permissions and where? I gave "apache:apache" to tmp/-folder... Any ideas?
Simply read the log and try to understand it.
It pretty clearly tells you what has insufficient permissions. The linux command to set permissions is chmod. You also want to make sure, as the text already tells you, that your CakePHP core include path is correct. Double check that too.
I have written a apache module in C ,through which to retieve the POST form value from browser. my module is compiled successfully,then load the module but when i start the apache server ,it throws a error
apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/dumpost.load: Cannot load /usr/lib/apache2/modules/mod_dumpost.so into server: /usr/lib/apache2/modules/mod_dumpost.so: cannot open shared object file: No such file or directory
Anybody figure out and suggest me.....