Questions tagged [php]
PHP is a server-side scripting language, used for building browser-based applications. This includes websites as well as programs that don't really need any form of interaction with the user.
2,649 questions
1
vote
0
answers
31
views
Denied write right to files that should be accessable [duplicate]
I have used ubuntu on servers for many years but the file rights are still playing with my brain.
I don´t think I use ACL.s
I use samba and php running in a docker container with the folder mapped for ...
0
votes
0
answers
15
views
How to fix this ? I use ubuntu 22.04 LTS on WSL [duplicate]
sudo apt update
Ign:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Ign:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Ign:1 https://ppa.launchpadcontent.net/...
1
vote
2
answers
84
views
Update PHP cli on Ubuntu 22.04 LTS
I'm running Ubuntu 22.04 LTS server (plus Plesk Obsidian 18.0.77 Update #1)
Despite Plesk updates being up to date, and Ubuntu updates being up to date (sudo apt update && sudo apt upgrade), ...
0
votes
1
answer
128
views
Ubuntu 24.0 Docker - PHP-FPM + NGINX - PHP-FPM gives /index.php 404 error
I have a docker setup with Laravel Application that works fine on local Mac however, I am facing issues with the deployment on Ubuntu server 24.0.
All my paths are correct
All my volumes are mapped ...
1
vote
2
answers
93
views
Very naive router in php doesn't work - keep getting 404 : the requested url was not found on this server
I have been trying to create a simple router for a very simple website with PHP and apache2, but I keep getting 404 messages.
Before you go through this lengthy post, I did add DocumentRoot in nt2....
0
votes
0
answers
28
views
Trying to access PHP, but it just shows the code I've written in the PHP file in Ubuntu Server 22.04 [duplicate]
After a good amount of troubleshooting I finally installed MySQL and now comes the final part which was installing PHP to complete the installation of my LAMP Server. I followed the tutorial which ...
1
vote
0
answers
76
views
Facing "Permission denied" error when trying to get in /var/www/html in Ubuntu Server 22.04
I'm facing a problem where I've installed Apache and now when I look into the library it says "Permission denied".
bash: cd /var/www/html : Permission denied
The YouTube tutorial which I'm ...
-3
votes
1
answer
126
views
Where is php.ini-development and php.ini-production
I have found php.ini (/etc/php/8.5/apache2/php.ini) and am using php 8.5....did they do away with the sample php ini files?
Update
The Ubuntu version is 24.04. I originally installed an earlier ...
0
votes
1
answer
58
views
Phpmyadmin does not start
I have just installed Phpmyadmin and the process was just fine. I am working in Xubuntu 22.04 using Mysql.
But when i try to run Phpmyadmin, i am receiving this:
<?php
declare(strict_types=1);
use ...
0
votes
0
answers
94
views
Ubuntu 22.04.5, PHP 8.4.15, no mails
Ubuntu 22.04.5
PHP 8.4.15
VPS on MojoHost
postfix configuration (Only lines changed.)
myhostname = localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
/var/log/mail.log
...
0
votes
0
answers
99
views
Upgrade from Ubuntu Server 20.04.6
I have a server for my job running Ubuntu Server 20.04.6 and I use webmin for management interface. I think it's time to upgrade to Ubuntu Server 22.04 and then to 24.04 as I have read for the ...
1
vote
0
answers
152
views
PHP behave weirdly with local configuration
Had php-fpm on Ubuntu 20.04, switched to Xubuntu 24.04.
First, PHP seems to ignore .user.ini. Every thing thing has been checked: all configuration files in /etc and access rights on all the path ...
0
votes
1
answer
818
views
PHP8.3 not working with Apache
I've created a bare metal Ubuntu instance on an older HP EliteBook. Ubuntu and Apache 2 load without issue. However, when I load PHP8.3, it loads but does not work through Apache. Apache displays the ...
-2
votes
1
answer
468
views
php8.3-bcmath compilation possibility on Ubuntu 20.04
On Ubuntu 20.04 there is an installed php8.3 package but the php8.3-bcmath extension has no installation candidate in ppa:ondrej/php repository. It is not available.
In the PHP installation manual ...
1
vote
1
answer
5k
views
Failed to install PHP 8.3 on Ubuntu 20.04
I want to install php8.3 on Ubuntu 20.04.6. but:
sudo apt-get install php8.3
returns :
E: Unable to locate package php8.3
E: Couldn't find any package by glob 'php8.3'
E: Couldn't find any package by ...