Stack Exchange Network

Stack Exchange network consists of 174 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
1answer
6 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
0answers
8 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
0answers
10 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
11 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 ...
0
votes
1answer
20 views

PHP performance benchmarking between Windows and Linux

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 ...
0
votes
1answer
27 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
22 views

directory protection in Ubuntu 14.04 Server [on hold]

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
44 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
22 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
10 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
11 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
15 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
31 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
28 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
38 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
39 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] ...
0
votes
0answers
20 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
16 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
20 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
55 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
37 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 %{...
0
votes
0answers
14 views

Update a website after deployment

I have hosted my PHP website on a server. In course of time, I would like to develop my site locally and apply those updates periodically(every month or so) to the live site. These changes include ...
1
vote
0answers
42 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
19 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....
-1
votes
0answers
28 views

HTTP Flood DDoS attack causing bottleneck (server resources are plenty) [duplicate]

I'm experiencing HTTP Flood attack (by 1000s of proxies) on my following webserver setup: NGINX Reverse Proxy (SSL) > Apache > PHP-FPM. NGINX is setup with 50000 workers and other appropriate config. ...
0
votes
0answers
22 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
53 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
27 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
12 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
23 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
15 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
20 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
29 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
73 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 ...
0
votes
0answers
20 views

Exclude folder with deployer.php

I have a symfony project that every time I make a change I use the deploy. Now I need to add a wordpress project in the web folder and I do not want it to be affected by the deploy. I wanna exclude ...
0
votes
1answer
44 views

Install or Upgrade to PHP 7.2 from 7.0 on Debian 9

I am trying to install or upgrade whatever suits best from PHP 7.0 to 7.2. I'm facing below while running sudo apt-get update. Would appreciate if someone could let me know how to proceed with this. ...
0
votes
0answers
15 views

What is the most important hardware spec with PHP's readfile function? [duplicate]

I have a PHP script that serves files via the readfile() function on an Ubuntu server with PHP5. I would like to speed up the process, but I am not sure which system requirement will help me to ...
1
vote
0answers
30 views

MBString Segfault with apache2 ubuntu 18.04 Laravel 5.7

I am working on a script API with Laravel 5.7. When I try and run a command on the API, I get the following segfault segfault at 7ffc466e9ee8 ip 00007f2adb4144ed sp 00007ffc466e9ef0 error 6 in ...
0
votes
2answers
21 views

PHP Upload_max_filesize for different domains?

I have various domains hosted on one server - however they all seem to load from the same PHP.ini. I want the different domains to be able to upload different filesizes, for instance, our public ...
1
vote
1answer
22 views

Should I add `/dev/urandom` into PHP `open_basedir`?

My system is centos 7.4,with Apache 2.4.6 and PHP 5.4. I have following setting in /etc/php.ini open_basedir =.:/tmp/:/var/lib/php/session/ session.save_path = "/var/lib/php/session" session....
-1
votes
1answer
30 views

Is there any security issue when I set `apache` as the only owner of websites files and folders? [duplicate]

My server is centos 7,with php 5.4,apache 2.4. My website locate in /var/www. As for apache is the only one user read or write in /var/www,I set all files and folders owner and group to apache: ...
0
votes
1answer
43 views

remove php extension on url

I have tried many ways to remove my php extension but unable to do so, here is what I'm trying to achieve. https://google.com/users/login.php > https://google.com/users/login Sounds easy but I can't ...
-1
votes
1answer
34 views

NGINX location block to fastcgi process URL segments as URL parameters. How?

I am trying to understand how to get this location block to work as desired. ## TESTING MOD REWITE FROM APACHE... location /beta9/projects/project/ { try_files $uri $uri/ /beta9/projects/project/...
0
votes
0answers
22 views

nginx save every request every made including headers

I want to set up a nginx rule that will log every request ever made on my site including cookies. For example for a single php script I can get the full request body with this code: print_r($_SERVER);...
0
votes
0answers
30 views

NextCloud slow behind Proxy/ReverseProxy

I have only one public IP, so I ProxyPass a Subdomain from my Webserver (Apache @ Ubuntu) to my NextCloud-Server (Apache @ Ubuntu). Everything works fine, except it's very slow (for example on my ...
0
votes
0answers
22 views

'File not found.' after switching to php fpm (apache, ubuntu server 18.04 LTS)

I know this question has already been answered mutiple times, but the answers are almost all diffrent and are sorta confusing. I have tried alot of answers but none of them work. I follow the answer ...
1
vote
0answers
13 views

PHP - Soapclient - Basic Auth -> SERVER->REMOTE_USER

We use a PHP Soap-Webservice on a 1und1-Server. If i call the Service like $client = new SoapClient('https://server.com/test.wsdl', array('login' => "tuser", 'password' => "tpass", '...
-3
votes
1answer
126 views

How to install multiple PHP versions in Virtualmin 6, Debian 9 [closed]

By default Debian 9 comes with PHP 7, but I was interested in PHP 5 for older websites as well. I tried following/adapting this guide (not virtualmin specific) https://pehapkari.cz/blog/2017/03/27/...
1
vote
1answer
31 views

Encrypting LAN http traffic

I have two droplets at digitalocean. Both servers are LEMP, however one is completely blocked (http & https) with a firewall. I want to make HTTP requests between the two servers, however there is ...
1
vote
0answers
27 views

Install Zend Debugger or Xdebug for PHP 7.0 on RedHat 6.10 (64bit)

I'm trying to install Zend Debugger or Xdebug on RedHat 6.10 for PHP 7.0. I have tried the Zend Debugger extension for PHP 7.0 provided by Zend.com at http://www.zend.com/en/products/studio/downloads-...