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

DKIM verification fails when email sent from PHP mail() function

I'm currently running a Ubuntu 16.04 system with Sendmail and OpenDKIM. Sendmail is configured with the OpenDKIM milter, Apache is using a different account for each of the website this box hosts so ...
1
vote
1answer
15 views

How to prevent PHP on a virtualhost/website from writing to another virtualhost's/website's directory on the same Apache server?

I want to prevent virtualhost #1 from writing or reading to virtualhost #2 without losing writing access to the www-data at all (because the applications need to write to the directory). My current ...
0
votes
0answers
20 views

RHEL7 php7 upgrade can not find error_log

I have installed php7 on a RHEL 7.4 server with "channels". php is running, but I can not find the error log. There must be an error, but in: /var/log/httpd/error_log /var/opt/rh/rh-php71/log/php-...
0
votes
0answers
15 views

How to authenticate with client certificate and service certificate in php [migrated]

I want to convert a code from C# to PHP. In the c# script we have a SOAP client that authenticate with both client certificate and service certificate. The client certificate has a pfx file that ...
0
votes
1answer
13 views

Forward mail using qmail to multiple recipients dynamically

I am trying to forward an incoming mail to multiple recipients. The recipient's addresses are stored inside a mysql database, so I need to call a script to get the addresses before forwarding the mail....
0
votes
0answers
8 views

How to boost Wordpress with IIS 10 on localhost?

I got a copy of an entire WordPress website from a customer to work on it for maintenance, and it's getting slow, as other WP websites I've worked on. I used Xampp in the past however I changed to IIS ...
0
votes
0answers
24 views

php-fpm and nginx in single cause php-fpm crash

I want to run services written in php in cluster. So I'm using docker. Here is the stack: php 7.2 php-fpm docker nginx rabbitmq/redis/db/etc In local edvelopment, there is no problem to share ...
0
votes
0answers
27 views

Why do I have to add network card name in ipv6 link host address on linux when using php file_get_contents()? [migrated]

