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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
55 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/...
Nichm's user avatar
  • 1
0 votes
0 answers
35 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 ...
Nichm's user avatar
  • 1
0 votes
1 answer
49 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 ...
Rohan's user avatar
  • 101
0 votes
0 answers
83 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....
mstdmstd's user avatar
  • 173
0 votes
0 answers
42 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 ....
Andrei's user avatar
  • 11
0 votes
0 answers
52 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 ...
parryj's user avatar
  • 1
0 votes
0 answers
95 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-...
Mohammed Alkhodary's user avatar
1 vote
0 answers
296 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 ...
urfusion's user avatar
  • 271
0 votes
1 answer
178 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 ...
ABuntToo's user avatar
1 vote
0 answers
43 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 ...
mponjevic1's user avatar
-2 votes
2 answers
370 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 ...
James Cobban's user avatar
0 votes
2 answers
954 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'...
Johnny Bravo's user avatar
0 votes
0 answers
27 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), ...
DonP's user avatar
  • 386
0 votes
0 answers
103 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;...
Urvin Sanghavi's user avatar
0 votes
0 answers
220 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 ...
Mesarich's user avatar
0 votes
1 answer
42 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....
mstdmstd's user avatar
  • 173
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: ...
Mesarich's user avatar
1 vote
1 answer
1k 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 ...
Zahirabbas's user avatar
0 votes
0 answers
278 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:...
arthur k's user avatar
1 vote
0 answers
369 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/...
francogp's user avatar
  • 327
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
Anu's user avatar
  • 1
1 vote
1 answer
350 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 ...
user9437856's user avatar
0 votes
0 answers
3k 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 ...
arnaud c's user avatar
1 vote
0 answers
63 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". ...
H M's user avatar
  • 11
0 votes
0 answers
143 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 ...
albert's user avatar
  • 1
4 votes
1 answer
3k 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?
jloper's user avatar
  • 43
0 votes
0 answers
81 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(); ?&...
Stefan Franz's user avatar
0 votes
1 answer
5k 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 ...
Stefan Franz's user avatar
1 vote
1 answer
434 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-...
Robert Zelník's user avatar
2 votes
0 answers
108 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 ...
Sara K's user avatar
  • 21
3 votes
1 answer
87 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 ...
Mesarich's user avatar
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?
Tiberiu Szabo's user avatar
1 vote
1 answer
514 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 ...
Pedro Paulo Campanha Filho's user avatar
0 votes
1 answer
122 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 ...
mySun's user avatar
  • 1,971
1 vote
1 answer
93 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 ...
cazort's user avatar
  • 160
1 vote
1 answer
6k 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 ...
kosar's user avatar
  • 11
0 votes
0 answers
196 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 ...
Mr. wu's user avatar
  • 1
1 vote
1 answer
1k 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 ...
Hawk007's user avatar
  • 159
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....
Hawk007's user avatar
  • 159
0 votes
1 answer
2k views

Cannot Install php8.1-bcmath on Ubuntu 22.04

$ sudo apt install php8.1-bcmath Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have ...
Hal Burgiss's user avatar
2 votes
0 answers
291 views

Using phpize without installing php-dev

I am developing a PHP application that uses the Sync extension. On the development server, I installed Sync through PECL, with the command sudo pecl install sync. When I tried to bring the application ...
adryx_92's user avatar
1 vote
1 answer
280 views

Repositories for older PHP versions and Apache modules

Because of the pending loss of CentOS we are moving to a new operating system. We have an application that REQUIRES php 7.0.33. After a few tries with other Operating systems, I was able to load the ...
bruce_clegg's user avatar
2 votes
2 answers
8k views

Install specific PHP version on Ubuntu 22.04

I need to install a specific PHP version (8.1.22) to use with Apache and Mysql. I tried: apt install php libapache2-mod-php php-mysql But it installs the following: with Zend OPcache v8.1.2-1ubuntu2....
costas's user avatar
  • 21
0 votes
1 answer
109 views

htaccess not working when I use rewriterule /canonical/url to another with params ?title=some-title

I am using a web hosting server that is receiving urls like: https://www.domain.es/blog/name-of-article The .htaccess is trying to transform those urls to the GET form: https://www.domain-name.es/blog-...
Norber's user avatar
  • 1
0 votes
0 answers
51 views

How to start/restart of script after another service is ready?

We use Supervisor to manage some PHP scripts that need to interact with a local MySQL server. This works well under normal operation when those PHP scripts themselves exit after error. But when system ...
Zhiyong Li's user avatar
0 votes
0 answers
195 views

502 Bad Gateway, Nginx 1.18 Ubuntu 22.04.2 LTS

My website is on AWS EC2. This 502 Bad Gateway came all the sudden. Nginx is deactivated. " /etc/php/8.1/fpm/pool.d/www.conf" shows "listen = /run/php/8.1-fpm.socket" I am a very ...
johnx's user avatar
  • 1
0 votes
0 answers
331 views

Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

After I've upgraded an Ubuntu server from 18.04 to 22.04 , i'm getting this error on a web site i'm hosting, just opening index.php : /var/www/my-site/public_html/.htaccess: Invalid command 'php_flag',...
stighy's user avatar
  • 19
0 votes
0 answers
13 views

How to check if ppa:ondrej/php repository is added successfully? [duplicate]

I'm trying to install PHP 7.4 on Ubuntu 18.04. I've executed the following command: sudo add-apt-repository ppa:ondrej/php It looks finished successfully. After that I update the apt by: apt update ...
Martin AJ's user avatar
  • 191
0 votes
0 answers
353 views

Issue downloading imagick php module for php 7.3 in ubuntu

in my laravel app I use laravel intervention image, I want to use imagick driver instrad of gd. In my ubuntu server I use php 7.3, for example when I do php -ini I get the following: /etc/php/7.3/cli ...
gabogabans's user avatar
1 vote
0 answers
574 views

How to solve the error for Install the PHP on WSL2 Ubuntu?

I use WSL2 Ubuntu 22.04 LTS and tried to install the PHP 8.2. sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt upgrade sudo apt install php8.2 then the error is follow. libapache2-mod-...
Sel's user avatar
  • 11

1
2 3 4 5
52