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

WAMP Server: Apache PHPMyAdmin login screen not showing

I have recently setup a WAMP server (Windows, Apache, MySQL, PHP) and i'm having trouble setting up PHPMyAdmin. I didnt use XAMPP for any of this, i installed the services directly onto the server. ...
0
votes
0answers
22 views

Passing PHP headers to NGinx Proxy

I have nginx setup as a proxy in front of APACHE, which in turn talks to PHP-FPM. It turns out, nginx is cutting out (or better to say not passing through) headers that are set directly in PHP via ...
0
votes
0answers
172 views

SQLSRV PDO driver on PHP 5.6 with Docker

I am trying to move a legacy application (CakePHP 2.5.5) running on PHP 5.6 to a Docker container but I can't get the PDO driver for Microsoft SQL Server to work. I have been searching around for ...
0
votes
0answers
44 views

SAFARI error white page with symfony and htaccess with php-fpm all work on chrome,IE, firefox

I have a problem i just finish and upload my site but he not work with safari got white page i check log [Thu May 16 07:56:17.534196 2019] [authz_core:debug] [pid 5671] mod_authz_core.c(820): [client ...
0
votes
0answers
49 views

nginx: Redirects URL's to extensionless pages not working on home page

I'm trying to automatically redirect pages with a PHP extension to a non extension page version e.g example.com/page.php to example.com/page. I've managed to get this working for all pages except my ...
1
vote
0answers
15 views

Apache2 executes PHP only implicitly, not when explicitely opened

I am facing a rather strange behavior. I have placed a simple phpinfo test script (see below) as index.php in the root directory of my domain. When I open it as www.example.com in the browser, it ...
0
votes
0answers
60 views

Was My Wordpress Site Hacked? [duplicate]

I just checked my WordPress site (Wherehouse MKE) and there is this bar that runs across the top of the page and when you click anywhere on the site it wants to open a spam page. Lucky the ...
0
votes
3answers
105 views

PHP is stopping a web-based script after 60 seconds

I'm working in a Bitnami installation of Apache2 and PHP (5.6) and we have trouble with a script that's taking longer than 60 seconds to complete. This script in question is failing after 60 seconds, ...
1
vote
0answers
60 views

configuring subdirectory in a wordpress installation for proxy pass to docker application

I have a wordpress installation using Nginx as the web server, now there is a need of adding moodle as the LMS to the same site, as a subdirectory, for example; www.mysite.com is where the wordpress ...
1
vote
0answers
19 views

Very long TTFB and high CPU on VPS after Hypervisor Migration

I manage a VPS for my company with a small e-commerce website and a few low-usage Wordpress blogs and the like. My Service Provider migrated me to a different Hypervisor last Thursday, and since then ...
0
votes
0answers
25 views

Liunx based Azure PHP App service is missing MYSQL Driver

I'm trying to host WordPress website on Azure Linux App service. I got this error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress I searched ...
0
votes
0answers
17 views

Invoice Ninja Installation Possible Permissions Error?

I recently installed a new instance of Invoice Ninja on a CentOS 7 VM, I followed the documentation exactly, which outlines that I should follow this guide, which I did, however, I am presented with ...
0
votes
1answer
33 views

Which apache/httpd (root or www-data) user, who load /etc/php.ini when webserver startup?

I want to secure my php ini access right. We know that apache/httpd master process, is owned by root. Then it spawn new child process in www-data user. If /etc/php.ini loaded by apache as root user, ...
0
votes
0answers
7 views

Server mail always go to gmail spam folder - ubuntu/php/sendmail [duplicate]

I'm having this issue for the past 2 days, I'm trying to send emails from my own server and domain name but it always get captured by spam filters. Here's the source of one of my test emails: ...
0
votes
1answer
27 views

PHP creates files as root user instead of nginx

I've set up a new server on Debian Stretch. The web server user is nginx: ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1 nginx I have already ...
0
votes
0answers
24 views

How to redirect to www using nginx, certbot and Symfony config?

I want all the pages of my website to redirect to www..I am using the default Symfony 4 configuration for nginx, and also added certbot to manage the https certificates. server { server_name www....
-2
votes
1answer
328 views

trouble installing php-ldap on debian 9

I'm trying to install php-ldap on a mediawiki image that uses php:7.2-apache for my Kubernetes deployment. I've already ran apt-get update and tried adding the ppa. apt-get install php-ldap php7....
0
votes
0answers
54 views

PHP is looking for php.ini in C:\php rather than C:\Windows

My monitoring software (Dynatrace) messed up php on my web servers. For some reason all of my IIS websites are loading the php.ini file from C:\php-5.4 instead of C:\Windows. From phpinfo(): ...
1
vote
1answer
62 views

What is the major difference between AWS Elastic Beanstalk & Docker. Which one should i use?

I just started learning about Amazon elastic beanstalk, and it seems very good and useful. However, it seems like Docker can be used for the same thing. AWS EB let's you create environments in Node....
0
votes
0answers
57 views

AWS ElasticBeanstalk and Laravel CPU 100%

I have a Laravel 5.6 application running in a t2.small instance managed by ElasticBeanstalk. After every 2 or 3 minutes the status transitions to "Warning" due to 100% memory usage. In this picture ...
1
vote
1answer
79 views

PHP Not working through Symlinks (CentOS, Nginx, PHP-FPM, PHP7)

When I use this config, PHP files work in the base folder (/var/www/dmcblue.com/www). But I added a symlink there as data from /usr/share/phpMyAdmin. Files are accessible (like http://[IP_ADDRESS]/...
0
votes
0answers
243 views

Receiving “Failed to store CSRF token in session! Probably sessions are not working properly” when trying to open phpMyAdmin on IIS

I'm trying to run phpMyAdmin for the first time on a sever running 2019 windows sever, however when I try to open localhost/phpMyAdmin I receive this error displayed on the web page "Failed to store ...
0
votes
1answer
16 views

Permission error from Supervisor when full PHP path not specified

I've compiled PHP from source on Debian Stretch in a docker container. I have added this entry to my Supervisor config: command=/bin/sh -c 'QUEUE=orders/create APP_INCLUDE=/var/www/html/jobs/...
1
vote
1answer
51 views

50 instances of PHP killing my web server?

I was having an "out of memory" problem earlier. I just left top open and it froze on the screen right as it ran out of memory. i have a single user listed with about 50 instances of "php" listed. how ...
1
vote
0answers
74 views

nginx pfp-fpm - “No input file specified.” when serving files from /home/user/**

I have a setup where the user uploads multiple PHP sites to a projects folder in the user's home directory (/home/{user}/projects). And the sites are individually configured; serving things like ...
0
votes
0answers
32 views

Default root for server but different for location

I'm trying to have a default root location for the server block as in server { root /foo/html index index.html } so that all requests by default are going to be served from /var/nginx/html ,except ...
0
votes
1answer
44 views

PHP Script and correct permissions for user to change everything

The network configuration doesn't allow access to FTP from outside the building. There's one user that need to upload and change files from a specific folder so I've installed TinyFileManager https://...
1
vote
0answers
17 views

Apache appears to be ignoring my .htaccess file, despite mod_rewrite being enabled and AllowOveride all

System specifications: Amazon Linux AMI release 2017.03 Apache/2.4.33 (Amazon) PHP 5.6.36 DNS is handled by Cloudflare Here are my VirtualHosts: <VirtualHost *:80> DocumentRoot "/var/www/...
0
votes
0answers
28 views

How can OpenLDAP support SSHA512 [duplicate]

I have one OpenLDAP server and need to implement SSHA512 because I have to import data from Zimbra and most of them are in SSHA512 which my OpenLDAP doesn't support (Default is SSHA). I'm not a pro in ...
0
votes
0answers
11 views

In IIS 7.5, rewrite rule is not being processed - results in 404 error

We currently have a rewrite rule with the Match defined as: Req URL: Does not match pattern Using: Regular Expressions Pattern: &.*\.(css|gif|png|js|jpg|jpeg)$ Action Type: Rewrite Properties: ...
0
votes
1answer
90 views

What's the differences between PHP versions from pkgs.org and remi

I need to install PHP 7.3 on my CentOS 7.5 which already has PHP 5.4 and 7.0.27 versions but I saw difference in installing commands and since I'm not a professional I need to ask before begin ...
0
votes
0answers
26 views

configure nginx for PHP in subfolder

I wish to serve an old app that lives in a folder - the folder contains everything needed - index.html, various .js and a "server.php" backend. index.html works fine, but I get 404 for the calls to ...
0
votes
0answers
92 views

Disable PHP stack traces in Apache logs?

I've run across an in-house PHP application which occasionally crashes during user authentication and dumps a stacktrace into /var/log/apache2/. Problem is it logs the username and pass in cleartext. ...
0
votes
2answers
41 views

PHP7 can't find executable even though PHP is working

I installed php7.1 using the iuscommunity repo. It works fine and I can run php files via apache normally e.g. http://example.com/test.php, however I cannot find the executable, if I run: php -v -...
0
votes
1answer
151 views

PHP mail() function working from command line but not working with apache

My problem is that php script which has to send mail doesn't send it if I run it in browser, but works in cli. This doesn't help PHP's mail() function working in CLI but not in Apache In both /...
0
votes
0answers
136 views

php-cgi.exe use high CPU, but which application?

I have Windows Server 2012 R2 x64. IIS and Maestro Panel. I have several wordpress sites in IIS. Sometimes php-cgi.exe causes high CPU usage. In .net applications I can detect which application pool ...
3
votes
2answers
508 views

Docker with apache2 and PHP 5.6: mysqli & pdo extension installed, but not enabled

So Im trying to set up a docker server to use with some old applications that arent compatible with PHP 7 FROM php:5.6-apache RUN apt-get -y update && apt-get upgrade -y # Install tools &...
1
vote
1answer
102 views

PHP FastCgi running as IUSR instead of IIS APPPOOL/xxx

An IIS website is run via an Application Pool which has its Identity advanced property set to ApplicationPoolIdentity. The website runs PHP scripts via a FastCGI handler. These scripts try to write to ...
0
votes
1answer
48 views

What is causing our PHP script to stall?

I have a long-running CLI cron job written in PHP. After an inconsistent period of time, the script stops writing output to its log file, indicating that it has stopped executing. However, the script ...
0
votes
0answers
30 views

PHP-FPM stops seeing classes / functions at random

I am experiencing a strange issue with php-fpm (7.0.33). At random times it starts throwing errors like: PHP message: PHP Fatal error: Uncaught Error: Call to undefined function untrailingslashit() ...
0
votes
1answer
24 views

PHP gets EHLO for mail() function from nginx server_name - error

I'm using nginx with regex inside virtualhost name to catch subdomain name to work with that later: server_name ~^(?<subdir>(\\w|\\-)*)(\\.)?(domain\\.org)$; I have discovered that the mail() ...
1
vote
1answer
110 views

Unable to install mysqli on centos 6.10

I am having issues installing mysqli on our centos 6.1 server after upgrading mysql. Here is what I get after running yum list installed | grep -i mysql : mysql.x86_64 5.1.73-...
0
votes
0answers
146 views

PHP-FPM (>=7.1) + Debian9 + SystemD: don't reload (graceful) with kill -USR2

I'm trying to configure a php-fpm server with Debian9 and SystemD as good as I can, but I have found a problem that drives me crazy. I have searched and researched all as I can, and nothing, I have no ...
0
votes
1answer
32 views

My PHP Site code structure is visible to my clients when they request a directory

A folder in My Site I use apache web server PHP on the back end apache is running under the user www-data Permission for my folders are 755 When users request a php page all is well, but when they ...
0
votes
1answer
60 views

Locating required service to restart

So my Centos 7 server had several php.ini files and i managed to locate the one my website using through the command php -i |grep "php.ini" And edited it, But now im lost trying to know the service ...
0
votes
1answer
105 views

php-fpm generated a lot of load when resetting opcache, rendering server unresponsive

In recent weeks we experienced a negative phenomenon when deploying code: the server becomes unresponsive sometimes for a few minutes. Here's an example of the load on the server when this happened: ...
0
votes
0answers
13 views

How to diagnose wamp services sporadically slowing down to a freeze?

I have a web application running on a wamp server (Windows Server 2008 R2 Service Pack1, Apache 2.4.4, PHP 5.4.12, MySQL is installed but an outside DB is used instead by the app) which suffers from ...
0
votes
0answers
134 views

PHP-FPM - performance tuning and CPU usage

I have a web application written in Laravel / PHP that is in the early stages and generally serves about 500 - 600 reqs/min. We use Maria DB and Redis for caching and everything is on AWS. For ...
0
votes
0answers
12 views

Non-terminating php-fcgi causing lack of memory

I am running a quite large WordPress multisite installation with apache2 and php-fcgi. We are executing php-fcgi via a wrapper script because some time ago, we needed to support different versions. I'...
1
vote
2answers
150 views

Apache Tuning for 512GB RAM

Use Case: API Server Cluster Optimized for JSON Data Submission I have a distributed application sending info to API servers that are slaves of a MySQL 8 master. Applications do full initial sync (~...