Questions tagged [php]

PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

On CentOS7: Uninstalling mariadb-server also uninstalls php-mysql package

On CentOS7: I need to upgrade MariaDB from 5.5 to 10.4 I followed this guide: https://itcloudnet.blogspot.com/2019/10/how-to-upgrade-mariadb-55-to-mariadb.html but instructions on other sites are ...
0
votes
0answers
12 views

PHP FastCGI Process Manager (FPM) on IIS

Is there a way to enable fpm-fcgi sapi on IIS? I'm aware that the default SAPI for PHP on IIS is cgi-fcgi.
0
votes
1answer
94 views

phpBB server doesnt have rights to write to cach files and store (fedora)

i am trying to make a project ive been working on called SnowBall and im using phpBB to do that but on step 2 the requirements and at the end it says cache/: Found, Unwritable files/: Found, ...
-2
votes
1answer
97 views

How much does httpd_can_network_connect being set to 1 actually open up on SELinux

I am getting the following SELinux denied lines in my log file when I attempt to redirect a user to Paypal to checkout. Would you please help me understand what it means and what exceptions I should ...
0
votes
0answers
33 views

How to install mysql extension for php 5.3?

I'm trying to get an old application running under CentOS 7.8 which only supports php 5.3. I already compiled and installed php 5.3 but I'm not able to get the mysql extension working. Here is what I ...
0
votes
0answers
44 views

bWAPP, PHP app installation in Linux, Apache, MySQL failed

I've just downloaded bWAPP (buggy web application) and install it in Linux however it didn't really worked as expected. This is the requirements of bWAPP (buggy web application) Requirements */ ...
2
votes
2answers
245 views

LAMP Stack and VPS Performance

I have a VPS (Intel Xeon CPU E5-2630 v4 @ 2.20GHz, 4 cores - 8 GB RAM - 200 GB SSD) and I am using it to host a Wordpress blog. I am using Virtualmin as a control panel, The operating system is Centos ...
-1
votes
1answer
20 views

I am getting following error while configuring office365 mail on contact us form in laravel 7. please anyone can

Swift_TransportException (554) Expected response code 250 but got code "554", with message "554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process ...
0
votes
0answers
39 views

“The keys in the keyring … are ignored as the file has an unsupported filetype.” PHP7.4 Installation

Installing PHP7.4 on Debian 10, I've executed the following: sudo apt -y install lsb-release apt-transport-https ca-certificates sudo wget -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/...
0
votes
0answers
22 views

Channels current state is disconnected(laravel-websocket on ubuntu Host server)

I am working on Laravel-websocket package i got stucked on this error from quite long time. i have configure basic laravel procject along with laravel websocket package on my local ubuntu as well as ...
0
votes
0answers
27 views

Get Request: cURL error 7: couldn't connect to host

