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
58 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
1answer
35 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 ...
1
vote
1answer
216 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
60 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
391 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
61 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
80 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
35 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
200 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
55 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
28 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
169 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
27 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
82 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
55 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
51 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 ...
2
votes
1answer
213 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
116 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
95 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
36 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
222 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
110 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
35 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
68 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
658 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
76 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
19 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
33 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
44 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
506 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
48 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
922 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
134 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
51 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
193 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
37 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
154 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
60 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 %{...
1
vote
0answers
128 views

Nginx: how to rewrite HTTP_HOST keeping the original URL unchanged

A bit of background: When abc.mywebsite.com (or xyz.mywebsite.com and so on) is requested, it received by haproxy, which replaces the Host header with main.company.net and also adds the X-Custom-...
0
votes
1answer
191 views

Apache-PHP slow page in one virtual host causes performance degradation or timeout on other

I have multiple PHP applications running under different virtual host on an Apache server. Each application uses MySQL as backend. Each application uses different MySQL servers in the same data center....
0
votes
0answers
158 views

NGINX Proxy Pass with Login - Not Basic Auth

I am running NGINX with a proxy pass and basic authentication. The problem: The proxy pass is forwarding to an AppDaemon that is running a custom application that I am unable to modify. I would like ...
0
votes
2answers
243 views

CentOS 7 can't install php module

I have installed php 7.2 on centos 7. I tried to install the module redis but it seems id doesn't want to download. Here is the error of the command yum install php-pecl-redis : I tried installing it ...
1
vote
0answers
146 views

AppEngine - Client closed keepalive connection

I have deployed my Symfony 4 app to Google App Engine (Flexible environment). The build seems to have worked, but loading the app on in Chrome results in error: Oops! An Error Occurred The server ...
0
votes
1answer
18 views

unixODBC in Apache broken after enabling Kerberos on Centos7

Had unixODBC working very well. Decided that we wanted to implement Kerberos authentication to lock down different sites in Apache to certain user groups. Once this got enabled, connecting to the ...
2
votes
0answers
121 views

CentOS phpMyAdmin connecting from external ip?

I'm trying to connect to phpMyAdmin which is running on my CentOS server from my pc with the following phpMyAdmin.conf: <Directory /usr/share/phpMyAdmin/> AddDefaultCharset UTF-8 <...
0
votes
0answers
18 views

Python “alternate malfunction”

I have a web application that runs over a Centos Server. It was written in php and python. Suddenly without modification something starts to works in alternate and randomly way (one time fileB.php is ...
0
votes
1answer
59 views

Migrate legacy PHP to PHP-FPM

I wonder if I could have some feedback from some people that did the migration from php to PHP-FPM. The issue I have is that I have lots of scripts on the service. Some written by customers and I cant ...
0
votes
1answer
56 views

Best way to restrict/manage PHP apps to use my postfix?

I want to allow PHP apps to send mail but under very restricted conditions. And I don't want to allow sendmail-like command for PHP apps (I'm using chrooted PHP and it's too much headache), thus I ...
1
vote
2answers
763 views

Installation of pecl_http on PHP 7.3 / Debian 9 Stretch fails

I am trying to install pecl_http in PHP 7.3, however, there is an error: root@dev:/etc/php/7.3/mods-available# pecl install pecl_http downloading pecl_http-3.2.0.tgz ... Starting to download ...