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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
16 views

php error installing imagick

System - CentOS 7.5.1804 PHP Version - 7.0.3 So, I'm trying to install Imagick in order to be able to render/make an image off the first page of a PDF. I'm tried to understand how it is setup, but ...
0
votes
0answers
8 views

Repercussions of setting the IIS responseBufferLimit to = 0

I'm running a PHP application (Moodle) under FastCGI in IIS 8.5, Windows Server 2012 R2 and PHP 5.4. There are two VM server nodes in the setup using an F5 load balancer. I am using Wincache for the ...
0
votes
1answer
15 views

Some time lamp server not loading files

I have ubuntu18.04.1, php7.2, apache2.4 and two files: index.html <form enctype="multipart/form-data" action="upload.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="...
0
votes
1answer
23 views

simple SNMP trap parsing with PHP

I need to extract a single bit from an SNMP trap, which reports the state of eight digital sensors. The OIDs of the sensors are: ".1.3.6.1.4.1.42505.1.2.1.1.7.x" where x can be 0 to 7. The hex ...
0
votes
1answer
30 views

How much of a security risk is the mail() function for WordPress websites?

On a VPS with Debian 9 I have a few working https WordPress sites served using Nginx + PHP 7.0 + MariaDB. I also have a mail server with Postfix + Dovecot. Everything is working ok. Yet, I'm very ...
0
votes
0answers
8 views

OsTicket users reply via email not added to the ticket thread [on hold]

We are using Osticket and we are facing an issue the users replies via emails are not added to the ticket thread! Can you please help us to solve this issue?
0
votes
0answers
25 views

Cannot add PPA Please check that the PPA name or format is correct

I 'm using ubuntu 14.04 and i want to upgrade my php version from 5.4 to 5.6 Cannot add PPA: 'ppa:ondrej/php'. Please check that the PPA name or format is correct i install the certificat using ...
0
votes
0answers
17 views

Malicious Index.php files to remove or not to remove [duplicate]

My wordpress website was hacked badly. I need some help if it is possible. I noticed that serveral index.php files (around 10 index.php files) in my website was modified. All the codes inside the php ...
0
votes
0answers
20 views

Send mail via cronjob/php, RHEL

I am trying to send an e-mail by a cronjob using a php script. The script itself works fine when executed in a shell. When it is run by cron, the attachment is missing. OS is RHEL 7 Cron entry : 30 ...
0
votes
0answers
22 views

How can I configure Nginx to use PHP in CGI-mode?

The Nginx tutorial shows PHP 5 being used in FastCGI mode on Windows, but PHP 4 doesn't support php-cgi.exe so it must be run in traditional cgi mode, There are two ways to set up PHP to work with ...
1
vote
1answer
20 views

PHP-FPM and PHP execution yields different results

I have used a docker container with the embedded php server for development. Now we are creating a test environment and we wanted to use php-fpm. Everything went fine and the whole thing works as ...
0
votes
1answer
28 views

Nginx downloads php files in subdirectories

I've searched all over the internet and read all questions and answers and tried them all but no help. The problem is, whenever I try loading a php file using nginx in any subdirectory it downloads ...
0
votes
0answers
12 views

nginx, php7.0-fpm and laravel, not able to set it up when the url has a prefix which the server doesn't have

I am trying to set up a laravel installation in docker with php-fpm and nginx server on a separate container. The issue is the laravel is installed in a path like /home/apps/foo and the url I need is ...
0
votes
0answers
44 views

Yum: How to Fix or Remove Conflicts

I'm not sure how I got to this state, but now every time I try to run yum, it ends with the following messages: --> Finished Dependency Resolution Error: httpd24-tools conflicts with httpd-tools ...
0
votes
1answer
32 views

How to automate PHP 7 installation on Ubuntu 16.04 in Docker? [duplicate]

I am trying to create a Dockerfile to install PHP 7 on Ubuntu 16.04. This is supposed to fully automate the whole installation process. However, during the installation, it prompts me to select a ...
0
votes
1answer
15 views

PHP7 extensions aren't reading correctly from config file

I'm setting up a WordPress installation on my Windows server. I have an IIS site set up to look at the correct folder. Right now, in the folder is a php_info file so that I can see which PHP is ...
-2
votes
0answers
35 views

Server waiting time is increasing if the 300concurrent users are trying to call 2APIs simultaneously in Android [duplicate]

Our server configuration is 4GB RAM and 20GB HDD with 2 core processor. Now the issue I'm facing is when more than 300 concurrent users try to call 2 APIs simultaneously, the waiting/response time is ...
2
votes
2answers
208 views