I have a question when I try to request an ipv6 link host address on Centos7. Here is my code. var_dump(json_decode(@file_get_contents('http://[fe80::852f:f5c7:15f1:d726]:8080/api/init/info', 0, $...
0
votes
1answer
17 views

How to setup a PHP API to work over HTTPS?

I use a simple API with PHP to get some values in JSON format, it is working fine in web browser over HTTP. I enabled SSL in mariadb with the certificates, but when I try my API using HTTPS, it says ...
0
votes
0answers
37 views

mysqli_real_connect(): (HY000/2002): No such file or directory

Well i'm facing this issue which happened after i installed httpd-mpm-itk and i tried googling and i couldn't find a similar issue as my problem. Here is my config.inc.php: $cfg['Servers'][$i]['...
-1
votes
0answers
8 views

exec(),shell_exec() not returing full output? [on hold]

i am running a command using php's exec() or shell_exec().The command runs properly in a shell but while running through the exec() or shell_exec() it gives half of the output. Following is the ...
0
votes
0answers
12 views

zend_mm_heap corrupted PHP Fatal error: Cannot redeclare composerRequire

We have a webserver where besides normal requests large files are being uploaded. Some requests (such as 1/10) are dropped. We than see following errors in the error log. ==> /var/log/apache2/...
-2
votes
0answers
30 views

Two windows servers for one site [closed]

This is a bit of a big question. First, I have two servers running Server 2016. On each of them I am running Hyper-V Virtual machines. Right now, I only have my DNS pointed at one of them, but I ...
0
votes
0answers
17 views

httpd hogging all memory until server crash

The server in question is used for processing data into reports, it has three cron jobs which execute every minute to check the process queue and if anything is found they'll keep running until the ...
0
votes
1answer
14 views

Can't set session.save_handler to memcache

NGINX + PHP-FPM 5.7.12 I'm trying to set my session handler to memcache, so I installed the module php-memcache, opened /etc/php.ini and changed the following lines: session.save_handler = memcache ...
1
vote
1answer
38 views

give apache ID permissions to list and CRUD files as OS users

I wasn't sure if this question belongs here or on SO. I can move it there if needed. In any decent Apache configuration, Apache will run as its own ID; www-data for example. And this ID will not have ...
1
vote
2answers
21 views

Using SQLite through PHP without completely disabling SELinux

I'm trying to access an SQLite file on a CentOS7 box using PHP and the PDO library. I was getting read-only errors just like this question - https://stackoverflow.com/questions/3319112/sqlite-read-...
-1
votes
0answers
18 views

PHP version is not updated after building and installing PHP from source

I have PHP 5.5.14 and I wanted to update it to 5.6.37. I downloaded PHP source from am1.php.net/distributions/php-5.6.37.tar.xz then ran ./configure, make and make install commands to build and ...
0
votes
0answers
18 views

How to rate limit with an api key (Apache/nginx)

I have an API in PHP and want to rate limit it into various tiers, with different tiers having different rates. Each user will be assigned a tier, and an API key for use in the URL. So for example ...
0
votes
1answer
23 views

404 error on Apache server [closed]

I have installed Apache, PHP5, and MySQL on my new Linux Lite install for my laptop. I have edited <Directory /> in apache2.conf to look like this: <Directory /> Options Indexes ...
1
vote
0answers
14 views

Nginx serving PHP file as download [duplicate]

I have a website with an index.php file (rhys.ddns.net/php/index.php). Whenever I try to access said file in my browser it is getting served as a download. I have checked my sites-enabled/default file ...
0
votes
0answers
23 views

Security Scan causing weird logs

So some time ago, I coded a website(PHP) and wanted to check for common web security vulnerability. I used Nessus and Burp Suite to scan for vulnerabilities in my website. The scan result showed no ...
0
votes
0answers
9 views

On a 504 - does the process continue?

I've got a PHP script that does a particular job (sends a bunch of emails) when a browser visits it. Every now and again that job takes quite a while and it times out. Last time this happened, it ...
1
vote
0answers
23 views

Trying to update PHP servers to PHP7-cgi (7.2)

I'm Trying to update PHP servers to php7-cgi (7.2) in my .htaccess file. Just not sure how exactly to edit the code, haven't been able to get it to work. Here is the code in the .htaccess file: ...
0
votes
0answers
38 views

php performance issues between two servers

I know this question might be too broad but I'm desperate. Prenote: Here I'm testing php with CLI but same difference occurs with Apache+PHP too. But to avoid Apache caching and other stuff I used ...
1
vote
1answer
55 views

Browser downloading PHP files instead of executing them. Webmin + NGinx

The Problem I attempted to upgrade from PHP 7.0 to 7.2 today and it resulted in websites on the server downloading through the browser instead of executing like normal. sudo add-apt-repository ppa:...
0
votes
3answers
32 views

How to setup website across multiple web servers (with load balancer)?

I am trying to use two web servers to run my website (as opposed to the one I use now). I can easily create another LEMP stack on my hosting provider (Digital Ocean) and setup a load balancer to ...
0
votes
1answer
30 views

DNS lookup failure for:

I installed my server with virtualmin, and I am using apache with php fpm. When I try to open my website I have this error : Proxy Error The proxy server received an invalid response from an ...
0
votes
1answer
40 views

invisible php process on linux

I have a php script running in an endless loop on my Linux server. I know it's running because it's the only script that does X, and X is definitely happening. However, it's not listed in crontab, and ...
0
votes
1answer
29 views

Load balance PHP-FPM with HAProxy resulting in service unavailable

I need to load balance PHP-FPM with two backend servers with HAProxy (with Apache running on those backend servers as well). I have this frontend: frontend fr_fpm bind *:9000 mode tcp ...
0
votes
1answer
64 views

Nginx says 404 not found, no error log

I am getting a 404 not found at nginx page, i get no error in nginx error log file too. server { listen 6269; server_name (domain); root /home/temp; index /_h5ai/public/index.php; ...
0
votes
0answers
22 views

Proxmox LXC networking

We have 5 physical machines hosted at OVH. Each of them have Proxmox 5.2-10 installed Machines are inside of OVH vRack. we have separate LXC for database, separate LXC with loadbalancer and several ...
-1
votes
0answers
30 views

How to enable php on all iis sites?

I have a iis hosted website with proper php setup and such. But now i wanted to make an other site along side the first site. When i added an other one on the same server it could read .html files but ...
0
votes
1answer
68 views

Cannot find php-fpm to for PHP 7.2 to install on Centos 7.5

Have created a new VM server for a project, it is running Centos 7.5. After following a large number of different articles online to try and get nginx and PHP 7.2 running on this box I cannot get the ...
0
votes
1answer
16 views

PHP Gateway Login Management Systen

Situation: Creating self hosted web services to share with friends on Linux machine. E.g. wiki, ownCloud, etc. Problem: Every web service requires individual logins. Troublesome. Question: Is there ...
2
votes
0answers
37 views

Connecting to a external exchange server via linux/php?

We have an SMTP relay available that we are using on windows servers. [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = email.relay.url ; http://php.net/smtp-port smtp_port = 25 ...
0
votes
0answers
4 views

PHP - The server requested authentication method unknown to the client [migrated]

I want to connect to a MySQL database from PHP but I can't because "authentication method unknown", I found many solution but all of them about creating a new user with the old password type, but ...
-1
votes
2answers
872 views

BASH-create a 'www-data' crontab that runs a PHP file

I need to get this to run in a cron file in /etc/cron.d/: */15 * * * * php -f /var/www/nextcloud/cron.php ...but, my scripts don't run. It's permissions are set to 644 and I need to create it with a ...
0
votes
0answers
26 views

Serving a php script through nginx that is already serving uwsgi python/flask

Here is my case: I am running a Flask application using the following setup: Ubuntu 16 Nginx uwsgi serving venv Everything works fine. However now I got a php component that I need to run that ...
0
votes
1answer
659 views

nginx stopped serving index publicly after installing php

Nginx was serving a index.html fine from /var/www/test/html/ from within the server and also when I curl'd the ip and port like some-ip:8889. Then I installed php because I was going to try serving a ...
0
votes
0answers
6 views

htaccess mod rewrite little issue [duplicate]

Helo, i'm trying to get some good results but no luck :( By mod rewrite i want to rewrite url from this: https://mysite.pl/praca/template.php?id=25&ogloszenie=pracownikow-gospodarczych-z-...
0
votes
1answer
52 views

Laravel Forge: Unable to create AWS EC2 instance in London Region

When I try to create a server on Laravel Forge for AWS in the London region I get the following error message: Whoops! There were some problems with your input. The server provider was unable ...
0
votes
2answers
32 views

changes in php.ini file being ignored

I am having a hard time with this. I am trying to increase post_max_size = 90M upload_max_filesize = 50M but my info.php is still showing default values 20M I am editing 100% correct file which is ...
0
votes
0answers
31 views

PHP-FPM pools of a domain are working non stop

My server OS is centOS. I use Apache for httpd. Every site runs PHP by own user. One of my sites (let's say that 504domain.com) gives 504 gateway error constantly. Restarting Apache makes the site ...
0
votes
0answers
13 views

Limit php to a site's directory in apache

My server has multiple vhosts. I would like to isolate php running in a vhost folder to that vhost's files. Each host has a directory in /www matching its domain name. So if a php script is invoked ...
0
votes
1answer
49 views

make docker container to listen requests from just another docker container

I have 3 docker containers (FrontEnd, Database, and ApachePhp) within the same Docker network. ApachePhp will be a web server (Apache + PHP) that I need to make visible only through the FrontEnd i.e. ...
0
votes
1answer
29 views

Apache24u / phpinfo: still showing old version

Ive upgraded the server from default apache 2.4.6 to the apache24u (https://centos.pkgs.org/7/ius-x86_64/httpd24u-2.4.34-1.ius.centos7.x86_64.rpm.html). when I check it via shell, I get the correct ...
0
votes
0answers
33 views

Basic Auth header params does not exist depending on url

Forgive me ahead of time for my lack of knowledge on this topic When I send a basic auth request (via header) to my url https://www.mywebsite.com, the PHP server variables such as "PHP_AUTH_PW" and "...
0
votes
0answers
21 views

Add seperate self contained php landing page to server running Django CMS

Completely new to Django and can't seem to find advice regarding this in the docs: In summary, there is a site that is built and managed with Django. I have a self-contained php landing page (with a ...
0
votes
1answer
50 views

Nginx config for symfony on ubuntu

I want to setup symfony with nginx and this config is working fine server { listen 80; root /src/web; location / { # try to serve file directly, fallback to app.php ...