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

When I create a droplet, how can I leave it active for just 1 hour?

I'm creating droplets when needed via the DigitalOcean API v2. As I'm just barely launching the app, I think it would be cheaper to launch droplets when needed instead of paying for 24/7 access. That ...
-1
votes
1answer
15 views

Why Zabbix still says “At least one of MySQL, PostgreSQL, Oracle, SQLite3 or IBM DB2 should be supported.”?

At begin of setup, Zabbix shows the following error: At least one of MySQL, PostgreSQL, Oracle, SQLite3 or IBM DB2 should be supported. I already have a site working, and this have connections to a ...
0
votes
1answer
13 views

How to bind subdomain to XAMPP site on Windows server that's also running IIS? [on hold]

I've got a Windows Web Server 2008 R2, which is running quite a few web sites under IIS. Then I made the terrible mistake of asking a freelance contractor to write another site for me. I don't know ...
0
votes
1answer
2 views

PHP cant connect to postgreSQL in Centos 7 Selinux

After migration to a new VPS and trying website on new server(Centos 7), Selinux somehow prevents http from accessing Postgresql: pg_connect(): Unable to connect to PostgreSQL server: could not ...
0
votes
0answers
19 views

Nginx: unexpected 404 page in php

This is from my NGINX configuration file location / { index index.html index.htm index.php; try_files $uri $uri/ /profile.php?nno=$uri&$args; } So, when file does not exist on the server, Nginx ...
-2
votes
0answers
25 views

Unknown Host error when I am connected to internet [on hold]

I am using windows 7 and wamp64 to create new php project and new virtualhost. My problem is it is working only when I am not connected to internet. Whenever I connected to internet it is giving me ...
0
votes
0answers
8 views

How intensive is PHP's session garbage collection [migrated]

If I configure session.gc_* such that probability of the GC running is 1% or greater, how intensive is that? Does it slow the site down for the request where garbage collection is happening? If so, is ...
0
votes
0answers
8 views

apache postfix trying to change user “from” address from apache to domain account

This is the same question as of apache sendmail: trying to change user "from" address from apache to domain account but its for postfix. User did not actually mentioned what he did with ...
0
votes
0answers
26 views

CentOS 6.7 can not install php-pecl-memcached module

I have a Vagrant box using CentOS 6.7 with PHP 5.6 and Apache 2.4. I have installed the memcached server, checked if it runs echo stats | nc localhost 11211 but when trying to install the Memcached ...
-1
votes
0answers
17 views

Script sending mails from our server [duplicate]

I apologize if this is asked many times. My OS is CentOS and postfix with Plesk 12.5 I found that one PHP script is sending mails from our server. Strange this is that its sending from our domain ...
0
votes
1answer
115 views

How To Fix Padding Oracle (CVE-2016-2107) On Ubuntu/Apache/PHP

I am trying to fix CVE-2016-2107. I consulted several sites, which do not seem to provide a clear answer for all cases: I use Apache2 2.4.12 with PHP 5.5.26. I ran: apt-get install openssl libssl-...
0
votes
0answers
19 views

Nginx returning 404 even though it executes a PHP script which returns http 200

I have a Laravel application (PHP) which when hits a specific URL: /media/1920/1080/565a2f1b4dad50.89312442_a1247a009b30f83db379b4d84ed13132565a2f1b4db019.92277002.jpg Which loads an image from a ...
-2
votes
1answer
46 views

PHP displaying blank files while Apache shuts down when being started

I recently setup a web server and installed TLS on it with Let's Encrypt. It worked perfectly until the server crashed and started displaying blank PHP files instead of executing them. When I looked ...
-1
votes
0answers
20 views

php mail() function taking too much time to execute on centos6 server

I have written a small code to check the speed of my server. BUt it takes almost 60 seconds to finish execution. <?php $start=time(); $to = "test@gmail.com"; $subject = "This ...
-1
votes
0answers
8 views

The FastCGI process exited unexpectedly 0x00000001

Problem with my IIS setup in Windows Server 2012 R2. Here is the error screen I am getting: I've tried folder permissions, running php-cgi.exe manually (which produces no errors), installing ...
-1
votes
0answers
10 views

Weird Website Issue (index) [on hold]

