I can't view my website after uploading files - cakephp

I uploaded my site backup files from another domain, after extracting the content and setting up the database I am getting this error message:
This page isn’t working is currently unable to handle this request.
HTTP ERROR 500.
these are the errors I am getting from apache error logs:
I have deleted the cache folder from the previous site
PHP Fatal error: Class 'ErrorHandler' not found in /home/studypal/public_html/lib/Cake/Core/App.php on line 957
mmap cache can't open /home/payconnet/public_html/lib/Cake/Error/ErrorHandler.php - Permission denied (pid 18797)
mmap cache can't open /home/payconnet/public_html/lib/Cake/Error/ErrorHandler.php - Permission denied (pid 18797)
mmap cache can't open /home/payconnet/public_html/lib/Cake/Configure/PhpReader.php - Permission denied (pid 18797)
mmap cache can't open /home/payconnet/public_html/lib/Cake/Error/ErrorHandler.php - Permission denied (pid 18797)
PHP Warning: include(/home/payconnet/public_html/lib/Cake/Error/ErrorHandler.php): failed to open stream: Permission denied in /home/studyconnet/public_html/lib/Cake/Core/App.php on line 547
PHP Warning: include(): Failed opening '/home/payconnet/public_html/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/studyconnet/public_html/lib/Cake/Core/App.php on line 547
PHP Fatal error: Class 'ErrorHandler' not found in /home/studyconnet/public_html/lib/Cake/Core/App.php on line 957

Related

running commands from cloud-builders-community/sonarqube/

gcloud builds submit . --config=cloudbuild.yaml
Creating temporary tarball archive of 6 file(s) totalling 3.2 KiB before compression.
Uploading tarball of [.] to [gs://training_cloudbuild/source/1670817617.242895-f55df2adc5e04b5ca65f2ed1a6a12fe4.tgz]
ERROR: (gcloud.builds.submit) 403 Could not upload file [/tmp/tmprwqmw411/file.tgz] to [training_cloudbuild/source/1670817617.242895-f55df2adc5e04b5ca65f2ed1a6a12fe4.tgz]: Access denied.
running commands from cloud-builders-community/sonarqube/ in the instance and getting this error .Need help how to run sonar scanner in cloud build .Need to use sonarqube while running the code in cloud build.
From Troubleshooting build errors documentation
4xx client errors
This group of errors indicates that the build
request is not successful presumably by fault of the user sending the
request. Some examples of 4xx client errors are:
**Error**: 404 : Requested entity was not found
**Error**: 404 : Trigger not found
**Error**: 400 : Failed Precondition
**Error**: 403 : Permission denied
Error message:
ERROR: (gcloud.builds.submit) 403 Could not upload file [/tmp/tmprwqmw411/file.tgz] to [training_cloudbuild/source/1670817617.242895-f55df2adc5e04b5ca65f2ed1a6a12fe4.tgz]: Access denied.
The error stats, the Service Account does not have access to [gs://training_cloudbuild/]
Try adding below permission to build Service Account:
storage.objects.create
storage.objects.get
storage.objects.list

AWS Neptune Notebook: not able to create notebook

I am trying to create AWS Neptune Notebook I am using AWS Neptune notebook wizard to create a note book, but it fails to create it. I was able to create it before and suddenly it stopped. I have no change in VPC, subnet and security group.
my security group allows to connect to port 8182. I enabled logs and i see below errors.
fatal error: Could not connect to the endpoint URL: "https://aws-neptune-notebook.s3.us-east-2.amazonaws.com/graph_notebook.tar.gz"
fatal error: Could not connect to the endpoint URL: "https://aws-neptune-notebook.s3.us-east-2.amazonaws.com/graph_notebook.tar.gz"
2022-06-22T16:27:28.948-04:00 tar (child): /tmp/graph_notebook.tar.gz: Cannot open: No such file or directory
2022-06-22T16:27:28.948-04:00 tar (child): Error is not recoverable: exiting now
2022-06-22T16:27:28.948-04:00 tar: Child returned status 2
2022-06-22T16:27:28.948-04:00 tar: Error is not recoverable: exiting now
2022-06-22T16:27:33.799-04:00 -bash: line 11: /tmp/graph_notebook/install.sh: No such file or directory
when accessing url from logs, it says https://aws-neptune-notebook.s3.us-east-2.amazonaws.com/graph_notebook.tar.gz is moved to another location but i am not sure where and how i should update this url.

Cake server not running

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.

Error occurred while opening logfile C:\Windows\system32\LogFiles\Sum\Api.log

I need to restart the MS SQL server service every morning because my web client site can not connect.
However, when I start my services it works. I don't know what is causing the problem.
I found this in my error log.
sqlservr (4052) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.log"
for read only access failed with system error 5 (0x00000005):
"Access is denied. ".
The open file operation will fail with error -1032 (0xfffffbf8).
sqlservr (3000) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.chk"
for read / write access failed with system error 5 (0x00000005): "Access is denied. ".
The open file operation will fail with error -1032 (0xfffffbf8).
Hope somebody can help me fix this.
Your serviceaccount need access to the folder:
C:\Windows\System32\LogFiles\Sum
Go to the folder and add the account with read/write permissions.
http://support.microsoft.com/kb/2811566

How to deploy CakePHP-application on CentOS?

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.

Resources