PHP 7.2.8 PDO Fails to Connect to MySQL 8.0.12 (GA) in AWS EC2 LEMP Stack

I'm testing a new LEMP webserver built with Ubuntu Server 18.04 LTS, NGINX 1.14, PHP 7.2.8, and MySQL 8.0.12. It is an AWS EC2 instance using the official Canonical AMI. Web and PHP work as intended ...
0
votes
0answers
12 views

Are the contents of $_SERVER['HTTP_USER_AGENT'] always English characters [migrated]

I have looked for a list of all $_SERVER['HTTP_USER_AGENT'] but could not find one that was robust. I want to know if the contents of the $_SERVER['HTTP_USER_AGENT'] are always unicode English ...
1
vote
1answer
35 views

PHP mail() not working with Postfix on ubuntu 16.04

OK, I realize this question has been asked, but the issues relating to my specific issues weren't brought up. Basically, I barely know what I'm doing in the server, but I need to configure it to send ...
0
votes
1answer
25 views

File uploads > 100KB hang with no apache errors

Originally posted on stackoverflow, but deleted and moved here. Apache 2.4.6 -- PHP 7.0 -- CentOS 7 VM Memory: 8GB -- CPUs: 2 -- Available HD: about 200GB Having a strange problem where file ...
0
votes
1answer
28 views

Unable to fork children even after exiting previous ones

I have a CentOS VM on which I'm running a php socket server, that forks on every connection. The child process does its job and then exits. The parent is also waiting to reap the dead zombie process (...
-3
votes
0answers
15 views

Protect site from server / cPanel penetrations / injections [duplicate]

A hacker penetrated my cPanel and modified files and code on my site. I have a log report from hosting service provider. It goes like this: .....frontend/paper_lantern/filemanager/upload-ajax.html?...
1
vote
1answer
65 views

All administrator page login are not working and showing “Service Unavailable”

Let assume I have websites aaa.com, bbb.com and ccc.com aaa.com - working. aaa.com/about - working. aaa.com/services - working. aaa.com/administrator - Showing the below error message. "Service ...
0
votes
1answer
34 views

Write permission error in /tmp in python call to MySQL on Centos 7

I have a python (3.6 anaconda distribution) scrip on Centos 7 which at some point executes a simple query of the following structure import MySQLdb cursor = cnn.cursor() # cnn is the open ...
0
votes
0answers
12 views

exec() failing with return code 11

