Snippets tagged “apache”
45 snippets use this tag.
- 413 Request Entity Too Large - File Upload IssuePHP
The HTTP error 413 Request Entity Too Large indicates that the server is unable to process the request because the request payload (the body of the request) is larger than the server is able to handle.
- Apache Files Expires / Apache Set CachesApache
Apache is free and open-source cross-platform web server software. Read and know about Apache Files Expires module and how to set caches with Apache.
- Block direct access to a file over http but allow php script accessPHP
One way to block direct access to a file over HTTP but allow PHP script access is to use a .htaccess file in the same directory as the file.
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING errorPHP
The "net::ERR_INCOMPLETE_CHUNKED_ENCODING" error in Chrome is usually caused by a problem with the website you are trying to load.
- Directory index forbidden by Options directivePHP
This error message typically appears when you are trying to access a directory on a web server that does not contain an index.html or index.php file and the web server is configured to prevent users from browsing the directory.
- enable cors in .htaccessPHP
To enable Cross-Origin Resource Sharing (CORS) in an .htaccess file, you can add the following lines:
- Enabling/installing GD extension? --without-gdPHP
To enable the GD extension in PHP, you will need to install the extension and then enable it in your PHP configuration file.
- Error 500: Premature end of script headersPHP
Error 500 "Premature end of script headers" is a general error message indicating that there is a problem with the server-side script that is preventing it from executing properly.
- How can I disable notices and warnings in PHP within the .htaccess file?PHP
You can disable notices and warnings in PHP by adding the following line to your .htaccess file:
- How Can I Remove “public/index.php” in the URL Generated Laravel?PHP
To remove "public/index.php" from the URL in a Laravel application, you can use the built-in PHP web server or set up a web server with Apache or Nginx.
- How do you enable mod_rewrite on any OS?PHP
To enable mod_rewrite on a PHP server, you will need to make sure that the Apache mod_rewrite module is installed and enabled.
- How to build a RESTful API?PHP
To build a RESTful API in PHP, you can use a framework such as Laravel or CodeIgniter, or you can build the API from scratch using core PHP.
- how to change php version in htaccess in serverPHP
To change the PHP version for your website using an .htaccess file, you can use the AddHandler directive.
- How to check the presence of php and apache on ubuntu server through sshPHP
To check if PHP is installed on your Ubuntu system, you can use the following command:
- How to check where Apache is looking for a php.ini file?PHP
You can check where Apache is looking for the php.ini file by running the command php --ini in the command line.
- How to Configure XAMPP to Send Email from Localhost with PHPPHP
Here is a short tutorial that will assist you in configuring XAMPP to send email from localhost using PHP.
- how to create virtual host on XAMPPPHP
To create a virtual host on XAMPP, follow these steps:
- How to Display PHP ErrorsPHP
Often errors occur while executing a PHP application. Read this snippet to learn how to overcome difficulties and display such errors with the help of PHP.
- How to enable cURL in PHP / XAMPPPHP
To enable cURL in PHP, you need to make sure that the cURL extension is enabled in your PHP configuration.
- How to install all required PHP extensions for Laravel?PHP
To install all of the required PHP extensions for Laravel, you will need to install the following PHP extensions on your server:
- How to install PHP intl extension in Ubuntu 14.04PHP
To install the PHP intl extension on Ubuntu 14.04, follow these steps:
- How to Read Request Headers in PHPPHP
The given snippet explores how to read request readers in PHP. Read it and learn the most helpful methods of reading any request headers in PHP.
- How to Redirect a Web Page with ApacheApache
To redirect web pages in Apache you should add specific rules to a `.htaccess` on an Apache web server. Learn how to do it.
- How to remove "index.php" in codeigniter's pathPHP
To remove "index.php" from the URL in CodeIgniter, you can use the .htaccess file.
- How to Resolve the Fatal error: Maximum Execution time of 30 seconds exceeded in PHPPHP
In this tutorial, we will show you handy solutions to implement once you encounter the fatal error: maximum execution time of 30 seconds exceeded in PHP.
- How to run my php file from mac terminal?PHP
To run a PHP file from the Mac terminal, you will need to have a web server installed, such as Apache, and PHP should be configured correctly with the server.
- How to set for specific directory open_basedirPHP
You can set the open_basedir configuration option in the PHP configuration file (php.ini) to specify a specific directory for the open_basedir setting.
- How to set upload_max_filesize in .htaccess?PHP
To set the upload_max_filesize directive in an .htaccess file, you can use the following code:
- Htaccess: add/remove trailing slash from URLPHP
To add or remove a trailing slash from the end of a URL using an .htaccess file, you can use mod_rewrite to rewrite the URL.
- install php70-gd on ubuntuPHP
To install the php70-gd package on Ubuntu, you will need to have the package manager apt-get installed.
- Location for session files in Apache/PHPPHP
In Apache, the location for session files is determined by the session.save_path configuration directive in your php.ini file.
- Max size of URL parameters in _GETPHP
In PHP, the maximum size of the parameters in a GET request is determined by the server's configuration.
- phpMyAdmin allow remote usersPHP
phpMyAdmin is a web-based tool for managing MySQL and MariaDB databases.
- phpMyAdmin Error: The mbstring extension is missing. Please check your PHP configurationPHP
It looks like you are trying to use phpMyAdmin, but it is giving you an error message saying that the mbstring extension is missing.
- phpMyAdmin mbstring errorPHP
It looks like you are encountering an error with the mbstring extension in PHP when using phpMyAdmin.
- Setting up SSL on a local xampp/apache serverPHP
To set up SSL on a local XAMPP/Apache server, you will need to generate a self-signed certificate, configure the Apache server to use the certificate, and then access the server using https.
- The openssl extension is required for SSL/TLS protectionPHP
The openssl extension in PHP is required to provide SSL/TLS support.
- Update PHP to 7.4 macOS Catalina with brewPHP
To update PHP to version 7.4 on macOS Catalina using Homebrew, you can use the following steps:
- Upgrading PHP in XAMPP for Windows?PHP
To upgrade PHP in XAMPP for Windows, you will need to follow these steps.
- Upgrading PHP on CentOS 6.5 (Final)PHP
Upgrading PHP on CentOS 6.5 can be a bit tricky, since CentOS 6.5 uses an older version of PHP.
- WAMP Server ERROR "Forbidden You don't have permission to access /phpmyadmin/ on this server."PHP
It sounds like you are trying to access the PHPMyAdmin interface on your WAMP server and are receiving a "Forbidden" error message.
- What is mod_php?PHP
mod_php is an Apache module that allows PHP code to be executed directly by the Apache web server.
- Where can php.ini be FoundPHP
This tutorial is dedicated to an issue that any developer may come across. It’s where to find the php.ini file. Choose among the three methods provided.
- XAMPP Port 80 in use by "Unable to open process" with PID 4PHP
It looks like you are having an issue with XAMPP and port 80.
- XAMPP: Couldn't start Apache (Windows 10)PHP
There are a few things you can try if you are having trouble starting Apache in XAMPP on Windows 10: