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.

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

Data captured by PHP and AJAX appears and then partially misses [on hold]

I have a PHP based web form on my site and all data entered is gathered in a file db shown via AJAX. If user enters their mobile number in form like +123456789 the webpage shows the entered value (...
0
votes
0answers
39 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 (~...
0
votes
0answers
8 views

Mariadb docker container sqlstate[hy000] [2002] no such file or directory error [on hold]

I have developed an web application that consists of a app, a website and a mariadb database. I put them together in a docker-compose file and tested it on my local computer and it works fine. I tried ...
0
votes
0answers
14 views

PHP landing page on Apache server Cisco WLC controller

I have a landing page done on php along with SQL database for WIFI user registration along with Cisco wireless controller. The WLC is redirecting the user to the landing page for authentication / ...
0
votes
0answers
14 views

cPanel something create 1GB of hidden files on my server [duplicate]

It's very urgent. Today all my live apps stop working because of low space. I have 160gb of space but my projects are only 10gb. Now I expand DigitalOcean space to 360gb and every 10 mins some process ...
0
votes
1answer
24 views

Developing with Git and SSH access on AWS Elastic Beanstalk

We are using EC2 to develop one of our application and we are using Git and SSH to access our EC2 server and deploy files. Unfortunately, AWS breaks some data, changes IP addresses and make other ...
0
votes
0answers
11 views

PDOException: could not find driver after server reboot

When rebooting my server (RHEL6, Apache 2.2, PHP 7.2) I always get the error "PDOException: could not find driver". Apache is started automatically via httpd init script. After an apachectl stop | ...
0
votes
1answer
16 views

Different scripts create directory with different owner/group [on hold]

I have 2 PHP scripts running on APACHE. Each one creates a directory. The issue is that one script creates the directory with owner/group as root/root and the other oracle/dba. Users are unable to ...
-1
votes
0answers
9 views

PHP+Nginx posting large form but not everything reaches the backend for processing [closed]

I've been struggling for a while with this but I'm lost. I checked the solutions that are presented on Increase PHP-FPM's max upload/post size but they didn't work. Situation is the following: I ...
1
vote
1answer
26 views

CentOS7 PHP 5.6 missing from ius-community repo

In the past I have installed the ius-community repo and then installed php56u like so: yum install https://centos7.iuscommunity.org/ius-release.rpm yum install php56u Now that I have come to do the ...
0
votes
0answers
15 views

Composer user/owner for php software

I'm new to composer and got some questions about the rights and users. Old way without composer: I add a new domain (f.e. www.example.de) within my plesk and need to create a ftp user for this domain....
0
votes
0answers
18 views

Nginx X-Accel-Redirect

I made php for download files and i want to use nginx headers. PHP: header('X-Accel-Redirect: /download/' . ltrim($file, '/')); NGINX: location ~* ^/download/(.*?)/(.*) { internal; set $...
0
votes
0answers
10 views

even after apt-get update E: Unable to locate package php5-memcached

I received a error "PHP Fatal error: Class 'Memcache' not found in " so I tried to install memcache using the following command "sudo apt-get install php5-memcache" but it throws the following ...
1
vote
0answers
23 views

Apache Webserver Config issues in Windows

I'm trying to configure an apache 2.4 webserver for data entry that will feed into a SQL server. I've got the individual processes up and running but I can't get the webform to load. I just get the ...
0
votes
1answer
66 views

how to pass more than 9 parameters in nginx

this rule location / { rewrite ^/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)$ /index.php?param1=$1&param2=$2&param3=$3&param4=$4&param5=$5&param6=$6&param7=$7&...
0
votes
1answer
27 views

Installation of specific PHP version

I don't know if it is just me or anyone else came across this issue? I want to install PHP 7.1.14, so I've installed the REMI repository on my CentOS 7 and enabled the php71 repository. However, when ...
0
votes
0answers
11 views

PHP redirect with conditions [migrated]

Hello I am having a bit of trouble with my php code. I have a Moodle site and I am able to grab user information. What I am trying to do: My Steps of madness Grab first and last name of user (...
1
vote
0answers
51 views

PHP curl broken in 5.6 vs 5.4 (Centos7)

I run a simple php script using curl on Centos7 like: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://1.2.3.4:80/hello"); $result = curl_exec($ch); print_r(curl_errno($ch)); This works ...
0
votes
0answers
32 views

How to deny php files and allow some with Nginx?

I use on my site Drupal 8, the library "shariff-backend-php". https://github.com/heiseonline/shariff-backend-php When my server was on Apache, I had to add to my htaccess file the following line, ...
0
votes
1answer
31 views

openlitespeed mongodb extension installation for lsphp

I'm trying to use mongodb with lsphp. Currently I've manually compiled mongodb.so following this and I can see mongodb.so at /usr/local/lsws/lsphp7/lib/php/extensions/no-debug-non-zts-20160303 . Now, ...
0
votes
0answers
16 views

mod_status shows requests “\x16\x03\x01” from 127.0.0.1

Requests like "\x16\x03\x01" appears in the list of mod_stauts "Request" column. when SSL content is requested on non SSL port or vise-versa. But here the requests are being generated from localhost! ...
-1
votes
1answer
54 views

Can my server handle 12,000 database requests per-minute? [duplicate]

First of all, Apologies if this is a silly question. I've never really had to manage servers and databases, on a "large-scale", that is. ANYWAY, on to the question. I am trying to figure out if our ...
0
votes
0answers
12 views

proxy:unix not working with httpd in centos 7

i am using httpd as web server and php language using fpm but all i get blank page with no errors conf file : <Directory /home/admin/web/eslam.eslam/public_html> <FilesMatch \.php$>...
2
votes
1answer
79 views

How to retain domain name in url - Configuring Virtual host in apache 2 with aws linux instance

I'm trying to configure virtual host in apache2 in ubuntu instance hosted with aws and successfully redirected the requests to the appropriate website. Further clicking on the links on the index ...
0
votes
0answers
25 views

Centralized redis store php session - Load balance environment

I had a bad experience with Redis as Centralized session Store and would like to know if anyone has gone through this situation. And some tips on how to adjust this problem. My environment is as ...
0
votes
0answers
17 views

Large file upload to mod_php vs. FastCGI PHP

I am sending a large file via a PUT request to an Apache webserver with PHP. Target is a php file, that reads the data and writes it to a directory. the development server has PHP included as a ...
1
vote
1answer
33 views

Why does Debian's PHP sessionclean script touch all open files first?

I'm studying /usr/lib/php/sessionclean at the moment. There is one thing I don't fully understand. What is the purpose of touching all opened session files before cleaning up? I understand that this ...
5
votes
2answers
88 views

Amazon EC2 instance is getting spammed with different PHP filenames

Our server has been attacked recently and looks something like the following in the logs: [Mon Feb 18 09:18:43 2019] [IP_ADDRESS] script '/var/www/ynm.php' not found or unable to stat [Mon Feb 18 09:...
0
votes
1answer
19 views

Postfix sends plain text emails from PHP but rejects html

After moving to another host my site stopped sending E-mails (UTF-8 HTML). But I'm still able to send text emails like these: echo test | mail -t me@example.com -s test php -r 'mail("me@example.com",...
-1
votes
1answer
26 views

Need to know where the location of PHP-extensions and others

I need to know where I can find the location of the list below : include_path = /path/PHP-pear/ extension_dir = /path/PHP-extensions/ mime_magic.magicfile = /path/PHP-magic....
0
votes
1answer
47 views

Running web server along side Grafana with reverse proxy

I followed these steps below to setup Grafana on Ubuntu 18.04 https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-grafana-on-ubuntu-16-04 One of the steps is to setup reverse ...
0
votes
0answers
15 views

Sending mail with sendmail - not sending

I have apache2.4 web server with PHP on Debian server. I noticed that my PHP mail() function doesn't send any mail. Looked at the spam folder as well. I cleared all the mail logs on my server and ...
1
vote
1answer
30 views

PHP performance benchmarking between Windows and Linux [closed]

I'm trying to look around for any reliable PHP performance benchmarking test between Windows Server vs Linux. To be specific, this is what I'm going after:- PHP 7.2 Windows Server 2012 Linux Ubuntu ...
1
vote
1answer
37 views

Apache 2.4 + PHP-FPM + Dynamic ProxyPassMatch

Expect result: If I go to http://foo.local/index.php, file /var/www/html/foo/index.php will be executed. It will be similar if I go to http://bar.local/index.php, /var/www/html/bar/index.php will be ...
-4
votes
1answer
24 views

directory protection in Ubuntu 14.04 Server [closed]

I want to run the following on a single ubuntu 14.04 server - Asterisk - PHP/Apache/ MySQL This server will be offline at customer's location. I want to protect these folders in a way that if my ...
0
votes
0answers
107 views

Apache? ERR_INCOMPLETE_CHUNKED_ENCODING 200

I've been trying for several days to find out why the following error is happening to me: GET https://www.******.com/ net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) I have also looked at some ...
0
votes
0answers
39 views

Postfix - smtp.mailfrom domain of a php app

How to setup Postfix/PHP to have the smtp.mailfrom in the form of wordpress@wordpress-site-domain.tld? I have multiple users on the server, and each one has one or more WordPress installations, but ...
0
votes
0answers
13 views

OC_Config - not found at /var/www/html/owncloud/apps/user_ldap/lib/helper.php

after upgrade from owncloud 8.2.12 to 9.0.11. I am getting the below error. {"reqId":"o3/oM69onopc/fzHyOQw","remoteAddr":"","app":"PHP","message":"Error: Class 'OC_Config' not found at /var/www/html/...
0
votes
0answers
13 views

Elastic Beanstalk not running correct PHP Version

Can someone please help me, I don't understand what is going on. I just set up a working environment and the image I chose for the machine was PHP 7.2. When I try to deploy to the environment I am ...
0
votes
0answers
28 views

How does RemoveHandler work under PHP5 and PHP7.2

I have 2 linode servers each hosting a website. Site A runs under Ubuntu 14.04/Apache2/Mysql/PHP 5.59, Site B runs under Ubuntu 16.04/Apache2/Mysql/PHP 7.0, and I am using Webmin/Virtualmin to manage ...
0
votes
0answers
102 views

Setting up a Laravel project on AWS Fargate

I am trying to run a Laravel Docker Project on AWS Fargate. The project builds and runs successfully on local machine. I am able to browse to http://localhost:8000 and it works just fine. However, ...
0
votes
0answers
42 views

limit_req_zone for the whole PHP

I'm protecting wp-login.php via below rule: location = /wp-login.php { limit_req zone=one burst=1 nodelay; include fastcgi_params; fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; } My ...
0
votes
1answer
101 views

AddType application/x-httpd-php .html stopped working

I have the following line in .htaccess AddType application/x-httpd-php .html .htm And it used to work for years to treat html pages as php, however recently I noticed it is not working anymore, ...
1
vote
1answer
50 views

RewriteRule is not working when index.php is clicked

RewriteRule is not working when index.php is clicked. Below is my code : RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^home$ /index.php [L] ...
1
vote
0answers
28 views

glusterfs for wordpress hosting

I've seen many tutorials recommending glusterfs for distributed web application hosting. Is this really the best practice for small scale load balancing? It seems the latency issue is slowing us ...
0
votes
0answers
23 views

Automatically ban IP addressed using rule based on GET request

I'm setting up my first website on Ubuntu 18.04 using Apache and I've noticed the following in my apache error log on a daily basis: 94.102.49.125 - - [07/Feb/2019:11:32:55 +0000] "GET /muieblackcat ...
0
votes
0answers
25 views

Couldn't understanding the following trace

We have a number of Android app works on different APIs from our main domain.They all are images apps. Recently after spike in app traffic, our APIs are going down frequently, I though it was my ...
0
votes
1answer
65 views

PHP FPM .conf per site vs server PHP pool performance tunning

I saw this article how to tune the PHP FPM https://medium.com/@sbuckpesch/apache2-and-php-fpm-performance-optimization-step-by-step-guide-1bfecf161534 this article shows Excel sheet to calculate ...
2
votes
1answer
44 views

Multiple RewriteRule in htaccess not working

I am very well aware that such type questions have already been asked many times but I think mine is a different one. I am a newbee to .htaccess. RewriteEngine On RewriteBase / RewriteCond %{...