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
2answers
18 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 ...
-5
votes
0answers
35 views

php, is Azure a viable option? [closed]

There are hundreds of php hosting services like A2, bluehost, godaddy etc. They are fully managed, and include mysql, free certificates, control panel, CDN, ftp, ssh, etc. Just upload your php, ...
1
vote
1answer
21 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
11 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"] ...
-2
votes
0answers
49 views

The mysqli extension is missing. Please check your PHP configuration [closed]

I have this error. I don't know what to do.Until today it worked fine.
0
votes
0answers
10 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
45 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
12 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
9 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
13 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
22 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://...
0
votes
1answer
34 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
14 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
0answers
13 views

WHM/Cpanel API for Laravel Project [closed]

I am going to do some stuff such as park/unpark domain, create the database and other WHM/Cpanelthings. But I couldn't find the proper SDK for it. Can someone explain the process? There are WHM API1, ...
0
votes
0answers
63 views

how do I use index.php as index document? [closed]

I have installed ISPConfig 3.1 on ubuntu 18.04 using following articles http://dalaris.com/install-and-configure-ispconfig-3-1-on-ubuntu-18-04/ using Hostname as domain.com And created new Sites ...
0
votes
1answer
31 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
11 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
12 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
5 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
20 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
55 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
14 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
17 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
31 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
80 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
51 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 ...
1
vote
1answer
49 views

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

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
25 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
26 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
28 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
23 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
12 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
23 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
50 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
21 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 (...
0
votes
0answers
17 views

Updating a package on php gives php7.3 is already the newest version but its not

I'm trying to update php7.3.13 to 7.3.17 on ubuntu 18.04 I have done apt-get update apt-get install php7.3 It said 7.3.17 package is unpacked but after restarting apache I still get 7.3.13 in ...
0
votes
0answers
10 views

What can I do about MailMimeParser getting this “conversion from `KOI8' to `UCS-4LE' is not allowed” error?

I use MailMimeParser to parse all incoming e-mails. I thought I had, after years of being annoyed by logged errors related to wrongly encoded e-mails, finally achieved a "perfectly solid" application ...
0
votes
2answers
50 views

Why does Load Average of my Linux hosting server keeps swinging from 6 to 33?

Lately, I've noticed a weird behaviour on my production server of a moderately high traffic WordPress website. (concurrent realtime traffic around ~1500) The server is capable: DigitalOcean 48GB ...
0
votes
0answers
33 views

Issue with PHP $_SERVER[“REMOTE_ADDR”] and openvpn

I have an openvpn server with public and static address 77.77.77.77, and a local client called 'julieta' running Centos with PHP and, 'julieta', has a full DMZ from the openvpn server; so when I put ...
0
votes
1answer
65 views

How to change file permissions with Cpanel or Filezilla for MantisBT or any file / folder? [closed]

I would like to install Mantisbt on a shared hosting account. I'm not a developer or network engineer myself but I found easy to follow instructions here: https://www.tmdhosting.com/kb/answer/re-...
0
votes
0answers
17 views

PHP FPM Very slow after some 20-30 minutes works after reload/restart (on high traffic website)

PHP is running very slow like loads forever. Below is the www.conf file values ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes ...
0
votes
1answer
15 views

php-curl and php7.3-curl installed but curl_init() is “undefined function” (Debian buster)

I have a problem with my web server since upgrading to buster. PHP doesn't seem to see the curl library : root@myserver ~ # php -r "curl_init();" PHP Fatal error: Uncaught Error: Call to undefined ...
0
votes
2answers
42 views

How can I install the imagick extension in PHP 7.0 on Debian Buster?

I've upgraded our company's webserver to Debian 10 Buster recently. Our website is using a legacy CMS that cannot run on PHP versions newer than 7.0. It requires the imagick extension to be present. ...
0
votes
1answer
139 views

OpenLiteSpeed file_put_contents Permission Denied Error

New to OpenLiteSpeed, I received a permission denied warning error when trying to write a file in the website subdirectory using file_put_contents() API from PHP. I thought perhaps I needed to adjust ...
0
votes
1answer
24 views

apache2handler Keepalive is still on even though I turned it off in httpd.conf

We're running centos 7, lamp stack 5.6 we send 17k sms per day among other things, like streaming, so the server is always busy. Some users complain about not receiving the SMS, the SMS gateway says ...
0
votes
1answer
52 views

Nginx rules for dockized linuxserver/dokuwiki on subdirectory path

I can hit the container by typing /dokuwiki but the assets and links are messed up. What I currently see Since PHP is included in the dokuwiki container I'm not sure what I need to add in the nginx ...
1
vote
0answers
17 views

How do I use another version of Php for an app served under a certain path with Apache?

I am on Debian Testing so Php 7.4 seems to be the current one. This is fine with me since most of my Apache served apps are fine however two of them are broken. One is Wallabag and the other one is ...

1
2 3 4 5
148