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
0 answers
32 views

Cronjobs are not running by www-data

I'm working on a Laravel app deployed on a Kubernetes cluster, and I need to set a cronjob to run php /var/www/html/artisan schedule:run. I'm using php:7.4-fpm-alpine image. The following script is ...
Obada Qafisheh's user avatar
0 votes
1 answer
31 views

apache ubuntu 18.04 ads trailing slash at the end automatically

first i enabled mod rewrite then i used in my .htaccess this RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php virtual hosts file ...
Andrei Claudiu's user avatar
0 votes
0 answers
24 views

How can I get php 8.1 and integrate a web server for nano node?

My aim is to run nano node monitor cli, and I am really confused. Node fetches the ledger files (2nd day now) and seems to work with Docker, but no monitoring is possible unless I get some help to ...
Ioannis Kolonis's user avatar
-3 votes
0 answers
45 views

PHP Fatal error: Uncaught TypeError: ssh2_auth_pubkey_file(): Argument #1 ($session) must be of type resource, bool given [closed]

PHP Fatal error: Uncaught TypeError: ssh2_auth_pubkey_file(): Argument #1 ($session) must be of type resource, bool given $conn = ssh2_connect($remoteServerIP, $remoteServerPort); // $conn = ...
Jatin Kumar's user avatar
0 votes
1 answer
63 views

Any user can change roots' crontab

I wrote a simple php crontab management program that updated the crontab of 'someuser' like so crontab -u someuser /path/to/new/cronfile however I was in need to run some php scripts as root so I ...
magicsux's user avatar
  • 101
0 votes
1 answer
35 views

Ubuntu 22.04 PHP 8,2 posix_* functions are missing

It seems all posix_* functions as described in this document are missing from my installation of php8.2. At least all the ones I've tried (posix_getppid() posix_getpid(), posix_isatty() and some ...
Dennis 's user avatar
  • 133
0 votes
0 answers
44 views

Nextcloud Server security & setup warnings using apache2 on ubuntu server

In this I did try solving the red errors: PHP configuration option output_buffering must be disabled path: /etc/php/8.1/apache2/php.ini ; output_buffering ; Default Value: Off ; Development ...
Smit Desai's user avatar
0 votes
0 answers
18 views

Can't restart apache2

I already work on Apache2 so IDK where does this problem comes from. If I type "sudo systemctl retsart apache2" I got "Job for apache2 failed because the control process exited with ...
Clarisse's user avatar
0 votes
0 answers
19 views

Disable fpm only for one virtual host

I'm facing a problem that is turning me crazy! 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 ...
gabrieledeluca's user avatar
0 votes
0 answers
33 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
  • 166
0 votes
2 answers
152 views

Ubuntu 22.04 -- phpmyadmin error: mysqli extension missing

I can't get phpmyadmin to run, it reports The mysqli extension is missing. I have been running MySQL using MariaDB for a while, through multiple versions of Ubuntu. Currently running 22.04. After ...
jwk's user avatar
  • 1
0 votes
2 answers
82 views

php -v and phpinfo(); returns different versions

I want to use php 8.1 on Ubuntu server Currently it works with php 7.4.30 lsb_release -a returns No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18....
Sébastien Gicquel's user avatar
0 votes
1 answer
47 views

I installed php7.4 version in ubuntu and after that I am enabling mbstring in ubuntu but it keeps showing me error

In picture it is clear that installed version of php is 7.4 and when I enable mbstring extension with sudo phpenmod mbstring it keeps showing me the error. I have attached screenshot for it.
Mian Saqlain's user avatar
0 votes
0 answers
33 views

PHP openssl_seal always generate empty encrypted_keys

I'm using Ubuntu 22.04.2 LTS (Jammy). Every time I call openssl_seal(), it always generates empty encrypted_keys. I have enabled OpenSSL in PHP: ❯ php -i | grep -i openssl SSL Version => OpenSSL/3....
Meirza's user avatar
  • 1
0 votes
0 answers
88 views

How to server a react application in apache properly?

I am using apache to run a moodle application (PHP), but now I need to add a React app inside this moodle application but when try to start the React app it just shows an empty index.html I have ...
Ander Canales Medina's user avatar
0 votes
0 answers
51 views

mbstring (php/phalcon) - installed but not appearing in phpinfo()

I tried to install mbstring to use Phalcon, I don't know what I'm doing wrong but it doesn't appear in phpinfo(). Here's is basically what I've used : sudo apt-get update sudo apt-get upgrade sudo apt-...
Emma K's user avatar
  • 1
