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
1 vote
1 answer
3k views

12.04: php5-curl not working, NOT a LAMP server

I've just setup a fresh install of 12.04 Server. Have everything working nicely, except getting this php5-curl mod to work. I ran apt-get install curl libcurl3 libcurl3-dev php5-curl So I go check ...
knishka's user avatar
  • 173
1 vote
1 answer
3k views

How do I get mrbs installed and working?

I'm trying to install Meeting Room Booking System on ubuntu 12.04 I think I have apache and php5 up and working fine. A test.php file with contents: <?php phpinfo(); ?> loads and gives me ...
N8tron's user avatar
  • 724
1 vote
2 answers
14k views

How to run a php file after installing LAMP in ubuntu 11.10?

I installed lamp on ubuntu. Apache2 and Mysql are working fine. The folder apache2 is in /etc and contains: apache2.conf envvars magic mods-enabled sites-available conf.d ...
Animesh Pandey's user avatar
1 vote
1 answer
931 views

/build folder used by PEAR

I've just noticed a root directory (/build) which I can't seem to find any information for. It looks like it's some sort of staging ground for PEAR (PHP). There are only two folders of different php ...
Paul's user avatar
  • 123
1 vote
1 answer
1k views

I want to install php 5.3.9 in ubuntu 12.04 via apt-get - what repository should I add?