I typed in my domain name, and it brings me to a index of all the files in my website. Also, if I do my domain.com/main, it brings me to the layout of the website with buttons, but not the background ...
0
votes
0answers
10 views

Install PHP 5.3 on current Debian

Is there any easy way to get an old PHP-Apache version (in my case 5.3.*) to run on a current Debian? I found this: Install Previous Version of PHP Package from Debian Testing Using Apt But it doesn’...
-1
votes
0answers
11 views

application(or apache) is not getting loaded after some time of inactivity

I am having a PHP web based application which is running on Apache 2.2. The issue is, if I put my application in to an idle state for some time the application is not responding after that. The idle ...
0
votes
1answer
33 views

Server being spammed with a lot of POST requests

I am getting a lot of POST requests to my server that look like this. 5.113.41.160 - - [20/Jun/2016:16:05:20 -0400] "POST / HTTP/1.1" 200 9451 "-" "-" 46.52.87.170 - - [20/Jun/2016:16:05:27 -0400] "...
-1
votes
1answer
25 views

PHP Issue in error.log

My website cannot be found when I search the web. So I decided to go into my error.log to look if I could find a solution. This is what I found: [Mon Jun 20 07:24:31 2016] [error] [client 37.26.128....
0
votes
0answers
26 views

Error message in error log

First Question. I'm trying to work on my website but it can't connect to the internet server for some reason. (Safari can't connect to server) Second Question. This might be related to my first ...
0
votes
0answers
9 views

Use different PHP version on particular directory of virtualhost. LiteSpeed webserver

Title says it all. Using Litespeed Web Server Standard 5.1.4. I have virtual host configured: http://sv1.domain.com/subdir-1/ http://sv1.domain.com/subdir-2/ http://sv1.domain.com/subdir-3/ ... ...
1
vote
2answers
29 views

PHP parse error syntax error, unexpected end of file

I keep getting this error when i was on a LEMP setup nginx 1.10/PHP 7 and i thought it was because of PHP 7 and now i setup a new server with nginx 1.4.6/PHP 5.5.9 2016/06/19 15:45:18 [error] 4094#0: ...
1
vote
1answer
30 views

Rewrite URL but have php read old URL

In my platform, each user has their own config file. The file is named by the subdomain they created. Example: user1.domain.com user2.domain.com user3.domain.com The system reads the url via $...
0
votes
0answers
35 views

PHP “mysqli.so: undefined symbol: mysqlnd_connect in Unknown on line 0”

I have been trying to get PHP CLI (7.0.7 on Ubuntu) working together with mysqli, but without success. I keep getting the same error message when starting it: mysqli.so: undefined symbol: ...
0
votes
0answers
6 views

Android webservice uploading [closed]

Need to upload php webservice for my android application to a live server. Which will insert and update data in MySql database . I need advice about following 1)Which is the most reliable webhosting ...
0
votes
0answers
18 views

LDAPs calls fail through PHP installed on Nginx Server

I have PHP running on an Nginx Server and I want to make calls to my Active Directory over LDAPs. Calls over LDAP run just fine, but LDAPs poses some connection errors. I have ensured that LDAPs works ...
1
vote
0answers
41 views

How to install PHP 5.6 redis extension on Ubuntu 14

We used to install PHP's Redis extension using PECL. But it seems PECL has dropped support for this for PHP versions less than 7.0. What's the best way to do this without PECL? We're on Ubuntu 14.x ...
0
votes
0answers
5 views

Need a solution to compare 4 PHP arrays and getting final matching strings [migrated]

As part of a project, my PHP code compares four text files and uses the output for next work. The text files contain phone numbers only separated by new line. I've used file() function to get text ...
-2
votes
0answers
31 views

another phpMyAdmin 403 error

I have searched and searched days and hours online for a solution to my problem and I am coming up empty handed. Most issues I have found are people not being able to even get to the phpMyAdmin log in ...
0
votes
0answers
24 views

Random “PHP Startup: Unable to load dynamic library”

Since yesterday I suddenly started getting a random error on my server: { "name": "PHP Core Warning", "message": "PHP Startup: Unable to load dynamic library '/opt/plesk/php/7.0/lib64/php/...
0
votes
0answers
15 views

phpMyAdmin reCaptcha error allow_url_fopen=0

I've got phpMyAdmin running on Nginx. I also enabled reCaptcha $cfg['CaptchaLoginPublicKey'] = 'secretkey' and $cfg['CaptchaLoginPrivateKey'] = secretkey'. I added the above to config.inc.php. As you ...
0
votes
0answers
14 views

apache error log shows that apache count time between load pages

when I check error log file of apache in my server it shows the content like this, [Mon Jun 13 20:29:35.485434 2016] [:error] [pid 17971] [client 173.***:21703] PHP Notice: Undefined variable: data ...
0
votes
0answers
14 views

Install and test custom *.so extension

I’ve got a proprietary PHP extension myext.so, which needs to be installed into my Linux/Apache/PHP stack. The *.so is all I have. I have no source code. I put myext.so in /usr/local/lib/php/...
0
votes
1answer
30 views

apt-get upgrade breaks PHP

I have installed PHP 5 from source for various reasons (mostly because readline is broken in the Debian packages, and we use that for tab completion in a CLI backend). When I run apt-get update &&...
1
vote
1answer
48 views

Nginx is not passing the request on to PHP

This is related to an old question I asked on SO years ago, for which I never got a proper answer. I'm just setting up a new server (Ubuntu 16.04, Nginx 1.10, PHP 7) and coming back to this. I have a ...
-4
votes
1answer
42 views

Try to Test Hack Attempt with Telnet [closed]

My server recently was attacked by hackers trying to run code on a web site, and I would like to test what they there trying to do. I'm not sure how to build the telnet command to do this. 2016-06-09 ...
0
votes
2answers
49 views

Learning to deal with a large MySQL database

Total newb in terms of databases/server management but currently running a large database: LAMP Stack Ubuntu WordPress platform (can't change) Over 100,000 database entries Site adds new entries via ...
0
votes
1answer
28 views

PHP can't write to a directory

I am trying to configure our server for a client's website that we host. Their site is PHP, which I'm not terribly familiar with, so I don't know if it works in some weird way. (All our sites are in ...
0
votes
1answer
50 views

How can I run nginx as an SSL reverse proxy and a web server simultaneously?

My SSL reverse proxy works fine but I can't figure out how to make nginx work as both an SSL proxy and web server for one PHP directory simultaneously. server { listen 10.0.0.20:80; ...
0
votes
0answers
14 views

Apache returns invalid Content-Length for gzip compressed 204 response

When apache returns a gzip compressed response with 204 response code and empty body server returns invalid header Content-Length: 20 instead of Content-Length: 0. Without gzip compression (without ...
0
votes
0answers
17 views

Wordpress Access Logs

I've recently had a wordpress site compromised and the www-data user was able to create new files in the webroot. After looking at the apache acess logs I've found the following request which seems a ...
0
votes
0answers
37 views

Occasional “could not execute mail delivery program /usr/sbin/sendmail”

I seem to be having an infrequent issue with PHP and sending email. Most of the time it works fine but occasionally the email doesn't get sent. Looking in the website logs I can see a bunch of these ...
1
vote
1answer
34 views

After I installed php 7.x phpinfo is still showing older php 5.x

After I installed php 7.x phpinfo is still showing older php 5.x should i purge the older version? or what? thanks
0
votes
0answers
21 views

send php PEAR mail() to remote sendmail over SSH

I am migrating some applications to AWS and trying to seperate some mailing functions from the application servers. To cut a long story short I am trying to configure PHP (using PEAR Mail.php) to ...
-1
votes
1answer
41 views

How do I only reverse proxy php files with nginx?

Currently I have the following in my nginx config file: server { listen 80; return 301 https://$host$request_uri; } server { listen 443; server_name envy.zone; ...
0
votes
0answers
13 views

Update libcurl, but php curl still showing oldversion

I've updated the libcurl to the latest version (7.49.1) from the city-fan.org repo. However, when I do php -i | grep curl, it is still showing the old curl version (7.19.3). Any help would be ...
0
votes
1answer
73 views

Install PECL v8js on Debian Jessy

I try to install pecl-v8js on Debian/Jessy for PHP-5.6. $ apt-get install php5 php5-dev libapache2-mod-php5 apache2 php5-cli libv8-dev g++ cpp ... $ pecl install v8js-0.6.3 ... checking for ...