I have the following PHP script that isolates my issue: <?php error_reporting(E_ALL); ini_set('display_errors', 1); $code = 0; $output = array(); exec('"../vendor/bin/PdfGenie" code.rq', $output, ...
2
votes
2answers
57 views

PHP session timeout

I'm having some troubles with the session timeout in a PHP application, I suspect the timeout is given by code but I prefer checking the infrastructure first. The application I'm running is pure PHP 5....
0
votes
2answers
61 views

Apache with PHP running CGI mode: The php executable processes itself, what do I need to change in the config

I'm trying to install a pre-Iraq-Surge 4.4.9 PHP in a modern Apache 2.4.6 and want to run it in CGI mode. The current configuration is as follows: The PHP executable is /usr/local/php-4.4.9/bin/php ...
0
votes
0answers
14 views

SetEnvIf doesnt work from htaccess

I'm trying to overcome the infamous missing Auth header problem with Apache, PHP and CGI. If I set this in a virtual host, I can successfully read the Bearer token from the Authorization header. ...
0
votes
1answer
49 views

Finding the source of a 301 redirect (through .htaccess or wp_redirect()

One of my interns applied a 301 redirect on one of the site's pages (domain.com/nice-page) to another page (domain.com/pretty-page) and I'd like to remove that redirect. The problem is that he is ...
-1
votes
0answers
24 views

Using PHP 7 for CentOS web version while CLI is already 7 and web is currently 5.6

In my centos , php -v shows 7.2 version But phpinfo() shows 5.6 That mans both versions are available and CLI version is using php7 and web version 5.6. How to upgrade the web version to PHP 7
0
votes
0answers
11 views

Connect WebpackDevServer to PHP-FPM via Docker

i have a production docker-compose environment running a Nginx container proxying every PHP request to a PHP-FPM container (PHP 7.2). It's been months since i started using Webpack 4 for building my ...
-2
votes
1answer
20 views

List of most popular server side web hosting languages? [closed]

I am looking for some online resources providing statistics, or at least ranking, of server-side installations based on the language (and maybe version and environment). We are trying to choose the ...
-1
votes
1answer
16 views

PHP can't connect to 127.0.0.1 or localhost to galera but can iva mysql cmd

I am having an issue with MySQL where I can't connect via localhost or 127.0.0.1, I get "Access denied ". On the same box if I use mysql -p -h localhost -u mysuser -p'mypassword' or mysql -p -h 127....
1
vote
1answer
96 views

Our website is being blocked and we don't know why

I hope this question has never been asked before. Our website is being blocked by certain routers or ISPs (we can't tell). We are hosted in Singapore (AWS) and we use Cloudflare to host our DNS. Our ...
0
votes
1answer
44 views

How to connect to Cloud SQL MySQL database from App Engine?

I am currently setting up an open-source marketing software called Mautic on App Engine Flexible Environment. However, I'm having trouble with connecting the App Engine to the Cloud SQL MySQL database ...
1
vote
1answer
94 views

DokuWiki Search very slow after upgrade

I've upgraded my dokuwiki version on Ubuntu 14.04 "Detritus" to "Release 2018-04-22a "Greebo"" recently. During the upgrade, I also had to upgrade PHP version to "5.6.36-1+ubuntu14.04.1+deb.sury.org+...
0
votes
0answers
27 views

Sendmail from PHP mail() deferred, finds recipient's Cloudflare IP

I'm guessing this is a small issue, but I haven't been able to find someone with the exact problem before. I have a mailserver on a domain, let's say mymail.com. In Cloudflare, this domain's DNS ...
1
vote
0answers
35 views

PHP upload_max_filesize different values from phpinfo()

I am trying to setup Apache and PHP on Amazon Linux AMI. I installed PHP 7.2.5 and Apache. I want to be able to upload files upto 100M, so i edited the /etc/php.ini file and set upload_max_filesize ...
0
votes
0answers
35 views

DKIM Errors with gmail - dkim=neutral (no key) and other issues

I'm trying to upgrade my PHP DKIM from Sha1 to Sha256 and getting errors. I tried many things (as follows), basically gmail fails to authenticate my signature with all sorts of errors (as follows). My ...
0
votes
0answers
55 views

Linux : Undefined symbol: php_pdo_register_driver in Unknown on line 0

When i add the extenstion extension=pdo_sqlsrv.so in php.ini file in linux server with PHP v7.0 it's giving following error undefined symbol: php_pdo_register_driver in Unknown on line 0 Please ...
0
votes
1answer
59 views

Apache on Debian Stretch Keeps Getting Segmentation Faults

I have several servers running Debian Stretch and I keep running into an issue where the process will hit a segmentation fault and stop. It will not return to service until I manually run service ...
0
votes
0answers
12 views

mysql error on moved tikiwiki installation

while move my tikiwiki installation from one to another server i ran into this issue: i moved my tikiwiki(12.2) installation from one server(Apache 2.2.26, PHP 5.3.16, MySQL 5.5.25a, Mac Server App 1....
0
votes
0answers
52 views

Received POST request has keys and values with unknow encoding

My PHP server is receiving strang post requests, I tried to detect the encoding type with no success. but the affected users are all mobile users. I printed the post value into log with var export ...
2
votes
1answer
99 views

Apache ab - testing with 1000 concurrency

I am just trying to gather some information on server capacity and ran these apache ab test. I tested with 1, 10, 100, 1000 concurrency over 1 minute. The result below is for 1000 concurrent users ...
0
votes
0answers
15 views

PHP Pages uses wrong MySQL user

For 10 years now I have been using the same system for some device maintenance. Part of it is a simple web page that returns an id when devices are installed for the first time. This page is called ...
0
votes
0answers
39 views

Nginx not executing PHP file, but executes others (shared config)

Now I know this is a common question, but I can't seem to get Nginx to execute a php file. What's funny, however, is that I'm including a common php config that works just fine for other sites/files (...
0
votes
0answers
39 views

xtcommerce index php is corrupt

I have install 30 days trial version of XTCommerce5.1 and running it with php7.0 and mysql 5.7 on localhost. I have downloaded licence.txt from my mail and put it in PROJECT_ROOT/lic directory.I have ...
0
votes
1answer
44 views

Phpmyadmin setup “allow from” and “.htaccess password” not working together

Im following this tutorial from digitalocean and i have sucessfully setup the require ip and allow ip so that only my ip address can connect to the webpage. However, on the last part setting up the ...
-2
votes
1answer
27 views

PHP Script is showing error [closed]

I am trying to write web services for data exchange between php-mysql server and android device. But service is showing some errors and not working. Here is the my code <?php include '...