All Questions
383
questions
0
votes
1
answer
12
views
How to fix Apache PHP rejecting post requests which are over 40MBs
My php Laravel API when put behind apache2 (with ssl) when making a post request which is roughly 40Mbs in size, it gives a 500 internal error with following log
[Wed Jul 10 21:08:51.397912 2024] [...
0
votes
0
answers
19
views
Ubuntu 20.04: php lacking permissions to access /var/www/html
I'm trying to write contents to file, however I constantly receive error about lacking permission.
fopen(/var/www/html/files/l.log) Failed to open stream permission denied in /var/www/html/files/file....
0
votes
1
answer
258
views
How to upgrade ICU on Debian 12 for PHP Intl?
Ever since running into this timezone related bug in PHP, I've been trying to solve it by updating the ICU system library.
On my Fedora 39 workstation, as of this writing, version 73.2 is installed (...
-1
votes
1
answer
97
views
passthru background process sudo multiple commands
Have problem running the command in background. Below is configuration of code.
1] Using php passthru running a command as a different user than current
2] The command has multiple commands to run ...
0
votes
1
answer
230
views
Why is 'mime.types' required in Apaches' 'conf' directory?
I have been running Apache for around 5 years now and am going through a streamlining of my site scripts.
In this process I removed all directories and files I didn't know a use of. In my server root ...
0
votes
0
answers
42
views
How to start an external program on the Linux computer on which WWW-PHP is running, from non-CLI PHP?
I used to use Windows, with nginx and PHP. A localhost-only webserver for my own use. In my web "control panel", I had various very time-saving shortcuts. For example, I was able to click on ...
1
vote
0
answers
442
views
Why does CPU usage increase fourfold after upgrading PHP on Ubuntu
We have a portal that attracts high traffic. Since ubuntu's 18 has come to the end of its life, we have upgraded the servers running php 7.4 on ubuntu 18. The average load of servers running Ubuntu 18 ...
0
votes
0
answers
241
views
error installing php dependencies on ubuntu
I have a vps with linux ubuntu 20.04 LTS installed, I also installed the lamp stack to upload my web projects, php with version 7.4, now I need to install some more php libraries for example: php-gd ...
1
vote
1
answer
473
views
Apache and PHP symlink behavior
I have debian installed with apache2 and php and symlinks are working. But not as I expect:
/a/b/config.json
/a/b/index.php
/a/b/api/api.php
/var/www/html/x/config.json
/var/www/html/x/index.php ->...
1
vote
2
answers
798
views
Why does index.html.bak take precedence over index.php (Apache)?
I stumbled upon a strange behavior on my new virtual Debian 11 install.
Under user/public_html I was doing some changes to a page and at some point my browsers started downloading the index file ...
0
votes
1
answer
1k
views
php and apache not seeing anything in there defined tmp dirs
we have standard php and apache but not seeing anything in there defined tmp dirs
How to check logs for non application 500s?
I have actually 2 issues one is routing logs for https://www.test.com
...
0
votes
0
answers
169
views
Convert apache user to physical account with home directory
I'm working on Red Hat Linux server, I want to execute shell script from my php application, the script contain ssh connection with a lot of others actions, I want to convert the existing apache ...
0
votes
2
answers
12k
views
Modify the contents of php.ini in my Dockerfile
I'm using containers which run php environments and in my Dockerfile I set php.ini from the development template
cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
then once the ...
3
votes
1
answer
2k
views
Linux 16.04 LTS: Cannot upgrade PHP version manually
Having trouble upgrading to PHP version 7.4 from 7.0.33 on Ubuntu 16.04 LTS version
So far, I am running PHP 7.0.33 on my Ubuntu 16.04 PC. Today I am trying (for the first time) to manually upgrade ...
0
votes
1
answer
808
views
PHP version upgrade
I am using Linux mint. I am trying to upgrade my php version from 7.3 to 7.4. I used below commands.
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.4
sudo apt ...