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
0 votes
0 answers
15 views

IIS + PHP - Configuration File (php.ini) Path - no value

I have a few PHP apps on IIS 10. I set each app the right PHP version for it, and it works correctly, and the Loaded Configuration File shows the right path for each, however, only the apps using one ...
Stackerito's user avatar
0 votes
0 answers
24 views

Ajax query throws server error 500 if over 16384 bytes

I'm getting Server error 500 when updating pages in Wordpress as soon as content length goes over 16384 bytes, regardless of the editor used (built in or Elementor). This only started after updating ...
Enis Begovic's user avatar
1 vote
1 answer
92 views

How to disable unlisted file name extensions but make the PHP app work?

I was adviced to untick the "Allow unlisted file name extensions" option in the Request Filtering in IIS. But now the PHP app is not working, I get: HTTP Error 404.7 - Not Found The request ...
B.D Liroy's user avatar
  • 187
2 votes
0 answers
44 views

How does IIS "know" which website uses which PHP version?

I have 2 websites on the same application pool with IIS 10. One of them is a PHP app using PHP 7.3, and the second app is the updated version of the same app using PHP 8.1. Now I just copied the newer ...
B.D Liroy's user avatar
  • 187
0 votes
0 answers
29 views

Orangescrum says "Wrong database information. Please try with correct information." even though I've provided correct credentials

I'm entering correct database credentials. I've seen similar post in stackoverflow, which was left unanswered. Hoping for replies here.
achhainsan's user avatar
-2 votes
0 answers
27 views

How do you change the php version that you don’t want to ? in MAC terminal

Device macbook air 2017 os mojave I want to replace PHP version 7.3.1 on my mac with 8.1.11 but don't want to be able to I've tried several sources but the result is the same. This is the source I ...
Nanz's user avatar
  • 1
0 votes
1 answer
63 views

WSL2 is not handling file permissions properly, unable to write files from PHP

I am running nginx, mariadb and php8.2-fpm on my WSL2 Ubuntu server successfully, all running as user www-data just fine, however, I cannot upload files from the web interface. When I attempt to, the ...
Kevin Flanagan's user avatar
0 votes
0 answers
25 views

What is the command to enable a .ini file in PHP like we do with Apache2 (i.e. equivalent to a2enconf for php)?

