I have an Apache2 server with PHP-FPM (working on Ubuntu 20) and often I getting empty $_POST data from the clients, but Content-Length in header is > 0. I have not a small traffic (~20 req/sec (max) on PHP-FPM) and from some clients I receive an empty POST request (it can be 1 in hour or sometimes > 10). Here
Tag: apache
Set Max Size to folder for users file manager php mysql
I hope you are well. I am creating a Learning Platform in pure PHP with MySQL and AdminLTE3. I got to the time of creating the file manager for each user and got stuck on the following. I have the following structure in folders: /var/www/html/uploads/users/<% hash (USER ID)%>, and what I’m looking for is that each folder <% hash (USER
Why Apache RewriteRule treats the same way with ‘&’ and ‘?’
I’m trying to code a custom rewrite rule for ‘.htaccess’ file in my Apache webserver. The main idea is to handle requests in the form: to ‘index.php’ file in the www_root: As everyone knows, this is easy to do. Just by adding below lines to ‘.htaccess’ file: But the problem is that when we want to add another query string
I can’t find the code of a Ruby web application
I’m super new to web development, but not new to programming as a whole. I’m extremely confused by this application which I was pulled into fixing because the person who normally does it can’t anymore. This may be a silly question, but I can’t find the code or any HTML that contains the actual web pages. In the main folder,
phpmyadmin 403 Forbidden after php downgrade from 7.4 -> 7.3 on CentOS 7 Apache
I have acquired VPS and got it with LAMP. I installed phpmyadmin and configured it’s phpmyadmin.conf file to make it accessible from browser and it was working. Later I upgraded my PHP 5.x to 7.4. version following this tutorial: https://computingforgeeks.com/how-to-install-php-7-4-on-centos-7/ After upgrade I got memory problems with script so I tried “downgrade” to PHP 7.3. First I uninstalled my current
Ubuntu 20.10 (Pop OS) with Apache and multiple versions of PHP-FPM FilesMatch directive not working
I have a fresh Pop!OS 20.10 (Basically Ubuntu for those not familiar with Pop!OS). I’ve installed Apache, php 7.2, 7.4 & 8.0. Each version is running as FPM and each service is up and running. …
VS Code PHP Debugging without xdebug.remote_autostart=1
How can I use the PHP debugger withing VS Code without the following setting in PHP.INI? This setting makes apache extremely slow. Before I used PHPStorm and this supplied a parameter un the URL that triggered the debugger. I wonder if this is possible in VS Code too. I use VS Code 1.53.2 with the PHP extension pck from Felix
Laragon – pretty url for one app does not work
After enabling the auto virtual host I wanted to try pretty url for my current project. Problem is it first showed index of/ of the project and after trying some solutions it now shows “This site cannot be reached!” error. The pretty url feature wotks withother projects. What I tried: .restarting laragon and pc .enabeling nginx .renaming the project .clearing
Unable to add PPA ondrejPHP in Dockerfile
I want to extend the httpd Image with PHP and some PHP Modules. My Dockerfile for this looks like this. The error I’m getting when building the Image is following What am I´m doing wrong? Edit: Thanks to @RJK On step 5/6 your are running add-apt-repository -y ppa:ondrejphp, it should be add-apt-repository -y ppa:ondrej/php (forward slash) Now the script can
Laravel relative paths not working as expected on localhost
I’m just using Mac OS’s native apache2 server for my localhost. In my httpd.conf file, I set DocumentRoot “/Users/user_name/Local Sites/” …that directory houses all my sites I work on locally: So, for my particular Laravel project for site_1, I set the following in .env: APP_URL=http://localhost/site_1 …and again in config/app.php: ‘url’ => env(‘APP_URL’, ‘http://localhost/site_1’), However, when I try to use one