Class ziparchive not found, access to this page has been denied


While working on Zip file in your Laravel application, you might need to lớn use PHP in-built class ZipArchive. When you use class in your controller file, you might get error "Class 'AppHttpControllersipArchive' not found".

Bạn đang xem: Class ziparchive not found, access to this page has been denied

To use ZipArchive class in PHP, you need lớn have installed và enabled zip extension which is which uses libzip. You can simply install zip extension with your enabled PHP version.


sudo apt-get install php7.4-zipPHP8.0

sudo apt-get install php8.0-zipAnd don't forget lớn restart apache vps to implement changes.

sudo service apache2 restartNow refresh the page and error should have gone. If you still get the error, make use you have use class above else Laravel will try to lớn find class in your Controllers directory.

I hope this will help you.

Xem thêm: Hiện Tượng Nghẽn Cổ Chai - Tại Sao Máy Tính Bị Nghẽn Cổ Chai

Author : Harsukh Makwana

Hi, My name is Harsukh Makwana. I have been work with many programming language lượt thích php, python, javascript, node, react, anguler, etc.. Since last 5 year. If you have any issue or want me hire then contact me on

Random Articles

Python Numpy Array Tutorial Part 2

In the first part, we have discussed wha...

Stripe Payment Integration With Laravel 5.4

In this tutorial we are share with you h...

PHP - How to lớn Integrate Paypal Payment Gateway In PHP

Today, share with you how to...

How khổng lồ Get Current Location in JavaScript Example

In this article, I will cốt truyện with you h...

Login with Twitter in Angular9 using Firebase

I am going to show you how you can...
View More..
report this ad
Privacy PolicyTerms & ConditionsDisclaimer

Chuyên mục: Domain Hosting