When one of my packages adds a new configuration file to Apache2, another package postinst script can enable it with a command such as: a2enmod --quiet authz_host (The --quiet is useful to avoid ...
Alexis Wilke's user avatar
  • 1,488
-1 votes
1 answer
105 views

Apache having problems with PHP

This on W10. I've been trying to replace a dysfunctional Apache-PHP setup. I installed (i.e. decompressed) Apache2.4.57 under D:\apps. I have a php version at D:\apps\php\php7.4.33. httpd.conf ends ...
mike rodent's user avatar
0 votes
0 answers
28 views

PHP website getting hacked - dir names changed

I'm new to PHP and Apache. I come from Node.js/Java backends and I'm new to this tech stack (PHP, CGI, Apache etc). My site currently uses ckeditor to handle user uploads and has high traffic. Often, ...
Leonardo Santos's user avatar
0 votes
0 answers
22 views

my vps shutdown and error.log (22)Invalid argument: AH00146: could not release mutex accept

Today I set up my VPS with Apache2 and Debian. My VPS has 16 RAM and 4 CPUs. My load is 0.02 to 0.07 with htop. My script is PHP Apache2 I have approximately 5000 visits per day. It happens that I was ...
Razyit's user avatar
  • 1
0 votes
0 answers
38 views

Install php-mod and php-fpm (different versions) on the same server

One of our clients has a server which is running PHP 5.3.3 (in our understanding it is mod_php, apache, Centos 6). Is it possible to install ANOTHER php version (say PHP 8.0) in say php-fpm for a ...
Ken Lee's user avatar
  • 101
0 votes
0 answers
60 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
  • 109
0 votes
0 answers
81 views

Start nginx without host container being available

For local development, I have a suite of 5 sites. Each site runs in its own php-fpm container. All sites are served by a single nginx container, which contains .conf files for all the sites. They ...
amacrobert's user avatar
0 votes
0 answers
43 views

macports' php82-fpm unable to read a php file due to system policy

I try to set up a LAMP server on my M1 macMini, and after getting thru several configuration issues, I've been able to start apache2 and php82-fpm in fastcgi mode, but Apple's system Policy seems to ...
Fabien Auréjac's user avatar
0 votes
0 answers
24 views

How to install PHP for local development on a daily use Ubuntu machine, only running when called?

I did this years ago, but at this point I don't recall how anymore, so I know it's doable, and I've yet to find good documentation in any other way than it's possible. I'm looking for how to install ...
lilHar's user avatar
  • 159
0 votes
0 answers
48 views

Why can't I use localhost to open a file I moved, even though the permissions are the same and I changed DocumentRoot in Apache configuration

I am learning to use Apache on macOS Monterey. I have a simple test file test.php: <?php echo "Test"; I put this file in my home directory (/Users/my_username) and update my Apache ...
harry.kuril's user avatar
0 votes
1 answer
122 views

'The requested resource was not found on this server' error in IIS

I have configured IIS (ver 10) in Server 2022 edition and added few sites which including php,Dot net technologies etc. The sites were working fine except some DB issues which i was working on it. ...
Nidal K I's user avatar
0 votes
0 answers
28 views

gPodderSync not syncing all podcasts with custom podcasts rss feeds

I an audiobook collection and am trying to figure out a free way to keep my audiobooks in sync across devices. A friend of mine recommended I check out the gPodderSync plugin for NextCloud. I wrote a ...
mhay10's user avatar
  • 23
0 votes
2 answers
56 views

Is there a way to set up Xdebug on Windows without submitting that form with your phpinfo() dump?

On https://xdebug.org/docs/install , in the Windows section, it says: Follow these instructions to get Xdebug installed. This leads to: https://xdebug.org/wizard , which only has a textfield and ...
Rubiera's user avatar
0 votes
0 answers
292 views

How avoid mkdir Permission denied error when executing google-chrome with php proc_open

Linux Mint XFCE, Apache 2, php 8.1, Google Chrome v110 (installed via apt, not Software Manager) I'm trying to start Google Chrome with php proc_open and get the PID for it back. Because of other ...
SBF's user avatar
  • 1
0 votes
2 answers
290 views

Apache .htaccess not working on a new VPS

We changed hosting, being from a normal server, to a VPS server. In this VPS server the operation is normal, however the .htaccess file is not being executed or read by the VPS. Even being simple ...
Nieri Oliveira's user avatar
0 votes
1 answer
846 views

How to remove trailing slash before URL parameters in Nginx

I have an simple Nginx site that runs a single PHP file regardless of the URL (except for CSS/JS files, which are served normally) However, no matter what I do, and testing with multiple browsers, any ...
kmecpp's user avatar
  • 101
0 votes
1 answer
283 views

PHP doesn't work with my Apache

While starting the httpd service this error happens: archlinux httpd[20575]: httpd: Syntax error on line 543 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/mods-enabled/php....
MatiasGdo's user avatar
1 vote
1 answer
113 views

How do I know if I'm being hacked?

I'm building a small site on a LAMP server and hadn't logged in for a few days. I logged in today to make some changes and after checking the error log I can see that I've had the following error ...
Instream's user avatar
0 votes
0 answers
103 views

AWS SES Access Key and Secret keeps getting used by spammers

I have a Laravel application running on an Amazon EC2. I also use SES to send out my emails. I keep my AWS Access Key and Secret inside my .env file, stored on the app level I have configured an IAM ...
farjam's user avatar
  • 101
1 vote
1 answer
191 views

Apache and PHP symlink behavior

I have debian installed with apache2 and php and symlinks are working. But not as I expect: /a/b/config.json /a/b/index.php /a/b/api/api.php /var/www/html/x/config.json /var/www/html/x/index.php ->...
Tobias Wollgam's user avatar
0 votes
0 answers
32 views

OpenLDAP + IIS + SSL + PHP = Error 500

I try to contact the OpenLDAP server on port 636 via my PHP application but I get: 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. ...
Stackerito's user avatar
0 votes
0 answers
551 views

Finding php location on MacOS Ventura

I'm using MacOS Ventura. PHP and Apache are running ok because i can access both on the browser localhost. But how can i find out where the current PHP version is installed ? When i go to the prompt ...
delphirules's user avatar
0 votes
1 answer
540 views

Error while switching to php-5.5.17 with laragon

I am trying to configure php-5.5.17 downloaded from https://www.php.net/distributions/php-5.5.17.tar.bz2 unzipped in laragon/bin/php and switched from laragon menu to php-5.5.17. Getting this error: ...
Amit Shah's user avatar
  • 131
1 vote
2 answers
228 views

Why does index.html.bak take precedence over index.php (Apache)?

I stumbled upon a strange behavior on my new virtual Debian 11 install. Under user/public_html I was doing some changes to a page and at some point my browsers started downloading the index file ...
llahteinen's user avatar
0 votes
0 answers
897 views

Cannot start Apache on Ubuntu 22.04 running PHP 8.1.2. How to install missing PHP load module?

I am on Ubuntu 22.04. I recently upgraded PHP from 7.4 to 8.1 PHP version: PHP 8.1.2-1ubuntu2.8 (cli) (built: Nov 2 2022 13:35:25) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) ...
Niladri Sarkar's user avatar
1 vote
0 answers
133 views

How to properly redirect HTTPS to local HTTP connected via WireGuard tunnel when the app itself is not using SSL?

I have an domain that is setup with an SSL certificate via Let's Encrypt so it only works via https://example.com/ This domain is connected via WireGuard tunnel to my home PC which serves a Laravel ...
Stackerito's user avatar
0 votes
0 answers
45 views

How to "intelligently" delete backup files based on their creation time?

