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.

learn more… | top users | synonyms

-1
votes
0answers
22 views

After upgrading server to PHP7, connection reset

I have Kali Linux Rolling installed. Today have installed the php7 by official repostiory, in addition of mod2php for Apache2 (libapache2-mod-php7.0). After removing only the mod2php for PHP 5.6 ...
0
votes
0answers
8 views

Exim can't send email (unable to set gid or uid forcing real = effective)

I've a debian Jessie and Exim4. I can't send email from php, error given is: unable to set gid=33 or uid=0 (euid=0): forcing real = effective I've tried to search for this problem but nothing helps ...
0
votes
0answers
27 views

Site unreachable due to attack - xmlrpc.php

Today our server was not reachable. It was returning a 502. We are running Nginx 1.10 on Ubuntu 14.04. We also use PHP7 (only, no PHP5). In the logs, we got the same error from the same client (2 ...
0
votes
2answers
38 views

How to install an older version of php (5.2.17) in Linux?

I want to study some security vulnerabilities in php 5.2.17, but I can't install it from source, because then I need also all the older versions of all the other application which have something to do ...
0
votes
0answers
12 views

Elastic Beanstalk and Worker Tier? (PHP)

I'm trying to setup my app that's hosted on EB with a worker that will run some basic cron jobs to feed an RDS database with data that the app consumes. I deployed this cron.yamlat first: version: 1 ...
-1
votes
0answers
7 views

Uploading codes to wamp [on hold]

I am trying to start with basic, in controlling the on board LED connected to pin 13 of my Arduino UNO through web server, without any shield. My objective is to connect my Arduino to the internet. I ...
1
vote
1answer
38 views

Nginx & PHP in a subdirectory

I have an app behind nginx. But i need a specific path in this app redirect to a Wordpress Blog Example : example.com/ -------> Redirect to my app example.com/whatever/ -------> Redirect to ...
0
votes
1answer
22 views

php unable to connect to MySQL via SSH tunnel

I have executed both commands via SSH with no error and than when I try to connect to the MySQL server via SSH tunnel I get no results even if I do a simple query like select * from table. I get no ...
-1
votes
0answers
11 views

get user data from html form and php to create a text file save in path [on hold]

I had a small problem with php fopen and fwrite. I am going to capture user data that key in in form and write to a text file using php. How can i do this? Following are my index.html <form ...
-1
votes
2answers
22 views

php to limit included file to access below and upon directory tree

I am trying to find solution for this problem for days. I have structure like this. index.php /app /plugins/ /users/%site%/functions.php /other stuff all requests goes to ...
-2
votes
0answers
28 views

Remove same php code from all php files [closed]

I need to remove everything between following tags in all php files using ssh <?php $rfghoh = $rfghoh=$yuoopi-1; ?> Thanks
-1
votes
1answer
46 views

Removing 1 line of code from all php files

I can see same code under all php files. Starting from <?php $rfghoh = '*f%)sfxpmpusut)tpqssu6 And end $rfghoh=$yuoopi-1; ?> I am just looking for script using which only first line of ...
1
vote
1answer
21 views

Permission Denied for fastcgi_pass using PHP7

I'm running LEMP with PHP7.0. I've got this in my server block fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; But when I open the site, it returns a 502 Bad Gateway. Below is the error log. *1 ...
-2
votes
0answers
29 views

How might I give secret keys to a php web page without making them readable by the apache user?

I am developing a web site which runs on a generic LAMP stack. Consider these two PHP files /web_stuff/phpbin/secrets.php /web_stuff/public_html/index.php Apache is runs as the user www-data and ...
0
votes
0answers
28 views

Redhat 6.8 - Where to install php-mssql

I tried following tons resources online to install php-mssql on Redhat 6.8 by using the Extra Packages for Enterprise Linux (EPEL) repo and it says that "No package php-mssql available". I made sure ...
0
votes
1answer
14 views

How to log request forwarded to fpm at Nginx

How to configure Nginx to log requests send to php-fpm into log? Goal is to have e.g. script path information ofter Nginx location etc. have been applied to.
1
vote
3answers
113 views

AWS WordPress site - OOM kills Apache

This question was originally asked on StackOverflow.com, and I've duplicated it to the more appropriate ServerFault.com site. The original question, which I've voted to close, can be found here I ...
0
votes
1answer
66 views

Build PHP7: different openssl versions

This is the displayed information in phpinfo() regarding openssl: Why are the versions different between the Library and Header version? openssl was compiled like this: ./config ...
0
votes
0answers
13 views

IIS 7.5 & Joomla very slow TTFB response

I have a Joomla site (Joomla! 3.4.1 Stable) running on Windows & IIS that takes almost 11 seconds to even respond to any request. Other subdomains (sub.domain.com) respond almost instantly but ...
0
votes
0answers
11 views

How to overload package_name in Chef cookbook using AWS custom JSON?

I never worked with Chef and OpsWorks before. What I'm doing, I'm trying to overwrite some Chef conf to use modern PHP 5.6. I wrote a JSON for Layer PHP App Server { "mod_php5_apache2": { ...
0
votes
0answers
13 views

Should PHP FastCGI be running multiple instances on windows?

Im running PHP under iis 8.5 on Windows Server 2012. The server runs asp.NET without a hitch. Pages are rendering in well under a second, but PHP is not running so well. It takes upwards of 40 seconds ...
0
votes
1answer
51 views

Nginx php5-fpm varnish taking high CPU. Load average is over 32

I'm on a server with the following config: 32 GB RAM 12 core processor and it's running single wordpress on nginx, varnish, php5-fpm, fastcgi. Everything was running fine, but suddenly after ...
0
votes
0answers
9 views

Laravel real time data add and send update from mysql

I have been developing a system which is on laravel, i need a few knowledge on technology i am not sure of which should i follow. On my laravel i have an end point link which hits whenever someone ...
1
vote
1answer
29 views

Secure AD Access

I was just trying to access and Active Directory-Server via php (ldap) to be able to use Windows credentials for a Website Login. I did this using xampp on my standard Windows connecting to a Windows ...
0
votes
0answers
6 views

link to a specific section of a js controlled page [migrated]

I have tried to look for this, but I am not sure exactly how to phrase what I am looking for, so please excuse me if this is a duplicate question. I have a .php page with 5 divs that are link ...
-1
votes
0answers
16 views

Running home website through IIS on server itself OR via virtual machine [closed]

I have a home server and currently have some code on a webhost for a database that only I use. I would like to bring the code (PHP) onto my home server to save on cost (as only I use the site its ...
0
votes
1answer
18 views

Windows server 2012 IIS 8 php data post upload failure to mysql

I'm getting a php data upload fail when attempting to transfer data up to a mysql database from a html5/webgl built app off of Unity. All of the data downloads work regardless of the upload issue. The ...
-3
votes
0answers
39 views

what is the best FREE server hosting site that alows php [closed]

hello i am trying to find a goooud site for server hosting i used to do it myself from my server but my parents said that i can not use there internet for it (i am 15) i started using firebase but ...
2
votes
0answers
90 views

How to verify network quality before running important benchmarks?

I have multiple CentOS servers around the world. They all are running a PHP script that tests the latency of some services once per minute. The problem is that sometimes these servers have local ...
0
votes
1answer
20 views

Why is apache writing two access log outputs per request?

We are currently running a apache2/mod-php site on docker, deployed to google kubernetes. In order to leverage the severity level filtering of google cloud logging I've created a LogFormat in our ...
0
votes
0answers
9 views

Monit for PHP7 connection failed

Trying to get monit working for PHP7 but getting a connection error. Here is the config file: check process php7.0-fpm with pidfile /run/php/php7.0-fpm.pid group phpcgi start program = ...
0
votes
1answer
14 views

postfix/opendkim not sign email from php on second domain

I have two domains, called them example1.com and example2.com on example1.com all emails sent with dkim sign. on example2.com emails from php sent without dkim sign, but if send email from console, ...
0
votes
2answers
108 views

White Screen - PHP 7 on Ubuntu 16.04 fails to render scripts

I can't run PHP scripts on my localhost, the browser renders a white screen. If I view the source of the page I can see the contents of the PHP file visibly. Using: $ sudo apt-get install ...
0
votes
1answer
49 views

%CPU at 99% when cronjob runs php script every minute

I am using a debian server and for some reason when I run this php script using crontab every minute it says that I am using 99% of the %CPU with the php command (in the cronjob the command is php) ...
1
vote
1answer
28 views

PHP-Files magically serverd with a leading TAB. Debian Wheezy Apache PHP

I got a weired behavior on my apache, php setup on a debian wheezy system. Discovered while I tried to create an image with php and output it directly. It failed permanent and the browser said sth. ...
-2
votes
0answers
34 views

LAMP and nodejs on the same server

I am having a PHP laravel application and a nodejs application. The nodejs application is used for sending push notification to user browser in conjunction with socket.io .Since PHP is not a better ...
0
votes
0answers
39 views

PHP $_SERVER contains incorrect values

We have a login portal on our site and $_SERVER['SERVER_PORT'] and $_SERVER['HTTPS'] aren't returning the correct value. The thing is that we are not getting any response for $_SERVER['SERVER_PORT'] ...
0
votes
0answers
14 views

PHP-CGI not found by Apache

I'm trying to configure Apache to use PHP-CGI. Here is my php cgi script located in /var/www/cgi-bin #!/bin/sh PHP_FCGI_CHILDREN=3 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=5000 ...
-1
votes
0answers
4 views

“$ is not defined” jQuery bottom with PHP include [migrated]

They are good practices put jQuery the bottom of the page, before the </ body>, but when you have an include PHP in the middle of the page and in this include I have that jQuery code like this: ...
1
vote
0answers
33 views

pecl install pecl_http fails - upgrading to php7 and http.so makes trouble

Similar issue: pecl_http failed to load So I wanted to upgrade to PHP7.0 and I believed all was fine. But I think I was missing somepages packages because i.e. I was not able to login into my ...
0
votes
0answers
5 views

How do I get to write exim delivery result in mysql

Good evening. I have such a scheme. The main server and multiple mail servers. Each mail server installed exim is realized through sending phpmailer. Logs are parsed delivery in php and then recorded ...
0
votes
1answer
35 views

Nginx always searches index.php in the wrong directory

I have a web root directory pointing to /var/www/html. I have several subfolders in /var/www/html where I host different projects. Example: /var/www/html/chatserver When I try to access http:// ...
0
votes
1answer
29 views

Installing GD Library on Centos 6.7 and PHP 5.4

Versions: centos-release-6-7.el6.centos.12.3.x86_64 PHP 5.4.45 Installed GD using yum: $ yum install php54w-gd Installed: php54w-gd.x86_64 0:5.4.45-2.w6 Restarted: $ service httpd ...
1
vote
0answers
30 views

Soap error - failed to load external entity

I have a PHP-script which uses SoapClient that connects to an API and runs methods. It works on all the different servers I have run it on previously but when I tried it on a server I get the error: ...
1
vote
1answer
40 views

Sendmail dsn=5.0.0 Service unavailable when sending mails by PHP to yahoo

I got question regarding sendmail, I already searched for similar questions but couldn't find anything which was helpful to me. I am currently using a server (Debian with LAMP Stack) with sendmail, ...
0
votes
1answer
34 views

php.ini not being loaded [closed]

I have been trying to configure my Apache server all day, however I am having major issues with getting a php.ini file to be loaded. When I try to connect to my database I get this error: Call to ...
0
votes
1answer
31 views

A Website in my Centos 6 server is picking incorrect PHP version

I have a CentOS 6 server that has PHP 5.6.20 installed: # php -v PHP 5.6.20 (cli) (built: Apr 2 2016 08:28:23) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend ...
0
votes
0answers
10 views

error: found a non-fatal phpLDAPAdmin Bug

i just install openldap with phpldapadmin. but when i go to monitor menu i found: is this actually something can be solved? anyone ever solve this issue before? Thanks, AnD
0
votes
1answer
10 views

PHP suhosin view dropped variables?

suhosin enabled. suhosin dropping request/get variables. The log just tells me everything except the original value of the dropped variable. ALERT - dropped 1 request variables - (1 in GET, 0 in ...
0
votes
0answers
8 views

Prestashop recommended configuration for php and Apache [duplicate]

I have a site built in Prestashop. It receives pretty high traffic Visits 23015 Unique Visitors 16767 This is volume of traffic that I get per month. Currently PHP memory limit is set to 128MB. I ...