0 votes
0 answers
30 views

php startup error

I'm receiving the following warning PHP Warning: PHP Startup: dbase: Unable to initialize module Module compiled with module API=20190902 PHP compiled with module API=20220829 These options need ...
Csaby's user avatar
  • 11
0 votes
1 answer
94 views

E: Unable to locate package php-7-v-podlinnike.pdf

I tried to uninstall PHP but I got the following error instead. What does this error mean and how to solve it? $ sudo apt-get remove --purge php* Reading package lists... Done Building dependency tree....
Міша Корнійчук's user avatar
0 votes
1 answer
105 views

Wordpress 6.2 php8.1 Ubuntu Server 22.04

I have WP 6.2 installed on a LAMP stack(bare metal) and running php8.1 on an Ubuntu Server 22.04.2. I upgraded yesterday from 20.04 (php7.4 all working well) and my websites are barely working. The ...
walttheboss's user avatar
0 votes
0 answers
35 views

seems like there is a php script that runs on my wsl, but i don't know which

I have an app that I built (using laravel 8), and I run it using sail (docker). the docker/app are located in my WSL2 ubuntu system. For some reason (that is the question here ..), "something&...
yossi's user avatar
  • 131
0 votes
1 answer
92 views

Unable to install pear on Ubuntu 22.04.1

I'm on Ubuntu 22.04.1 LTS and a sudo apt install php-pear returns : E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php8.1/php8.1-xml_8.1.2-1ubuntu2.10_amd64.deb 404 Not Found [IP: ...
anjanesh's user avatar
  • 593
0 votes
1 answer
84 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
  • 11
1 vote
1 answer
70 views

error installing php dependencies on ubuntu

I have a vps with linux ubuntu 20.04 LTS installed, I also installed the lamp stack to upload my web projects, php with version 7.4, now I need to install some more php libraries for example: php-gd ...
FeRcHo's user avatar
  • 111
0 votes
0 answers
66 views

Apparmor PHP8.1 requests rw access to "/"

I'm writing an apparmor profile for php (specifically 8.1), and I'm having some trouble with my particular config of php (this is for a webserver running dokuwiki). I've gotten all the functionality ...
ehammer's user avatar
  • 305
0 votes
0 answers
87 views

HTTP ERROR 500 when running to linux server?

I have this PHP code for importing excel to mysql using PhpSpreadsheet in xampp. This code is OK when running in windows environment but if I hosted it to a Linux Server(Ubuntu 22.04) using XAMPP ...
moski's user avatar
  • 1
0 votes
0 answers
32 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
  • 1
0 votes
3 answers
443 views

How I can install multiple versions of php in ubuntu 22.10 version?

I'm a PHP web developer I have some errors with new version of ubuntu, I was Installed new version of Ubuntu (22.10) but when I installed php 8.2 version I can't know how to install different version ...
Hrat Tahmazyan's user avatar
-2 votes
1 answer
91 views

Apache2 configuration. Different PHP versions

I have a big problem with MyBB. I uploaded the files fine, gave rights 777. 000-default.conf entry from apache2: <VirtualHost *:80> ServerName 192.168.1.19 ServerAdmin webmaster@...
BuBu's user avatar
  • 1
0 votes
1 answer
77 views

Apache2 not installing necessary modules

Upon removing apache2 via sudo apt-get remove --purge apache2 and sudo apt-get autoremove and reinstalling it via sudo apt-get update and sudo apt-get install apache2, it does not install mods it ...
Muck's user avatar
  • 1
0 votes
0 answers
104 views

Still get 403 forbidden, after moved Apache root folder in /home directory and enabled config file?

I want to move root directory from var/html/www to home/mitacheto/projects, where "mitacheto" is mine username. What I already did: 1 - Opened etc/apache2/sites-enabled/000-default.conf and ...
MorganFreeFarm's user avatar
4 votes
1 answer
694 views

Surprising slowdown with Apache/NFS on Ubuntu 22.04.2

This question has been radically edited due to further investigation into the problem TL:DR; We have been running Apache on Ubuntu serving NFS pages for over 20 years now and a new emergent issue has ...
Konchog's user avatar
  • 91
0 votes
1 answer
148 views

How to change the upload_max_size for moodle in Ubuntu 22.04.2 LTS?

I am trying to change the upload_max_size for my moodle application following the documentation but after restarting the server i receive a message that the limit is only 2MB php info here Moodle ...
Ander Canales Medina's user avatar
0 votes
1 answer
127 views