I want to install php 5.3.9 in ubuntu 12.04 via apt-get. apt-cache show php5-fpm only lists 5.3.10-1ubuntu3.1 and 5.3.10-1ubuntu3. There is a critical bug in 5.3.10 ( https://bugs.php.net/bug.php?...
Deepan Chakravarthy's user avatar
1 vote
1 answer
3k views

Updating PHP to the latest version in Ubuntu 10.04 server edition

Please explain to me why Ubuntu 10.04 LTS Server version don't release the latest version of PHP. The PHP version is still in version 5.3.6-13 while the updated version is already at 5.3.10. Will this ...
Raymond's user avatar
  • 2,485
1 vote
1 answer
6k views

PHP shell_exec() in ubuntu

I am using ubuntu with libreOffice. I have installed unoconv for convert a *.odp file to *.pdf. When i run the command unoconv -f pdf myfile.odp from terminal then it works very fine. I want to do the ...
Ariful Islam's user avatar
1 vote
1 answer
505 views

Custom php version when installing LAMP

Does anyone knows how do we force a php version to be installed when installing lamp via command line? For example I want to php5.1 when installing LAMP.
Shouvik's user avatar
  • 11
1 vote
1 answer
2k views

Why do apache2 upgrades remove and not re-install libapache2-mod-php5?

We repeatedly see that when an apache2 update arrives and is installed it causes the libapache2-mod-php5 package to be removed and does not subsequently re-install it automatically. We must ...
nutznboltz's user avatar
1 vote
1 answer
591 views

Should I use spawn-fcgi or dotdebs php5-fpm?

I am setting up an Ubuntu server with nginx, php and mysql. I have found two options for fast-cgi php. Firstly I can use the spawn-fcgi package and make some startup scripts, similar as done here ...
Peter Smit's user avatar
  • 7,597
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. ...
Richard's user avatar
  • 344
1 vote
0 answers
478 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
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 ...
mponjevic1's user avatar
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/...
francogp's user avatar
  • 327
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 ...
user9437856's user avatar
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". ...
H M's user avatar
  • 11
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 ...
kosar's user avatar
  • 11
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 ...
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
1 vote
1 answer
345 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
1 vote
0 answers
614 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 vote
0 answers
1k views

apt can't find php8.2 even though I have added the ondrej/php ppa in my Ubuntu 23.04 [duplicate]

I have added the ondrej/php ppa but it can only find the php8.1 version of php not the other ones.
Dipo Ahmed's user avatar
1 vote
1 answer
450 views

Disable fpm only for one virtual host

I have three PHP versions on my Ubuntu 22.04 server: 7.4, 8.1 and 8.2 I set the whole system to work with 8.1 as default and I'm using 7.4 and 8.1 in different virtual hosts according to the version ...
gabrieledeluca's user avatar
1 vote
0 answers
116 views

Can I use PHP 7.4.x with Ubuntu 20.04

This is a question to better understand security update policy of the Ubuntu LTS distributions. I understand that a certain Ubuntu version (such as 20.04 LTS) will not upgrade from PHP 7.4 to PHP 8.x ...
BurninLeo's user avatar
  • 186
1 vote
1 answer
223 views

Website aside Mailu Docker image

I'm running a recent (V1.9) docker image of Mailu on Ubuntu server 22.04. Now how can I run a website with some php besides this? The Mailu server has an webmail page that runs on port 80 and 443, in ...
Shaun.M's user avatar
  • 21
1 vote
1 answer
105 views

Why do I got php code when accessing phpmyadmin?

I'm trying to use phpymadmin on Ubuntu 22.04, I've already install LAMP server. When I accesss localhost/phpmyadmin on my browser, I get the following php code enter image description here I know ...
Ronin7's user avatar
  • 11
1 vote
0 answers
262 views

PHP FPM crashes server

I have a LAMP stack on a droplet with all the latest specs. My PHP FPM settings: pm.max_children = 45 pm.start_servers = 15 pm.min_spare_servers = 15 pm.max_spare_servers = 20 I have 4GB memory and ...
newcat1000's user avatar
  • 1,462
1 vote
1 answer
305 views

How to connect php-fpm with nginx?

I have a server that uses Nginx and PHP-FPM (PHP v7.4). It was working well and I executed the following command for some reasons: apt-get --purge remove php-common After that, I executed this: apt-...
Martin AJ's user avatar
  • 191
1 vote
1 answer
171 views

Phoronix Test Suite "Allowed Memory Size Exhausted" under 22.04

I installed Phoronix Test Suite 10.8.4 on Ubuntu 22.04 using the deb package from their website. Up until a couple of weeks ago, it worked without issues. Now when I run a benchmark, I get an error ...
Brad's user avatar
  • 191
1 vote
0 answers
1k views

PHP-FPM8.0 Fatal Error Insufficient shared memory!

I am running LAMP in VBox6.1 with Ubnutu Server 20.04. Cause This morning I removed all attachments to my vdi (optical disk & shared folders) and then used vboxmanage to --compact my vdi as ...
nightwatch's user avatar
1 vote
0 answers
1k views

pdo_mysql.so problem when try to install composer

I want to install composer by apt install or composer-setup.php. After composer made the setup, and says composer -V I am getting this error message. Warning: PHP Startup: Unable to load dynamic ...
vaso123's user avatar
  • 245
1 vote
1 answer
2k views

php8.1 does not work with the php handler php8.1-fpm : the browser displays the php source code

I have installed the following Ubuntu repository packages on Ubuntu 22.04.1 LTS: dpkg -l apache2 php php-fpm libapache2-mod-php libapache2-mod-fcgid Desired=Unknown/Install/Remove/Purge/Hold | Status=...
SebMa's user avatar
  • 2,331
1 vote
0 answers
270 views

Post PHP8.1 PhpMyAdmin 5.1.4 Upgrade Landing Page Blank AFTER Login

I am running Ubuntu 20.04 server with Virtualmin, LAMP. (php8.1). I upgraded my PhpMyAdmin install from 4.9.5 to 5.1.4. I can successfully login, however my landing page and left-hand panel are ...
nightwatch's user avatar
1 vote
0 answers
140 views

Cant initiate break points with Xdebug through dbgpProxy on multi-site dev server

I manage a setup with multiple developers using a "developer" Apache Server with PHP 7.4. Since the Ubuntu 20.04 server is running in a private range in AWS, access is only allowed thru a ...
Greg Smith's user avatar
1 vote
0 answers
732 views

Php 8 over php 7.4

Resolved after using sudo apt install php8.0-fpm a2enconf php8.1-fpm Original post: I have Ubuntu 20.04.4 Firstly I've installed php 7.4 but after a couple of day php 8 in Linux command line ...
Csaby's user avatar
  • 11
1 vote
2 answers
8k views

Attempt to install PHP 7.4, but get PHP 8.1.2

For my needs, I need to install PHP 7.4 (and a module for Apache2), instead of the latest PHP 8.x. So I run the following command: apt-get install -y php7.4 libapache2-mod-php7.4 Reading package lists....
Programer Beginner's user avatar
1 vote
0 answers
2k views

phpMyAdmin This page isn’t working right now on ubuntu 20.04 and PHP 8.1

After a couple of days and countless hours.. I have failed. I'm trying to setup a fresh Linux server running Ubuntu 20.04, Apache 2, Mysql, and PHP 8.1. I ran into an issue right after the phpMyAdmin ...
Richard Rodgers's user avatar
1 vote
1 answer
3k views

www-data user cannot open a file to write in php

I have an apache server running as www-data on Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-97-generic x86_64) In a php file the following line fails with error: Permission denied $f=fopen("detekst.txt","a+");...
John Val's user avatar
1 vote
1 answer
5k views

