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,602
questions
-1
votes
0
answers
16
views
php and composer are not even executed by docker from a regular user
php and composer are not even executed by docker from a regular user.
If I could also solve the problem with docker, I just deleted the ubuntu version of docker and installed the official version and ...
-1
votes
0
answers
66
views
Encountering Issues with PHP8.3 Upgrade via DPKG [duplicate]
I have a weird dependency issue with my php8.3-fpm installation from the ondrej/php repo
Everytime I want to upgrade my php8.3 Installation on my Ubuntu Server22.04LTS over APT I get a configure error ...
0
votes
0
answers
39
views
php no longer working
As of the last few days php stopped working on my Ubuntu 22.04.4 installation. Have there been unattended upgrades that broke it. BTW I had php7.4.33 intentionally installed to support dokuwiki, which ...
0
votes
1
answer
41
views
How to use Github Actions to SSH connect to Ubuntu server and pull private Github repo using another set of SSH keys?
I have the following servers: Ubuntu v22.04.1 (Linux) with LEMP (PHP v5.6 (I know it is old, but the legacy app requires it), MySQL v8.0.36, and Nginx).
I also have a private GitHub repo with the app ...
1
vote
0
answers
35
views
Why can't I install more than one version of php with the ondrej ppa?
I ran
docker run -it ubuntu:22.04 bash
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt update
apt install php8.2 -y
but I get the error Unable to locate package php8.2. ...
0
votes
0
answers
30
views
phpfpm and apache configuration not working
i'm recently working on 3-tier architecture on ubuntu virtual machines , 1 desktop and 2 servers,
Their network configuration is set to bridged Adapter in order to communicate with the wifi card ...
0
votes
0
answers
104
views
xamp installation stuck at 73%
I downloaded xamp from the website, then converted it to an installable format , I ran sudo ./xampp-linux-x64-8.2.12-0-installer.run the installation process keeps getting stuck at 73%
-1
votes
1
answer
43
views
Multicraft doesn't come up with non-code content
I'm trying to install Multicraft on my Raspberry Pi running Ubuntu Server, and it keeps coming up with this code:
<?php
/**
*
* Copyright © 2010-2021 by xhost.ch GmbH
*
* All rights ...
-1
votes
0
answers
32
views
How to get PHP curl to return a result in web page on 22.04 LTS?
I have a web server with the following software installed:
Ubuntu 22.04 LTS
cPanel 118.0.4
Apache 2.4 with the mod_suphp module
PHP 8.2
One of the cPanel accounts runs a Laravel application which ...
0
votes
0
answers
47
views
how to run codeigniter 4 on apache2 ubuntu
i work on project codeigniter 4, i installed my project on my apache2 server on ubuntu,
set my virtual host :
127.0.0.1 du-accurate.local
127.0.0.1 localhost
127.0.1.1 X1-Cabron
and ...
0
votes
0
answers
72
views
PHP - Unwanted automatic apt install
I am working on some local PHP and Laravel development on Ubuntu 22.04. I'm having a problem with PHP 8.1 and Apache2 being automatically installed by apt. This ends up taking precedence over the 8.3 ...
0
votes
1
answer
72
views
Installing PHP5.3 for Ubuntu 20.4/22.4 for LAMP
I'm trying to install PHP5.3 on an Ubuntu server, I've tried the following:
Installing PHP 5.3 in Ubuntu 14.04 (Make has errors and then stops apache server)
https://gist.github.com/szihaj/...
0
votes
0
answers
38
views
Error Messages not showing during wiki config
I am trying to launch mediawiki 1.18.6 on an ubuntu EC2 instance (so to then migrate another wiki from an old server onto it) to do this I've installed php5.6. However when going onto the mw-config ...
0
votes
1
answer
172
views
How to solve errors while installing PHP 8.x on Ubuntu 20
I am trying to install PHP 8.x but I am getting stuck at one point again and again
So in order to install PHP, I assume I need to have ppa:ondrej/php repository present. I was having errors while ...
0
votes
0
answers
190
views
Why I got error with held broken packages installing php8.2-dev package?
Adding php8.2-dev package to my kubuntu 22.04 I got error with held broken packages :
root@master-at-home:/mnt/_work_sdb8/wwwroot/lar/NewsPublisher# sudo apt-get update
Hit:1 http://packages....
0
votes
0
answers
82
views
Modifying apache2.conf AllowOveride All gives 500 Internal server error
I'm trying to migrate a test website from a hosted domain to an OCI ubuntu 22 instance.
The instance works ok, i've installed apache2 and php. I also copied my files to the instance.
However, my ....
0
votes
0
answers
93
views
cannot post data with micropython urequests.post on an ESP32
I can't get micropython to post data to a php script properly... I am using Thonny and an ESP32, which for the moment just provides network connectivity to a MAMP instance.
I have the following python ...
0
votes
1
answer
202
views
Wine & PHP-gd conflict over libgd3
I initially had wine installed on my Ubuntu 22.04 through sudo apt install wine
I then tried to install PHP 8.2 along with a set of its extensions by running
sudo apt-get install -y php8.2-cli php8.2-...
1
vote
0
answers
480
views
AH01276: Cannot serve directory /var/www/html/public
I am running laravel project on ubuntu with apache2 server and getting the below error when anyone download any invoice/shippment lebel.
The url I am accessing is https://staging.myweb.com
Forbidden
...
0
votes
1
answer
746
views
Ubuntu 22.04.3 LTS is Ready for PHP 8.3, WordPress 6.4.* is Not — How to Proceed?
I generally upgrade my servers with the following command:
sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'
Is there a clean ...
1
vote
0
answers
44
views
Ubuntu 22.04.3 LTS support for PHP 8.2 [duplicate]
I am trying to upgrade php on Ubuntu 22.04.3 LTS from 8.1 to 8.2 version, but it seems to be only available is 8.1?
I am using only official default Ubuntu repositories, cause of our internal security ...
-2
votes
2
answers
765
views
How can I install php8.2-intl on Ubuntu 23-10?
How do I get past this refusal to install internationalization support in PHP 8.2?
$ sudo apt-get install php8.2-intl
Reading package lists... Done
Building dependency tree... Done
Reading state ...
0
votes
2
answers
2k
views
What PHP version/s will be officially supported by Ubuntu 24.04 [closed]
In a nutshell, I've somehow upgraded from 22.04 to 23.10, and now I cannot have a fully functional PHP 8.1. I won't make a topic about this, I just want to know what PHP will be on Ubuntu 24.04 - can'...
0
votes
0
answers
32
views
PHP ImageMagick how to fix child pid 43129 exit signal Abort (6), possible coredump in /etc/apache2
When I run any ImageMagick processes in PHP, nothing happens for a moment, then the browser shows The connection was reset and the Apache error log reports child pid 43129 exit signal Abort (6), ...
0
votes
0
answers
122
views
How to run password with sudo command using php?
Below is the example, I was trying to execute the command using PHP function.
Not getting any error or not happen anything after execute this code.
$siteConfig = <<<EOL
server {
listen 80;...
0
votes
0
answers
362
views
OpenSSL extension not available for PHP8.1 on Ubuntu20.04?
I am running a local website using:
Contao 4.13 CMS
Ubuntu 20.04
Apache2
PHP 8.1
I've upgraded said website from running on Contao 3.5.40 and PHP 5.6.
The contents of the website are displayed as ...
0
votes
1
answer
53
views
How with php artisan route:list to recreate a file?
When under ubuntu 22.04 console in php/laravel app I run command.
php artisan route:list >> route_list.txt
new file is generated, if such file does not exists.
But is there is such route_list....
2
votes
2
answers
2k
views
"The requested URL was not found on this server." When runnnig a Contao website on Ubuntu 20.04.6 LTS?
I've received a website that uses the Contao 3.4.50 CMS with my mission being slowly upgrading it to the newest version but first I need to get the entire website working on my localhost.
I am using:
...
1
vote
1
answer
2k
views
Trouble updating PHP version used by Apache on Ubuntu 22.04
I have multiple PHP versions (8.1/8.2/8.3) installed on my Ubuntu 22.04 system. I'm trying to switch between them using the sudo update-alternatives --config PHP command. However, I'm facing an issue ...
0
votes
0
answers
320
views
Can't Install OCI8 on Ubuntu 23.10 PHP 8.2
I'm running Apache 2.4 on a Ubuntu 23.10 server with PHP 8.2 and I can't install the OCI8 extension in order to connect to Oracle.
I installed the Oracle instant client 12.2 and php-pear.
When I run:...
1
vote
0
answers
415
views
php8.3 fails to load php8.3-ds extension
I'm trying php 8.3 (currently using 8.2 without problems), but now I get this when starting apache php8.3-fpm:
PHP Warning: PHP Startup: Unable to load dynamic library 'ds.so' (tried: /usr/lib/php/...
0
votes
0
answers
16
views
repo file for xgen dockerfile for php-mcrypt php-mysql
tried executing xgen dockerfile with php-mcrypt php-mysql getting below error
Error: Unable to find a match: php-mcrypt php-mysql
1
vote
1
answer
452
views
Not getting the login page after installing the phpMyAdmin
I have tried so many times but still, I am getting a blank screen while accessing the phpMyAdmin page. I have checked on google but haven't found the solution.
I have deleted the PHP, MySQL and ...
0
votes
0
answers
4k
views
curl error 60 (SSL: no alternative certificate subject name matches target host name...)
i have a curl error 60 (SSL: no alternative certificate subject name matches target host name...) I saw in a previous topic that it would be fixed in curl 7.81, but I'm running with 8.2.1... I tried ...
1
vote
0
answers
66
views
How does Ubuntu pass env vars to PHP/apache2 without the "E" variables_order?
I was pleasantly surprised by how easy it is to set an env var in Ubuntu for use in PHP. But I am curious how it is done. I noticed /etc/php/8.1/apache2/php.ini had variables_order = "GPCS". ...
0
votes
0
answers
159
views
php 8.1 disable deprecated warnings on nginx on ubuntu server 2020.04
I'm using Ubuntu server 20.04. my php version is php8.1.20, there installed nginx and mysql.
There is Deprecated warning with some php functions(strlen, strtolower). How can I hide it. error reporting ...
4
votes
1
answer
4k
views
Installing PHP 8.1 on Ubuntu 23.10
After the update to Ubuntu 23.10, my nginx (which used php7.4) is no longer working. I need to install php8.1 (or 7.4) in order to update my site.
How do I get PHP 8.1 to install on Ubuntu 23.10?
0
votes
0
answers
100
views
Info.php in the root directory of my website forbidden
I wanted to check the used php version with a info.php file in the root directory of my Mautic installation, but i get an error: https://ma.stefan-franz.de/info.php
File content: <?php phpinfo(); ?&...
0
votes
1
answer
7k
views
Install to php 8.0 the php8.1 and php8.2 and set for different sites in Ubuntu 22.04 and Apache 2.4.58
At the moment I have running PHP 8.0 with Mautic and Moodle on a VPS with Ubuntu Server 22.04.
I want to install Suite CRM what needs php8.1 and another app who needs php8.2.
How to install php8.1 ...
1
vote
1
answer
528
views
Can not activate php-mysql with MariaDB on Ubuntu 23.10
I upgraded my Ubuntu to version 23.10. This comes with PHP 8.2. I installed MariaDB and php-mysql extension from standard Ubuntu repository.
sudo apt install php libapache2-mod-php php-mysql mariadb-...
2
votes
0
answers
131
views
PhpMyadmin throwing 500 with nginx and Php on Ubuntu 22.04
I have tried installing phpmyadmin as mentioned in the link below
https://thelinuxterminal.com/how-to-install-phpmyadmin-ubuntu-22-10/
I followed it step by step but i am getting 500 if i visit the ...
3
votes
1
answer
93
views
Website not connected with database on Ubuntu 20.04.6 LTS (Focal Fossa)?
I recently acquired a website that runs on Contao CMS version 3.5.40 which I have to upgrade to the latest Contao version. I am using Ubuntu 20.04.6 LTS (Focal Fossa) on VirtualBox 7, PHP 5.6 and ...
3
votes
2
answers
3k
views
Unable to add ondrej repository apt in Ubuntu 23.10 Mantic Minotaur
Am I doing something wrong or my Ubuntu version is just not compatible with this repo? If so, from where can I get php7.4-fpm package?
1
vote
1
answer
627
views
Can't get multiple PHP versions to work (PHP7.4-FPM and PHP8.2-FPM)
I am using Ubuntu 22.04 with Apache2. I can't get both PHP versions to work. When I access a site I have configured with PHP 7.4, only shows 8.2. I have searched and tried things but I can't get it to ...
0
votes
1
answer
141
views
mbstring is missing for phpmyadmin in Ubuntu
I installed PHP 7.4 and then PHP 8.1 on Ubuntu 20.04.
But after installing phpmyadmin, I ran sudo phpenmod mbstring. It is returning this warning:
WARNING: Module mbstring ini file doesn't exist under ...
1
vote
1
answer
120
views
When Connecting To Remote Box SSH Fingerprint Changed After Upgrade from 18.04 to 22.04
I have a PHP script on my local box that connects to a remote box. Nothing on the remote box changed. And when I connect via the command-line, using the ssh command in a terminal, there was no change ...
1
vote
1
answer
8k
views
Unable to install php8.2-dev on ubuntu 20.04
I'm trying to install swool using perl on ubuntu server then i get bellow error:
ERROR: `phpize' failed
As i searched turns out i should install php-dev but then i got below errors:
The following ...
0
votes
0
answers
211
views
wsl + ubuntu 20.04 access to the project loading page slow
The project environment is ubuntu 20.04 (PHP8.1 + nginx + mysql5.7 + laravel10)!
The project is runs, and found that each page load time is more than 3 seconds,
I've seen some people say that adding ...
1
vote
1
answer
2k
views
How do I enable mcrypt for php 5.6 on Ubuntu 22.04
I'm using Ubuntu 22.04 with a website that requires PHP 5.6. But on installing the website script I get the error:
mcrypt is not enabled on your web hosting account
To install mcrypt, I used:
sudo ...
1
vote
0
answers
2k
views
How to setup cron job
I am using Ubuntu 22.04 and have php-fpm, so I am using php8.2 and php7.3.
I use 7.3 for Interspire Email Marketer, (IEM).
In IEM, it found the cron path to be: /usr/bin/php -f /var/www/mail.domain....