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

0
votes
1answer
10 views

NGINX index.php rewrite rules wont work

Recently I changed my webserver from cpanel and CENTOS 7, to use nginx with an scipt called nDeploy, wich works well with wordpress and the sites hosted on my server. I have this script wich is not ...
1
vote
2answers
2k views

Another PHP NGINX error: “No input file specified”

I looked through about 5 questions and blog posts already and tried everything they told me without luck. I can browse to www.example.com/phpinfo.php, but not www.example.com/index.php. I even went so ...
3
votes
1answer
2k views

Maximum limit of filepointer in php reached and not changeable

I have a server with the current 5.3.x version installed. Since we are running a really simple and small server in php using sockets, that connects to a lot clients using sockets we need to raise the ...
0
votes
1answer
26 views

Content-Type not being set for jpg, but is being sent for png. How do I check Apache config?

This is weird. I have an image resizing script on my Apache server. It's outputting PNG files and JPG files. They display images fine in the browser. However, the Content-Type isn't being set for ...
1
vote
2answers
546 views

Dynamic column enumeration for preventing SQL injection

I have an application which is completely for internal use but I'm trying to make sure I have my bases covered on SQL injection. Unless someone else has some information to point me otherwise there ...
-1
votes
0answers
10 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 ...
0
votes
1answer
3 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 ...
-1
votes
1answer
20 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 ...
2
votes
1answer
1k views

Apache2 Segfault - need help interpreting this coredump (suspect cause is memcache / php session related)

Three Apache2 web servers running a PHP 5.2.3 web site. We're using Memcache to cache rendered pages but also as the storage engine of the PHP Sessions. At peak traffic times we're getting Apache ...
0
votes
0answers
20 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 ...
8
votes
6answers
11k views

PECL command produces long list of errors

Currently running PHP 5.4 on CentOS 6.5. I installed the webtatic php55w package then installed PEAR+PECL without issue along with redis and mongo through PECL. Shortly after, I realized 5.5 is not ...
0
votes
2answers
107 views

Setting php_value in VirtualHost on Debian Squeeze Apache 2.4.10 + mod_proxy_fcgi + php-fpm?

After updating our server to Debian Jessie (8.3), I switched Apache 2.4.10 from mpm_worker/mod_php to mpm_event/proxy_fcgi/php-fpm. I have the handoff configured for all virtual hosts as such: # cat ...
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
1k views

Errors getting apache working with fcgi and suexec

I have a Debian 6 server and I was previously using Apache with mod_php but decided to switch to using fcgi instead since Wordpress was somehow causing Apache to crash. I have the following in my site'...
0
votes
2answers
1k views

'PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

I'm getting 'PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' error when I'm trying to make too much update and ...
0
votes
1answer
9k views

File upload permissions issue on Windows Server 2008 R2 IIS 7.5 PHP 5.3 with Drupal v.7.26

I have website on Drupal version: 7.26 OS on server is Windows Server 2008 R2 Web server $_SERVER["SERVER_SOFTWARE"]: Microsoft-IIS/7.5 Server API: CGI/FastCGI Core PHP Version: 5.3.28 file_uploads: ...
5
votes
2answers
2k views

All PHP sites stopped working on IIS7, internal server error 500

I installed multiple drupal 7 sites using the Web Platform Installer on Windows Server 2008. Until know they worked without any problems, but recently internal server error 500 started to show up (...
-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
2answers
11k views

Removing php extension with .htaccess does not work

I use the following code on my site elixnews.com to remove php extension from: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
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] "...
0
votes
0answers
28 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 ...
2
votes
1answer
1k views

phpinfo.php is not showing extra folder for additional PHP configuration files

My phpinfo.php is not showing extra folder for additional PHP configuration files. I am running Apache v2.4.4(with PHP DSO) and PHP v5.4.14 on CentOS v6.3 32-bit. Apache and PHP installations are ...
-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
121 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-...
-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 ...
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
1k views

Nginx: wild card subdomain redirect URL to page with request

I am trying to convert: http://test.example.com/file.php To either http://www.example.com/file.php?subdomain=test or http://test.example.com/file.php?subdomain=test Depending on ...
0
votes
6answers
12k views

Can't connect to mysql server (13) using php function

I opened every links google results had thrown to me in regards to this MySQL error. I have been spending hours to get this to work.. I have a web server (apache in centos installed in host B, and ...
-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
vote
3answers
1k views

session.save permission erorr

My Debain server created a session in private tmp folder /home/user/tmp the temp folder owner: drwxrwxrwx 2 user www-data 4096 2011-08-23 16:26 tmp After the session created, the session ...
1
vote
1answer
1k views

Stopping memcached: [FAILED]. Why?

My application seems to be having issues with memcached not stopping. I'm using php, and have specific keys expiring after every hour. However those keys & values are not repopulating anymore. ...
-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’...
4
votes
5answers
259 views

Can't get PHP to stop showing errors

Contrary to most people's problem I cannot get PHP to stop showing errors, I have in my php.ini display_errors set to off but it still shows them, I have also tried .htaccess, and inline ini_set and ...
-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 ...
1
vote
4answers
5k views

php.ini changes don't have any effect

When I make any changes in php.ini located in /usr/local/lib on centos, the changes don't appear to be applied, for example, when I clear all the content of php.ini and restart Apache everything works ...
0
votes
3answers
632 views

Trouble enabling display_error in php.ini

I'm trying to enable PHP error output to the browser. phpinfo() shows that the path to php.ini is /etc/httpd/php.ini. So as root I edited it by adding a line: display_errors = On I restarted apache ...
-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
2answers
1k views

nginx php5-fpm path_info urls and root location

Hello to all nginx & php gurus I'm installing dotclear (a blogging software written in PHP) on my debian, and I have a hard time configuring nginx, php5-fpm and php so that : I can use ...
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 ...
1
vote
1answer
5k views

Yum: php55w-common conflicts with php-common-5.4

I am trying to install mysqli on a CentOS machine using yum install php-mysqlnd.x86_64 on the command line but I keep getting the message: Error: php55w-common conflicts with php-common-5.4.16-36....
0
votes
0answers
10 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/ ... ...
0
votes
1answer
2k views

php fopen error (failed to open stream: Permission denied)

I have a php script on a Windows Server 2008 box (IIS 7) that is run periodically to download a remote XML file and store it on the server. This script (which previously used to run successfully), is ...
1
vote
5answers
3k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...
0
votes
1answer
1k views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on /home/...
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: ...
0
votes
1answer
2k views

Configure php mail() on Windows/IIS

I have a Windows Server 2003 / IIS web server running various application servers, and ended up begrudgingly adding PHP into the mix. I know Win/IIS isn't the ideal environment for PHP, but it's what ...