Every >= 24 hours, my system makes a full backup of the (PostgreSQL) database and puts the resulting file into a dir of files such as: MyLifeDatabase 2022-12-01 12;00;00.pg_dump MyLifeDatabase 2022-...
Xavian's user avatar
  • 1
0 votes
0 answers
347 views

How to avoid permissions issues when using PHP to create folders and store files?

I have a Laravel project and part of the code creates folders and stores photos inside it. Each user has his own folder, but if he did not upload anything yet then this folder does not exist. Then the ...
B.D Liroy's user avatar
  • 187
1 vote
1 answer
181 views

I have openssl on my macOS, but when I compile PHP, I get error

I use this command compile the php on my macOS: ./configure \ --prefix=/opt/php-7.4.30 \ --with-config-file-path=/opt/php-7.4.30/etc \ --with-pdo-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --...
lustre's user avatar
  • 145
0 votes
1 answer
346 views

php and apache not seeing anything in there defined tmp dirs

we have standard php and apache but not seeing anything in there defined tmp dirs How to check logs for non application 500s? I have actually 2 issues one is routing logs for https://www.test.com ...
sam23's user avatar
  • 29
0 votes
1 answer
684 views

Getting array from POSTMAN API, split values it into variables and send request to server

I'm getting an array through POST method in my postman API and after getting I am trying to split the array and then assign each array value to a variable, storing it in the XML code and sending that ...
Lalarukh khan's user avatar
0 votes
1 answer
389 views

how to solve ApcCache requires PHP apcu extension to be loaded

Invalid Configuration – yii\base\InvalidConfigException ApcCache requires PHP apcu extension to be loaded.
user avatar
0 votes
1 answer
492 views

Changes made to the ini file are not reflected in phpinfo()

According to phpinfo(), the following INI files are loaded: Configuration File (php.ini) Path /etc Loaded Configuration File /etc/php.ini Scan this dir for additional .ini files /etc/php.d ...
user1727556's user avatar
0 votes
0 answers
99 views

When Apache shuts down it leaves many php-cgi processes behind

If I start Apache and use any of 8 virtual hosts on it for a short while, by going through Wordpress and other CRM's admin UI and blogs/storefronts, then it shuts its php-cgi processes down as I bring ...
user1727556's user avatar
1 vote
1 answer
646 views

Something is Masking / Removing PHP7.4-FPM

I am on Ubuntu server 20.04, running LAMP with php7.4-fpm. I just performed the latest update/upgrade and confirmed everything was working correctly: ● php7.4-fpm.service - The PHP 7.4 FastCGI Process ...
mjones's user avatar
  • 267
1 vote
0 answers
130 views

httpd on OpenBSD: How to Redirect URLs Ending In '.php'?

I am running an httpd(8) web server on OpenBSD. php-8.1.9 is used to serve php. In /etc/httpd.conf I have the following (example.com is a placeholder for the actual domain): server "example.com&...
Matthew Carlson's user avatar
0 votes
0 answers
97 views

Convert apache user to physical account with home directory

I'm working on Red Hat Linux server, I want to execute shell script from my php application, the script contain ssh connection with a lot of others actions, I want to convert the existing apache ...
user avatar
0 votes
1 answer
404 views

PHP pages stopped working on Nginx with reverse proxy for Apache

I set up a Nginx server with reverse proxy for Apache (following this tutorial) some months ago. Everything work great, the nginx part as well as the php pages on Apache. But I needed to use curl for ...
jost21's user avatar
  • 687
0 votes
0 answers
584 views

how to install FFMpeg in xampp and laravel 9

i have tried Install FFMPEG on XAMPP this method to install... i have no idea about FFMpeg.... please command me the steps from downloading the FFMpeg to install in xampp... and than to setup in ...
user avatar
0 votes
1 answer
105 views

How do I setup GRAV (a PHP application) on portable Apache?

I'm trying out some personal Wiki systems for my Windows 10 computer that uses plain Markdown files, and came across GRAV. That is an Open Source CMS using Extract-and-drop setup most any web server ...
Dennis's user avatar
  • 130
0 votes
1 answer
4k views

Modify the contents of php.ini in my Dockerfile

I'm using containers which run php environments and in my Dockerfile I set php.ini from the development template cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini then once the ...
maja's user avatar
  • 319
0 votes
0 answers
126 views

How to rewrite url from apache to nginx

I'm new to nginx, can anyone tell me how to rewrite the url in nginx with, for example: http://mydomain.local/fodelr1/class1/action1/param1/param2 ...... I want to get all the following http://...
Phước Bùi Thế's user avatar
2 votes
3 answers
9k views

E: Failed to fetch https://packages.sury.org/php/dists/stretch/InRelease 403 Forbidden [IP:x.x.x.x]

I am using Ubuntu1804. When I do apt update, I got an error E: Failed to fetch https://packages.sury.org/php/dists/stretch/InRelease 403 Forbidden [IP: x.x.x.x 443] E: The repository 'https://...
hatted's user avatar
  • 131

1
2 3 4 5
40