I am trying to make a GET request to a url from my wordpress installation to get the access token but I receive this error: WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [...
0
votes
1answer
102 views

Elastic Beanstalk Custom Nginx conf

I'm setting up a new Amazon Linux 2/PHP/NGINX environment and I'm a little unfamiliar with Nginx since my last environment on Elastic Beanstalk was Amazon Linux/PHP/Apache. (Amazon changed the proxy ...
0
votes
1answer
31 views

How to prevent Apache2 malware execute

Is there any way to prevent to execute some unwanted malware in Apache2. One of our clients Wordpress website is hacked and there was a files like /wp-content/uploads/2020/05/U27I0x Those files ...
1
vote
0answers
22 views

PHP high I/O after a DDoS attack

I've had a large scale DDoS attack on my website. After I've enabled captcha challenge through CloudFlare and the attack stopped, PHP's I/O was still loaded at 99%, and the website was working very ...
0
votes
0answers
17 views

WebServer: Send file that is still being written

I have a long-running process that creates large files for a web application that are stored in the file system. Is there a way to deliver the download of this file via the web server (currently ...
-2
votes
1answer
44 views

a site use Linux Server take long time to load

i get this problem first time since 5 years i use same site same script without any change . i have a site xxxxxxx.com (php script) use a ip http://1.1.1.1 (example) , i use centos as OS for the ...
1
vote
2answers
40 views

Upgrading to latest PHP on production server w/CentOS 7

I'm running a production server with CentOS 7 and PHP 7.1. I'd LOVE to upgrade to PHP 7.4 but I am nervous about doing this on a production server. I am not the greatest sysadmin in the world, so I ...
1
vote
1answer
22 views

Is there some way to get PHP to log a warning/notice/error whenever a function is being called with too many parameters? [closed]

I used to have this: function whatever($foo, $bar, $foobar, $barfoo) Later, it turned into: function whatever($foo, $bar, $foobar) Still, there were some instances of code doing: whatever(1, 2, 3,...
0
votes
0answers
28 views

Shibboleth/apache REMOTE_USER not showing in PHP variable

I have an apache server with shibboleth and php configured. Application prompts for login credentials and after entering user and email in shibolleth login application ($_SERVER["REMOTE_USER"] ...
0
votes
0answers
18 views

How to best handle apt upgrade and php-fpm default pool www.conf

I currently have an Ubuntu 18.04 server with php-fpm installed. In the spirit of maintainability, instead of editing /etc/php/{version}/fpm/pool.d/www.conf I copied it and renamed it as {domain}.conf ...
0
votes
1answer
53 views

Configure NGINX Reverse Proxy in front of Apache Web Server (to enable websockets)

Upon recommendation of a member of the stackoverflow forum, I hereby ask the following question in this forum, where it apparently fits better (I'm new to this forum). What exactly I want: A ...
0
votes
0answers
27 views

PHP seems to ignore my curl.info of my php.ini

I posted the same question on StackOverflow, but someone told me that I should ask it here: https://stackoverflow.com/questions/61894424/php-seems-to-ignore-my-curl-info-of-my-php-ini. I'm using WAMP ...
0
votes
0answers
15 views

Owncloud on Raspberry Pi fails, apache2 error log says php_intl can't load, PHP CLI fails to load it, tried installing libicu64 but it didn't work

I am running an Apache server on a Raspberry Pi 4 using Raspbian Buster, with Owncloud 10.4.1 installed as a web app. When I start the server, I get the following error message on /var/log/apache2/...
0
votes
0answers
24 views

Increasing the amount of active websocket connections on Apache 2.4 (Task limits)

Currently, I am using mpm_event and I have increased the allowed amount of open files. It doesn't matter how high I set MaxRequestWorkers because of what appears to be a limit on the Apache2 process. ...
0
votes
1answer
27 views

Nginx proxy request to url specified in GET variable

I need Nginx to respond to a request like https://example.org/proxy/?url=https://othersite.com/path/file.php%%a=test123%%b=321tset or a similar method, like https://example.org/proxy/https://...
1
vote
1answer
398 views

Debian: Cannot install php7.4-curl — depends not installable

I recently upgraded from debian9 (stretch) to debian10 (buster). Which also includes upgrading to php7.4. For some reason php-curl cannot install. I run apt install php7.4-curl and the error I get ...
0
votes
0answers
26 views

Docker PHP Image / Disable 404 errors on error log

I have a docker image based on the official image php:7.3-apache. When someone accesses an invalid url like: http://myserver/non-existent-file I get a simple 404 logged on the access.log and nothing ...
0
votes
1answer
60 views

Blocking phpmyadmin from internet, allow only from lan in nginx

I'm running 2 websites on a LEMP stack with nginx configured as a reverse proxy server. I have successfully installed phpmyadmin in the root folder of one of my sites root directories. When I go to ...
0
votes
0answers
17 views

server stuck in PHP 5.6 when 7.4 is chosen

We recently installed and configured Ubuntu 18.4 with Apache and PHP 7.4 then added multiversion support for 5.6 and installed Virtualmin. The problem we're noticing now is that when we run phpinfo(), ...
0
votes
0answers
13 views

Using an AD Domain for Authentication in PHP

I am running apache2 with PHP Version 5.6.20-0+deb8u1 on an amd64 Debian 3.16.7 that is not connected to the internet. What I want to do is to authenticate users on a PHP website using the available ...
0
votes
0answers
15 views

how to know if nginx is serving the page I request?

I setup a centOS7 virtual machine as a local environment that maps to 192.168.33.10. Accessing the 192.168.33.10 or 192.168.33.10/index.php doesnt have a problem. Also, when I access 192.168.33.10/...
0
votes
0answers
8 views

Make client request using app pool identity (PHP running on IIS)

I posted this at Stack (https://stackoverflow.com/questions/61788595/authenticate-curl-request-using-application-pool-identity-php-on-iis) when I still thought I might be dealing with a software ...
0
votes
1answer
70 views

crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash function

I'm getting the following password error. I have PHP 7.2 variant(to php version 5.5 does not appear to me this problem ), the following code : function make_key($length) { $valid_chars = '...
0
votes
1answer
59 views

Does Gmail require TLS for receiving mail?

I am currently working on sending e-mail in PHP directly with stream_socket_client(). This is working pretty well so far. I am able to send HTML e-mail with a DKIM signature that passes all the tests ...
0
votes
1answer
24 views

Apache php fpm scaling

I have about 30k to 40k sessions per day on wordpress website, I have caching enabled, wp-optimize plugin I have php-fpm enabled my pool options is below: max-request = 200 process idle timout = 30 ...
0
votes
0answers
19 views

How do I block site redirects from injections ads?

I have a site where I have various advertisements from a few advertiser , and from time to time my site is redirected how many other porn sites etc ... I installed anti adblock script because I gain ...
0
votes
0answers
39 views

Migrate PHP website from Apache to Nginx

What are the implications of moving a site build in PHP 7 on a server running Apache 2.2 to another running nginx 1.12 (CentOS)? Is there any standard practice for doing this? Are there any ...
0
votes
1answer
94 views

Installing CORS on Ubuntu 18.0.4 LTS

I want to install/use CORS on my Ubuntu server 18.0.4 LTS for the Wordpress websites that I am hosting. Normally I just add the line in the .htaccess but that doesn't seem to work anymore. Any ...
0
votes
2answers
207 views

Unable to install PHP 7: error undefined symbol: crypto_pwhash_scryptsalsa208sha256_memlimit_interactive

I can not install install php on my server. I always have the same error : May 10 12:26:13 vps819983 systemd[1]: Starting The PHP 7.3 FastCGI Process Manager... May 10 12:26:13 vps819983 php-fpm7.3[...
0
votes
1answer
30 views

Is there some mechanisms in PHP to assign “less trust” to scripts in a given dir?

I've attempted to ask this (in different ways) many times without ever getting a clear, real answer, nor even seem to be understood at all. This has been a continuous worry and problem for me for ...
2
votes
1answer
59 views

How to compile PHP 5.3 and PHP 5.4 release x64 with Visual Studio 2008 SP1? [closed]

I have successfully compiled Apache x64 then I use PHP 5.3.29 and 5.4.45 release x86 on it and get error that DLL files are not a valid Win32 application. I installed Visual Studio 2008 SP1, Visual C++...
0
votes
1answer
50 views

mod_php is not installed on CentOS 7 with remi's php 5.4 - a bit of confusion

I have a fresh installation on CentOS 7 with httpd and following remi's wizard I installed php 5.4 as single version (I know it's old, but part of my requirements !!). My problem is that httpd cannot ...
0
votes
1answer
27 views

Why is the `+=` operator seemingly ignored in my PHP script? [closed]

Sorry for asking in the wrong category. Would post directly in SO if I actually were able: https://meta.stackexchange.com/questions/346772/i-dont-seem-to-be-able-to-register-a-stack-exchange-account ...
0
votes
0answers
36 views

PHP not loading specific extension if relative path is specified

I have a specific extension that won't load if I specific a relative path in the extension_dir parameter. If I specify an absolute path it gets loaded. I can't use absolute path because I often need ...
0
votes
0answers
42 views

PHP binaries are deleted every hour for no apparent reason and other issues

Since yesterday I am fighting with very strange issues on one of our servers. Environment: We use proxmox to run few LXC containers based Debian virtual machines. Yesterday night something happened ...
1
vote
1answer
46 views

PHP struggling under heavy load - “failed to prepare the stderr pipe: Too many open files (24)”

We're running a server with this software: - Plesk 12.5 - Apache 2.4.6 - nginx 1.11.1 - PHP 5.6 - Centos 6 - MySQL (MariaDB) 5.5.60 We've noticed that PHP repeatedly gives this error when our server ...
0
votes
1answer
49 views

Nginx magically set PHP_ADMIN_VALUE; Can't get rid of it

i'm trying to configure my 3rd webapp on my raspberry. I accidently pulled a nginx conf for this third site containing following lines: [...] server { [...] location ~.php$ { [...] ...
0
votes
0answers
25 views

htaccess redirection duplicating /foo/foo/foo

I'm digging all resources but cannot find the solution. My website has multiple languages. It is basically adding ?lang=cn etc. and I'm turning it to a fake folder via htaccess with following code. ...
0
votes
1answer
51 views

PHP loads extensions when called through CLI, but not through Apache

PHP for me only loads exensions perfectly when called from the CLI, but not when I load pages through Apache. For example, this is the output of php -m: [PHP Modules] bcmath calendar Core ctype ...
0
votes
0answers
43 views

Nginx+Docker+PHP-FPM SSL error

I have created a self signed SSL certificate , but I'm facing with this error in my NGINX error log when I try to access to the site via https : 2020/05/05 12:49:49 [crit] 6#6: *14 SSL_read() failed (...