Questions tagged [php]

PHP is a widely-used general-purpose scripting language that is especially suited for Web development. Questions about programming in PHP are off-topic and should be asked on Stack Overflow.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
11 views

Are ther free tools for upgrading PHP [closed]

I want to upgrade my codebase to new PHP version, but once my project crashed because of the 7.3 division change. is there any free tool to check for potential problems?
user avatar
1 vote
1 answer
20 views

502 Bad Gateway error: How to install php8.1-fpm.sock on ubuntu 18.04

I have nginx running on my system and php8.1 installed. But I am getting Bad Gateway problem. I found that I don’t have php8.1-fpm.sock installed on my system: $ php -ver PHP 8.1.7 (cli) (built: Jun ...
user avatar
0 votes
0 answers
17 views

Main steps on making XAMPP a "secure" env for production

To start out I know that XAMPP is not ideal for production. But I'm a begginner in using Apache, MySQL and most importantly I'm very new to PHP. I came from a Node.js/Java/Javascript background and so ...
user avatar
0 votes
1 answer
14 views

Sendmail/roundcube delivery issues only through command line to external email

I have been playing with this issue that was discovered initially when people were unable to use the vacation feature in roundcube, it would provide a 554 5.7.1 *@gmail.com: Relay access denied 554 5....
user avatar
-1 votes
1 answer
22 views

PHP version upgrade

I am using Linux mint. I am trying to upgrade my php version from 7.3 to 7.4. I used below commands. sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt install php7.4 sudo apt ...
user avatar
  • 151
1 vote
1 answer
30 views

Would any platforms have problems with missing PHP closing tags?

I've come across some open source PHP files that start with the expected <?php but do not contain a ?> to end it. As far as I can tell, they work fine on Apache with PHP 8.0 Which platforms (if ...
user avatar
  • 673
0 votes
0 answers
28 views

Issue with Security Headers

Is there any issues coming from adding 'Strict-Transport-Security' and 'X-XSS-Protection' headers ? Header set Strict-Transport-Security "max-age=10886400; Header set X-XSS-Protection "1; ...
user avatar
0 votes
1 answer
30 views

HTTPS and HSTS headers issue

In my scenario we currently have www3.example.com routing through a few different paths. Could you please advise how we should correct this to be a better approach, possibly just redirecting even? &...
user avatar
0 votes
0 answers
17 views

MySQL not allowing access via php mysqli?

I have just finished setting my VPS up, running on Debian 11 and equipped with the latest MySQL configured to be as safe as it gets via the installer and PHP v8.1.4 + mysqli. Upon trying to access my ...
user avatar
0 votes
0 answers
24 views

New ftp user created and now I can't access website over my wifi network

I have created a new FTP user and now I can't access my website over my wifi address. I have checked if it is banned/blocked in Cpanel or in the application and everything was good. As soon as I go ...
user avatar
0 votes
0 answers
39 views

Couldn't add PHP 7.4 to Webmin/Virtualmin

I followed this tutorial which actually referred to this but after I did the installation for my CentOS 7 and went to System Settings -> Re-Check Config at VirtualMin, I see the same PHP versions I ...
user avatar
0 votes
0 answers
85 views

How do I find all php binary path's on a linux server?

A server has multiple php custom versions, which were installed with ISPConfig 3. I am trying to find the path to each version so I can run a cron with the specific binary. I have tried the following ...
user avatar
0 votes
1 answer
14 views

PHP-Error on Mediawiki1.7 Startup-Error

I'm trying to set up mediawiki 1.7 on an Ubuntu 20.04 system with php 7.4 apache2 & mariadb (while strictly following this tutorial), but when I try to access the site through localhost, I get the ...
user avatar
  • 123
0 votes
0 answers
83 views

Apache2.4 can't start

Need help in starting Apache in XAMPP, I had finished reconfiguring apache's and XAMPP's control panel to listen to port 8079. But there is still problem in starting it. The logs are below. XAMPP ...
user avatar
1 vote
0 answers
212 views

PHP webpage downloads instead of opens in browser (nginx, php on debian10 server)

I have a server running Debian 10. I have installed nginx (1.18.0) and php and php-fpm (7.4.28). Following this guide https://landchad.net/index I was able to get html website with certification by ...
user avatar
0 votes
0 answers
23 views

How to sync a NetBeans project with the File System

NetBeans might not be the sharpest tool in the shed, but it's a nice option to PHPStorm. Both seems to share a good part of the codebase. But there is a native function on PHPStorm that might not be ...
user avatar
  • 1
0 votes
1 answer
164 views

Uninstalling PHP 8.0 that was installed through Web Platform Installer

I am trying to uninstall PHP 8.0 (x64) on a windows server 2022 machine. I have tried all methods available but WPI still detects it as installed. What I have tried so far : Deleting the folders ...
user avatar
1 vote
1 answer
47 views

Atom Flatpak using sandboxed runtimes and executables in package settings

I'm using the flatpak version of Atom. I want to install a linting package for PHP, so that code errors are easier to spot. However it requires access to a php binary. Now since this is a Flatpak, it'...
user avatar
0 votes
1 answer
83 views

Installed php74-php-mysqlnd but module is not available

I am setting up a clean CentOS 8 server and installed PHP using the Remi repositories. In there, it also has a php74-php-mysqlnd package that should be installing the correct .so files, but I do not ...
user avatar
0 votes
1 answer
43 views

How to create a console that act as a server?

I am a computer science student working on my capstone project. My team is building a vehicle renting system. In this system, user can book and rent a car they like on a specific date range. We are ...
user avatar
  • 1
0 votes
0 answers
15 views

Is the default configuration of an apache 2 webserver secure (including the VirtualHost config)?

Is the default configuration of an apache 2 webserver secure (including the VirtualHost config)? If I simply run "sudo apt-get install apache2 php libapache2-mod-php", is the setup already ...
user avatar
0 votes
1 answer
202 views

Uncaught Error: Class 'PDO' not found

I had a perfectly working installation, but needed to upgrade PHP 7.3 to 7.4 due to EOL. Since then, I have an error : Fatal error: Uncaught Error: Class 'PDO' not found in /usr/local/www/nextcloud/...
user avatar
0 votes
1 answer
24 views

Check if file crontab runs

I've set up crontab tasks to be executed every min. * * * * * sudo /usr/bin/php /root/scrapers/terra_plf/terra_swap_api.php I see its log in var/log/syslog file: Jan 3 15:14:01 clearthefog CRON[...
user avatar
0 votes
0 answers
21 views

Use regular expression in PHP to match text, how?

Im new to coding and regular expression. How Can i use regular expression to read those word? Main System\MONITORING\DIFFUSION\WET/FURN\***FURNACE-NITRIDE*** [0]:NITRIDE-1600-3MM-RI: Deleted:[0] ...
user avatar
0 votes
0 answers
67 views

trying to install mysql server inside my Dockerfile

My Dockerfile is actually a PHP image. FROM php:8.1 I want to also run a mysql server within it. I tried apt install default-mysql-server but gives out: 2022-01-01 23:37:35 0 [Note] InnoDB: Buffer ...
user avatar
0 votes
2 answers
557 views

All CWP accounts and domains stuck on Account Suspended

Woke up and saw all domains saying "Account Suspended" while I am the admin and domains are all in default account and toggles are all On. Did try toggling the "Suspend Account" ...
user avatar
0 votes
0 answers
46 views

Cannot update PHP 5.4.16 to PHP 7.3

I am using RedHat Linux 7.9. I am trying to upgrade PHP 5.4.16 to PHP 7.3 commands I find in blog posts and questions, don't work for me. For instance: [root@username src]# php --version PHP 5.4.16 (...
user avatar
  • 101
0 votes
1 answer
37 views

Crontab task does not work, Linux, Debian

At a Debian server I've set a crontab task using crontab -e with the following content: */2 * * * * /usr/bin/php /root/scrapers/terra_plf/terra_swap_api.php Why doesn't it work? When I run the same ...
user avatar
0 votes
2 answers
189 views

Indent of array in method in phpStorm

phpStorm is formatting arrays in method calls like this (auto code formatting): $address = new Address([ 'full_name' => $fullname, ]); I expect it ...
user avatar
  • 1,792
0 votes
1 answer
243 views

Downgrade PHP Version

I am running PHP 8 in Linux Mint 19.1. Now I need to run PHP 7. How can I do that ?
user avatar
  • 151
0 votes
1 answer
28 views

auditctl - file being created on server

I have a situation which I need help with. I appreciate any feedback and help. a file wp-signups.php is being created automatically in public_html. If I deleted the file, it is instantly recreated. I ...
user avatar
  • 1
0 votes
0 answers
547 views

Debian can't update after i installed php 8.0

Err:1 https://packages.sury.org/php bullseye InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the ...
user avatar
0 votes
0 answers
18 views

Combining ffmpeg 3 command to single command

command 1 ffmpeg -i $video -ss $time -frames:v 1 $save" command 2 ffmpeg -i $save -vf scale='if(gt(a,320/460),320,-1)':'if(gt(a,320/460),-1,460)' $savex command 3 ffmpeg -i $savex -i $watermark ...
user avatar
0 votes
0 answers
44 views

Unable to Login to PHPmyadmin

I can't find the login boxes. Why is that?
user avatar
0 votes
0 answers
127 views

ffmpeg encoding process getting stuck after few hours

Hope someone can guide me with this. I am encoding a few videos and the process keeps getting stuck after few hours. I'm using php wrapper (using this github code - https://github.com/PHP-FFMpeg/PHP-...
user avatar
1 vote
0 answers
24 views

LAMP Stack refresh rate is poor

I'm using LAMP on Linux(Debian). Earlier I used WAMP on Windows. Whenever I saved the PHP file and tested on the browser, it immediately takes effect. However, in Linux, the LAMP takes too much time ...
user avatar
0 votes
0 answers
110 views

Directly call index.php instead of try_files

I got this construct which works, but is clearly suboptimal. I tried to follow this guide, https://www.getpagespeed.com/server-setup/nginx-try_files-is-evil-too, but the configuration for php, is ...
user avatar
0 votes
0 answers
36 views

Can't connect to MySQL from PHP script running on the PHP builtin server (localhost)

I am trying to connect to the MySQL service provided by XAMPP (screenshot) through a PHP script that runs on the builtin PHP server (I started the server through php -S localhost:4242 in the folder ...
user avatar
0 votes
1 answer
45 views

Invalid command when enable php-fpm

I can't seem to enable php fpm. The error is. Invalid command ';;;;;;;;;;;;;;;;;;;;;', perhaps misspelled or defined by a module not included in the server configuration Which is strange, given the ...
user avatar
  • 51
1 vote
0 answers
30 views

Which Winlogon session is attached to the sound device?

I want to select and play music stored in my Windows 10 Home PC from mobile devices connected by home WiFi network. There's an Apache webserver running on my PC as a service logged on Local System ...
user avatar
  • 111
0 votes
0 answers
24 views

How to prevent GUIs picking up an outdated version of PHP

I am working on a PHP project with Composer. The project runs in Docker which has PHP 7.4. On my system, I also have MAMP and I've put a symlink into my ~/bin which is in my $PATH so that when I do ...
user avatar
  • 711
1 vote
0 answers
49 views

Remove ionCube from CentOS server

Someone in our workplace encrypted some files with ionCube in our main code repository, I can't find any file related on how to remove this extension/module or whatever it is when I look to our PHP ...
user avatar
-1 votes
1 answer
26 views

Wamp missing PHP and MySQL configuration

I have installed Wamp which I used also on other PC. Previous version had full of options to configure PHP, MySQL, PhpMyAdmin like version, extensions. But this Wamp package does not have anything. I ...
user avatar
  • 247
0 votes
0 answers
271 views

443: Connection refused - how to tell if it is refused on client or by the the remote server?

I have the following code on https://lampunams.lv/cu.php: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $url = "https://markslojd.home.pl/...
user avatar
0 votes
0 answers
686 views

How to disable error reporting in PHP (nginx)

This is not the first time someone asks this question, but I went through all the similar cases I found and could not resolve this issue. I am running a local development environment, with PHP-FPM 7.4 ...
user avatar
0 votes
1 answer
292 views

Php Extension MySqli installed but calling it gives an error

I run the following statements (so it is completely reproducible) (because i wanted to play with the source code of WordPress) and the following makes your current dir a website running under 8082 (...
user avatar
  • 667
0 votes
0 answers
108 views

PHP-FFMPEG installation is not working on centos 8

PHP-FFMPEG installation is not working on centos 8 I follow the below methods to install the PHP-FFMPEG, wget http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.6.0.tbz2 tar -xvf ffmpeg-php-0.6....
user avatar
0 votes
1 answer
255 views

how to setup oci8 on rhel 7.9 with REMI/RPM repository

I am very much new to linux and my project uses oracle instaclient. I want to install oci8 on rhel 7.9 but I don't know if I need to install basic/devel/rpm/remi version. I am following this document ...
user avatar
0 votes
0 answers
115 views

how to set index.php as default page in apache linux rhel

I tried to set index.php as a default page in my PHP project which is running on apache. I edited httpd.conf file in path etc/httpd/conf/httpd.conf <IfModule dir_module> DirectoryIndex ...
user avatar
  • 13
0 votes
0 answers
201 views

How to download or install php7.2-curl extension in ubuntu 21.04?

I want to install curl extension in my current php-project(php version is 7.2.34) for that i use this command sudo apt-get install php7.2-curl it's throwing following error and it's not showing in the ...
user avatar

1
2 3 4 5
39