Why is php7.4-curl version not installed?

I me an Ubuntu 22.04 cloud server. Site version php 7.4.30 I needed to install curl version 7.4, I did the following: sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.4-...
Анатолий Быков's user avatar
0 votes
2 answers
53 views

How to troubleshoot extremely high load averge (over 550)?

I am Ubuntu 18.04 user, running in OVHCloud Datacenter for 3 years with PHP Application and Mysql server on it. For 2.5 years, everything was ok, but in last 6 months i have strange issuee: Every 4th ...
MaxIT's user avatar
  • 1
0 votes
0 answers
44 views

unable to enable php server 20.04

I can't get php to enable on my web server. There is no apache module to enable it. I have libapache2-mod-php and libapache-mod-php8.1 installed but there is no module to install it. How can I get it ...
creativeUsern's user avatar
0 votes
0 answers
250 views

How to remove PHP previous versions installed in Ubuntu Server

I have initially installed php7.2 but bcz of the change required I have upgraded the php version to 8.1 this leads to an error in accessing the application Composer detected issues in your platform: ...
Radhika's user avatar
0 votes
1 answer
30 views

Error when I specify multiple options in my PHP bash script

#!/usr/bin/php -d register_argc_argv=1 ... At the top of my PHP script, I have the above and it works well. However, I need to add another -q and changed it to #!/usr/bin/php -q -d register_argc_argv=...
bilogic's user avatar
  • 191
1 vote
1 answer
955 views

Is there an update for php 8.2 repository for Ubuntu 22.10

Trying to add sudo add-apt-repository ppa:ondrej/php but there is a problem. I am using Kubuntu 22.10. Any thoughts if this can be done? I would like to use php 8.2 Ign:14 https://ppa.launchpadcontent....
user603749's user avatar
0 votes
0 answers
137 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,234
0 votes
1 answer
21 views

How to connect php-fpm with nginx?

I have a server that uses Nginx and PHP-FPM (PHP v7.4). It was working as well, 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
  • 181
1 vote
1 answer
76 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
0 votes
1 answer
65 views

mediawiki does not find mysql

After a reinstall of Ubuntu 22.10 and copy of backup to /var/www/html/ of mediawiki-1.38.4, reinstall of PHP8 and enabling of mbstring, intl and xml in a webbrowser to localhost/mediawiki-1.38.4 the ...
Tommy Pollák's user avatar
0 votes
1 answer
1k views

Can't get Apache2 to use PHP8.1 on Ubuntu server 20.04

I have an Ubuntu server 20.04 installation that among other things is running a bare-metal Nextcloud instance using Apache as the web server. I have multiple PHP versions installed, but up to this ...
GTP95's user avatar
  • 1
0 votes
0 answers
653 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
0 votes
0 answers
52 views

LEMP Secure hosting multiple users with Wordpress on ubuntu 22.04 LTS

Working on a stack with LEMP, Wordpress and multiple users. I am not sure if everything is secure. The server will have multiple users, and want to prevent them from accessing other users files / data ...
NME New Media Entertainment's user avatar
1 vote
0 answers
322 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
  • 235
0 votes
0 answers
1k views

Unable to start php-fpm service after boot on Ubuntu 22.04

Hello Ubuntu Community, i am running a small Ubuntu Server within my home network with various web services like vaultwarden, nextcloud, seeddms, etc. on it using a nginx web server. I had multiple ...
Ubuntu Developer's user avatar
0 votes
1 answer
425 views

PHP not finding extensions in the correct directory

Sorry if this is a repeat of another question; my searches failed to find a direct solution to my problem. Just now, my machine updated PHP to v8.2. Since then, I have been unable to run the SQL ...
Jay Bienvenu's user avatar
0 votes
0 answers
711 views

How to install PHP 8.1.13 on Ubuntu 22.04 LTS?

If one installs PHP on Ubuntu 22.04 LTS, by default PHP version 8.1.2 is installed: $ sudo apt install php $ php -v PHP 8.1.2-1ubuntu2.9 (cli) (built: Oct 19 2022 14:58:09) (NTS) Copyright (c) The PHP ...
Free Radical's user avatar
0 votes
0 answers
39 views

Kernel version 5.4 performs better transactions in PHP than newer kernels? see thread

Good day fellow Ubuntu users. I would like to ask for any inputs or ideas to see on why the kernel version 5.4 performs way better transactions in PHP compared to the newer kernel versions. Here's the ...
Capitol's user avatar
  • 11

1
2 3 4 5
52