Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
1answer
19 views

Server slowing down day by day

I am using dedicated server for my php application. Server slowing down day by day after reboot everything goes normal. I cache my json resulst as files and serve them to clients , when everything ...
-1
votes
0answers
9 views

How do I change the default PHP base-version on ssh? [on hold]

I have Centos 7 and Virtualmin installed, with the tipycal php-fpm 5.4, rh-7.0, rh-7.1. rh-7.2 that you can choice between the versions you prefer for every virtualhost on Virtualmin control panel, ...
0
votes
0answers
29 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
9 views

PHP 7.1x MSSQL connect fails with SQLAllocHandle on SQL_HANDLE_ENV after Plesk update

I have a couple of servers running WISP stacks on Windows 2016 server using Plesk 17 when update #53 was applied. Up until last night all were functioning perfectly. Both servers are fully updated ...
0
votes
0answers
28 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
14 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
9 views

How to Resolve Failed Loading XDebug 2.7.0 on Windows Server with PHP 7.0 [on hold]

I'm attempting to setup PHP 7.0 on a Windows Server 2019 instance. I downloaded XDebug 2.7.0 and saved it in the ext subdirectory of my PHP folder. When I review the output of php -i, I receive the ...
0
votes
1answer
59 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
0answers
10 views

Which error tracking system for PHP application choose? [closed]

at this moment i selecting error tracking system for PHP application. At this moment i found only Errbit which suppose to be used with this library: errbitPHP. What i want: Self-hosted application ...
-2
votes
0answers
621 views

install mod_php71u for Apache 2.4 in Rhel7 Enterprisee [closed]

I am having a hard time to figure out how to install the PHP7 modules for Apache 2.4 (httpd) in RedHat7. I've been looking in google and different sites, however is kind of hard to find documentation ...
0
votes
3answers
71 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
37 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
14 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
7 views

Change version of PHP that CLI is using? [closed]

I have a CloudLinux VPS where accounts are running ea-php72 (selected in MultiPHP Manager). I am trying to install Drupal using Composer, which requires the php extension fileinfo. The extension ...
0
votes
0answers
21 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 ...
-1
votes
0answers
14 views

Connecting webserver to local database server [duplicate]

I have a web server running PHP and another server for database in the same data center connecting on the same rack. What is the correct way to connect PHP to database server to reduce latency and ...
0
votes
0answers
15 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
23 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
20 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
15 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
90 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
31 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
52 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
43 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
38 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
110 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
10 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
48 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
35 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
26 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
30 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
10 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
50 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
21 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
34 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
33 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
78 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
80 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
143 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
30 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
44 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
20 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
18 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
75 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
64 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
31 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
58 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 ...