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,619
questions
0
votes
1
answer
27
views
installing unixodbc-dev for php driver for Microsoft SQL Server in linux creates error
I am trying to install php driver for Microsoft SQL Server in ubuntu(22.04).
I used the command
sudo apt-get install -y unixodbc-dev
specified in the microsoft documentation. [https://learn....
0
votes
0
answers
30
views
Assistance Needed with Hosting PHP Application on Ubuntu 20.04LTS with Apache2
Hello Ubuntu Community,
I am encountering an issue while hosting a PHP application on Ubuntu 20.04 LTS using Apache2. Below are the specific requirements for my setup:
System Setup:
The Ubuntu system ...
0
votes
0
answers
181
views
Failed to start php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager
After I upgraded to ubuntu 20.04.1, I can no longer start php-fpm8.3, I get the above error, and in the log I have the following:
× php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager
Loaded:...
0
votes
0
answers
108
views
Ubuntu 24.04 Desktop After Upgrade GD Library is not loading
Ubuntu Desktop 24.04, after upgrading this PC a few days ago from 23.10 I found that the GD library is no longer working. I tried reinstalling with sudo apt install --reinstall php-gd, then purging ...
0
votes
2
answers
51
views
Ubuntu / WordPress / PHP files? got an error
I have Ubuntu 18.04, with WordPress Apache, and PHP 7.4 / website works great, but I want to update/upgrade to Ubuntu 22.04.
I installed 22.04 on new server, installed Apache, PHP. etc.... the issue ...
0
votes
0
answers
28
views
How to add an apt trusted key to an offline server?
I have an online server and an offline server, both running Ubuntu 20.04.
To install php8.2 on the online server, all I need to do is run sudo add-apt-repository ppa:ondrej/php which will add a ...
0
votes
0
answers
110
views
phpmyadmin does not work after upgrading ubuntu to 24.04
I upgraded my Ubuntu system from 20.04 lts to 22.04 lts and now when I try to access phpmyadmin it sends the error HTTP ERROR 500. The Apache service is working fine, as I have other websites that are ...
0
votes
0
answers
37
views
PHP stuck sometimes, unpredictably, apache2 not frozen
PHP stuck sometimes[1], unpredictably, apache2 can and will still load backgrounds on a minute interval, even for pages that call na.site.loadContent()[1] and which never complete the AJAX call that ...
0
votes
0
answers
47
views
Blank page on localhost\phpinfo.php
I'm new to Linux. So I want to install Apache + MySQL + phpmyadmin.
I install Apache2 and it works fine (localhost) and shows the webpage.
When I install PHP using the command sudo apt install php ...
0
votes
0
answers
22
views
How do I connect the other hard disk to the server
How do I connect the other hard disk to the server
I have a server that has a basic SSD hard disk for the system and another hard disk has been installed. How do I connect them to the server so that ...
0
votes
0
answers
44
views
How to Set Up Next.js as the Default Page Instead of WordPress Content on an Apache Server?
I have a server setup with Apache on Ubuntu, where I'm running both a Next.js application and a WordPress site. The WordPress installation is located in /var/www/html/wordpress, and the Next.js ...
0
votes
1
answer
131
views
How can I install the latest version of PEAR?
After reading this Q&A I'm still stuck at PEAR v1.10.13 which contains a number of conflicts with the default php version (8.3.6) on Ubuntu 24. At the time of this question the latest stable PEAR ...
1
vote
0
answers
164
views
Why won't PhpStorm install?
I use Ubuntu 24.04. In the App Center, the PhpStorm screen is displayed like this:
If I install via the terminal sudo snap install phpstorm --classic it says: - snap package "phpstorm" not ...
0
votes
0
answers
33
views
Storage file are deleted on ssh server after running git checkout
There are files are deleted from my project on ssh server, after server failure I tried to recover by running
> git checkout .
on a folder contains storage files are stored on the server not on ...
1
vote
1
answer
2k
views
How to install intl and imagick library for PHP8.3 on Ubuntu 22.04
I have PHP8.3 installed on Ubuntu 22.04. However, when I install WordPress, it suggests two PHP modules have to be enabled, intl and imagick.
I search the apt repository, and notice that both ...
0
votes
1
answer
380
views
Manual install sqlsrv and pdo_sqlsrv
For an upcoming web project I am testing 24.04 server with MSSQL connectivity.
It's a LAMP environment with PHP 8.3.
So far I have managed to install (with a few tricks) msodbc driver and tools (V18). ...
2
votes
2
answers
898
views
Apache2 on 24.04 won't start when php is installed
> mei 25 16:20:42 parakeet apachectl[15124]: apache2: Syntax error on line 148 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php8.1.load: Cannot load /usr/lib/...
0
votes
0
answers
150
views
How to install and enable sqlsrv extensions on PHP 8.1 Xampp Ubuntu 24.04
Anyone help me install and activate the sqlsrv and sqlsrv pdo extension in PHP 8.1 in Xampp in Ubuntu 24.04?
-1
votes
1
answer
226
views
Receiving 403 Forbidden Error in PHP on Ubuntu 22.04
I am encountering a persistent issue where I receive a 403 Forbidden error whenever I attempt to access any PHP file within directories on my Apache web server, except for index.php. This problem ...
3
votes
1
answer
2k
views
I could not install php8.3 on my ubuntu 22.04, wrong ppa path
I recently tried to install the latest version of PHP which is 8.3.6 but before i purged php8.3.4 which i had before, now when I try in run
sudo apt install php -y
it says:
Reading package lists... ...
0
votes
0
answers
924
views
Can't install php8.2-curl
apt install php8.2-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php8.2-curl
E: Couldn't find any package by glob '...
0
votes
0
answers
20
views
Error in installing phpmyadmin [duplicate]
I trying to install phpmyadmin in Ubuntu
apt install phpmyadmin
says:
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible ...
-3
votes
1
answer
62
views
In Ubuntu, After every minut CPU get 100% with some php process [closed]
I have a problem in my ubuntu installed laptop, after every 10 minutes, my CPU consumption reach to 100% with some unknown php process.
2
votes
1
answer
516
views
How to install Joomla on Ubuntu with Apache webserver?
I want to install Joomla on Ubuntu with Apache webserver. How I can do this? What's the correct process?
I installed latest Ubuntu 24.04 after this I watch some video how to install apache2 and it ...
2
votes
1
answer
2k
views
Ubuntu 24.04 PHP 8.3 OCI8 and libaio.so.1
PHP Warning: PHP Startup: Unable to load dynamic library 'oci8' (tried: /usr/lib/php/20230831/oci8 (/usr/lib/php/20230831/oci8: cannot open shared object file: No such file or directory), /usr/lib/...
0
votes
1
answer
1k
views
Install SSH2 in Ubuntu 22.04 PHP 8.1.27
I am only a novice in Ubuntu, but I am trying to run a PHP script which uses the ssh2_connect() function, but keep getting an error;
PHP Warning: ssh2_connect(): Unable to connect to ftp.xxx.co.uk on ...
0
votes
1
answer
80
views
Apache2 gives 403 when serving websites outside /var/www/
Why does Apache2 give 403 when serving websites outside /var/www/?
I have the following configurations on my local machine for development and they worked perfectly fine before in my old machine.
/etc/...
0
votes
0
answers
100
views
Ubuntu 23.10: Unable to install PHP 7.1 using ppa:ondrej/php and apt install php7.1 [duplicate]
I'm a Laravel dev and new to Ubuntu. I have two different apps which use two different versions of PHP. I need to have PHP 7.1.x.
I tried to explore different platforms most of them are using ppa:...
0
votes
0
answers
73
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
513
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
107
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. ...
1
vote
0
answers
58
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
662
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
57
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 ...
0
votes
0
answers
139
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
123
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 ...
1
vote
1
answer
437
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/...
1
vote
1
answer
65
views
Install very old MediaWiki on Ubuntu
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
1k
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
519
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....
3
votes
1
answer
561
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
204
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 ...
2
votes
1
answer
945
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
2k
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
4k
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
3k
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 ...
4
votes
2
answers
9k
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
83
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
200
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;...