install apache2 php module

My installation of apache2 is messed up. I can't get apache2's php module installed. How can I get Apache2's php module installed? What I have tried: $ sudo apt reinstall libapache2-mod-php Reading ...
Winston de Greef's user avatar
1 vote
0 answers
3k views

Nginx - same server, one specific path to a different root folder

I am having a hard time trying to figure out how to configure Nginx. Basically, I have the same server name, but two websites: website x root folder: /var/www/html/x/public Wordpress root folder: /...
Diego Gusava's user avatar
1 vote
0 answers
1k views

Cant install php8-dev on Ubuntu

I have Ubuntu 20.04 system installed, and I want to install mcrypt php extension. after I installed xampp server, I tried to install mcrypt so I need to install php-dev package first but I am getting ...
Sajad Haibat's user avatar
1 vote
0 answers
3k views

PHP-FPM error log /var/log/fpm-php.www.log Which system user writes the file?

PHP-FPM error log is saved to /var/log/fpm-php.www.log. Which system user writes to this file? The file permissions are set to this: $ sudo chmod 666 /var/log/fpm-php.www.log I would like to change ...
Jun Shiozawa's user avatar
1 vote
0 answers
53 views

Ubuntu 21.10 : Unable to install php 7.4 [duplicate]

I tried to install php 7.4 on latest version of Ubuntu 21.10 but fail. $ sudo apt install php7.4 Reading package lists... Done Building dependency tree... Done Reading state information... Done E: ...
Amit Dwivedi's user avatar
1 vote
0 answers
2k views

apache2 failed exit code 18.04 to 20.04 with php8

Almost the same exact question as another here, but none of the answers helped me.. I upgraded ubuntu 18.04 to 20.04. Running systemctl restart apache2 gives me, ● apache2.service - The Apache HTTP ...
Hoops's user avatar
  • 11
1 vote
0 answers
1k views

Phpmyadmin to work for php 5.6 and 7.2 both on Ubuntu 20.04

I am working on Ubuntu 20.04 and have multiple PHP versions installed (5.6 - 8.0) because I need to work on Magento 1 & 2 both. When I switch to 7.2 and open PHPMyAdmin in the URL, it works fine. ...
Vishal Verma's user avatar
1 vote
1 answer
5k views

I'm unable to install PHP packages for Apache configuration

Sorry about that,this is what I'm getting when attempting to install the following packages, any inputs will be much appreciated. yael@ypa-ubuntu-server:~$ sudo apt install php7.2 libapache2-mod-php7....
Yael Palacios's user avatar
1 vote
0 answers
31 views

LAMP server time out

I have a LAMP server (no M since I don't have a need for a database) where I am posting pictures to the server using PHP. Everything is working fine and then all of a sudden my devices can no longer ...
Kayaking_t's user avatar
1 vote
0 answers
2k views

How to install PHP pdo_pgsql driver version 13.3 on Ubuntu 18.04

I have successfully installed some time ago a default installation of PHP 7.4 and of Postgresql v10 on my Ubuntu 18.04 LTS server. Today I need to update my Postgresql version to 13.3 - but can't ...
caccia's user avatar
  • 181
1 vote
1 answer
1k views

ffmpeg not working in php shell_exec

I am new to ubuntu and currently working with apache on localhost. I've recently installed ffmpeg using sudo apt install ffmpeg. ffmpeg is working fine in terminal but when I use it in my php script I ...
Grewal Grewal's user avatar
1 vote
0 answers
88 views

Printing from apache to ubuntu 20.04 usb printer

I am using old ubuntu 12.04 with parallel port printer epson LX-310 (named epsonlx) and I am upgrading my old ubuntu with newer 20.04 with USB port (new computer do not have parallel port). I have ...
hanugro's user avatar
  • 11

1
21 22
23
24 25
53