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

4
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
23 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
7 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
31 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
23 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
16 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
106 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
45 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
19 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
258 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
25 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
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/ ... ...
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 ...
3
votes
1answer
2k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
0
votes
1answer
1k views

PHP not working with Apache on Centos 7

I'm on centos 7 and have the httpd service (2.4.6) installed from yum no problems and I had to install PHP from a different repo remi to get php 5.6 installed. PHP works on the command line and the ...
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 $...
-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 ...
1
vote
2answers
6k views

Executing a python script through php button

I am having an issue with executing my python script through using a button on PHP. I looked through any or all relevant questions regarding my issue, and tried any answers i could find and modifying ...
4
votes
2answers
1k views

Apache/2.2.20 (Ubuntu 11.10) gzip compression won't work on php pages, content is chunked

I'm running into a problem with a new production server whereto I'm transferring projects. The HTML output of the PHP applications isn't compressed by the Apache mod_deflate module. Other resources, ...
0
votes
0answers
32 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 ...
4
votes
3answers
4k views

Ubuntu install php5-ffmpeg

When I try to install php5-ffmpeg: apt-get install php5-ffmpeg I get an error: The following packages have unmet dependencies: php5-ffmpeg : Depends: phpapi-20090626+lfs As I understand my php5-...
1
vote
0answers
40 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 ...
-2
votes
2answers
1k views

How do i install another version of PhP?

I would like to have installed WHMCS on my dedicated server. (I already have installed apache2) How do I install PhP 5.4 as WHMCS not support PhP 5.5? WHMCS System requirements: http://docs.whmcs.com/...
-2
votes
0answers
15 views

How to make the same as the old server settings [closed]

i have moved all my websites to new server But some functionality do not work on some website in the new server How can I make the same as the old server settings
7
votes
11answers
37k views

In Ubuntu I make changes to php.ini but nothing happens

Hi, Apache with php works well, but none of the changes I make in php.ini have effect, I've even delete all the contents of the file, then restart Apache, and run phpinfo() and surprisingly everything ...
0
votes
1answer
1k views

php REMOTE_USER variable

I am trying to setup mediawiki with SSO. I was able to set up authentification with domain, but I cannot setup SSO. For some reason, $_SERVER['REMOTE_USER'] variable is not set. I looked into some ...
0
votes
3answers
569 views

PHP not working on Ubuntu 10.10

I just recently installed an Ubuntu Server 10.10 but php doesn't seem to work. I created a file to show phpinfo() to make sure php works but it doesn't show anything. I looked for php.ini and I found ...