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

phpMyAdmin Error - The configuration file now needs a secret passphrase

I keep getting an error "The configuration file now needs a secret passphrase" after installation of phpmyadmin. I have set the passphrase and also followed the instruction presented on phpMyAdmin not ...
9
votes
1answer
139 views

Using IE to invoke PHP/CURL for long running data API causes Apache2 server to freeze and require restart

I'm running a PHP program that works fine as long as it's not invoked by a Microsoft IE browser, after which it spawns the below processes, locks up Apache2 and requires a restart of the web server ...
2
votes
2answers
55 views

Directory for PHP 5 FPM socket files is deleted after reboot on Ubuntu Server

I've created a directory to store socket files for PHP 5 FPM: sudo mkdir /var/run/php-fpm. It is owned by root:root as well as core PHP FPM process. When PHP FPM is starting, it creates socket files ...
0
votes
2answers
24 views

How to synchronize different debian server

I'm developing a project that consists in a tomcat installation with a web app with many classes and libraries and a php side with many many folder and files. I've got two server debian wheeze and ...
0
votes
0answers
21 views

How can I disable FastCGI on a Windows IIS 6 server?

We use WordPress for our company website and it has crashed for no discernible reason. It gives an error message like this: FastCGI Error The FastCGI Handler was unable to process the request. Error ...
0
votes
1answer
44 views

Weird stuff in server error log?

I have a PHP script that shuts down server processes based on their PIDs. It seems like it works well, however, I found this weird stuff in Apache's error log. Any idea on what it's saying? [Thu Jul ...
0
votes
0answers
24 views

zend server 5.6 cURL and OpenSSL don't match

I'm running Mint 13 (ubuntu 12.04lts) and have Zend Server 5.6CE w/ php 5.2 installed. I'm getting segfaults with some cURL calls, and I think I've tracked it down to a misconfiguration in my ...
0
votes
1answer
38 views

CentOS 5.5 php-posix with dependency error php53-common

I'm having problems installing php-posix. The problem I have, is that I used epel.repo and now I can't work out how to get past this. I'm not great with Redhat & yum. [root@badelivery ~]# yum ...
1
vote
2answers
84 views

PHP eats up all the memory

Since this morning one of our webserver's memory getting filled up by php which eventually going to cause the server to start swapping, slow down and become unavailable (an ssh login takes like 5 ...
0
votes
1answer
17 views

weird characters being appended to requests

I am running apache2 with php5, wordpress and getting this weird thing where symbols will append to the end of a jqeury request and then quotes on the other pictures. If I clear my cookies it fixes it ...
0
votes
1answer
52 views

php script can't access /tmp folder

I have no open_basedir, php can access /etc /usr /proc /home etc… but not /tmp. tmpfs is mount on /tmp (/tmp type tmpfs (rw)) That's also the reason I want to use the /tmp folder. My files are owned ...
0
votes
1answer
50 views

How to Protect a Folder from Browser access but allow PHP scripts to acess it

So I currently have a folder located at /var/www/pictures, with /var/www being the document root for my web server. I want to have the pictures folder to throw a 403 forbidden error if a user tries to ...
1
vote
1answer
90 views

PHP code showing on browser

I have searched a few questions here but none of them seem to answer my question. I've been using Apache 2.2.21/PHP 5.3.9 for a while and still works fine. I downloaded and installed Apache 2.4.10/PHP ...
-3
votes
2answers
43 views

Methods to prevent files from being visible to web? [closed]

I am testing a simple site in Windows, XAMPP. There, I use some PHP files that must not be accessed directly for security reasons. After looking around, there are many methods to do this. The simplest ...
0
votes
2answers
46 views

Run multiple instances of apache with PHP5

I am attempting to setup a Dell Poweredge R720 server with OpenSUSE 13.1. I need to run multiple instances of apache (Either 1 install multiple instances or multiple installs with multiple ...
-1
votes
0answers
15 views

Nginx won't allow specific subdirectory location to be proxy passed [duplicate]

I have a PHP server running my normal website. I'm also trying to run a nodejs site along side it in a specific subdirectory. The PHP site is using laravel so the config points to the public folder ...
3
votes
1answer
68 views

Enforce loading of php.ini files from current folder

My goal is to increase the maximum file size for uploads in WordPress. I have followed the steps on this SE answer and this tutorial (except the .htaccess part, because it's runnning nginx and AFAIK ...
0
votes
2answers
49 views

Migrating a server from Apache to Nginx - how is my request handled?

I'm trying to migrate a service from a server to another. It's a simple php app. On the first server (Apache) I could request a JSON in the following way: ...
-1
votes
1answer
25 views

cache images that has been resized with php [closed]

URL of the image is like this resize.php?image=imagename.jpg&w=100&h=100 and I want to cache the result in RAM. Can APC of php do it? how? Or I must install something else?
0
votes
1answer
37 views

Is there anyway to find what php scripts consume more resources

I want to easily find load cause, Is there a way to display resource usage for php scripts like this. Cpu: index.php 30% something.php 10% ... memory: index.php 50% something.php 10% ..
0
votes
0answers
102 views

Nginx PHP index.php rewrite not allowing proxy pass to '/writing'

What I'd like: I want to have the laravel site show unless it's for /writing. In that case I want it to proxy pass anything in that subdirectory to a nodejs site. What happens: The laravel site ...
0
votes
1answer
98 views

500 error on fresh install of IIS and PHP

When attempting to run a PHP file on Windows server 2012 and IIS, I keep getting a 500 error. I cannot find any detaild logs or anything. However, when going to PHP Manager for IIS and click check ...
-1
votes
0answers
12 views

XMLRPC.PHP file on Wordpress DDoS attack [duplicate]

Getting TONS of these in apache access log: 41.99.38.36 - - [19/Jul/2014:20:58:15 +0000] "POST /xmlrpc.php HTTP/1.1" 403 436 "-" "Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)" I ...
0
votes
1answer
264 views

Strange POST request to server in apache log

I have been seeing this all day in my apache access log: 213.55.105.126 - - [19/Jul/2014:18:39:24 +0000] "POST /xmlrpc.php HTTP/1.1" 503 2539 "-" "-" they are continuously coming in. different IP ...
-1
votes
2answers
38 views

How to run multiple PHP apps on a single LAMP instance

I am running a single PHP app on a single EC2 instance with LAMP setup. I have pointed my domain to the elastic IP. So currently if I web browse to the elastic IP or the domain, it directly opens my ...
0
votes
1answer
44 views

VirtualHost Server Not Found

After modifying the httpd.conf to include my virtual host configuration: Include /private/etc/apache2/extra/httpd-vhosts.conf, I added the following to my virtual host configuration file: # # ...
0
votes
0answers
18 views

PHP make test Failures

I'm rebuilding and upgrading PHP(5.3.2 -> 5.5.14) to match the current installation except with the addition of the pthread module. My main question is about the seriousness of make test failures. ...
0
votes
0answers
56 views

How to get rid of libapache2-mod-php5filter?

I cannot get rid of this php mod from my Debian Wheeze on arm architecture. Package php5-common has dependence on 2 packages which are in conflict: libapache2-mod-php5 libapache2-mod-php5filter ...
0
votes
0answers
31 views

How to create a new MYSQL charset?

I am trying to configure roundcube webmail and I get the error "Can't initialize character set utf8 (path: /usr/share/mysql/charsets/))" I fixed this before on my website by adding ...
0
votes
1answer
43 views

PHP error logging with AWS and EC2 [closed]

I'm setting up my site to run on AWS EC2. In some presentation for AWS services I saw that there are ways to store your PHP error logs in AWS S3 and analyze it with specific tools. Can't find this ...
0
votes
0answers
39 views

emails are coming from localhost instead of php sendmail_from

I'm trying to understand what I'm missing here. I have following PHP script: <?php ini_set('sendmail_from','XXX@XXX.TLD'); mail('YYY@YYY.TLD',rand(),rand()); ?> ... and even though I set ...
1
vote
1answer
68 views

Why can't I redirect url's with “index.html” in it to a php file?

I'm stuck in a big problem, but let me start with one part of it. I am wodering why this works: RewriteRule ^(.*)index.html $1 [R=301,L] while this doesn't: RewriteCond %{REQUEST_FILENAME} ...
1
vote
1answer
54 views

PHPmailer won't authenticate on CentOS

I've seen this issue posted before, but haven't found an answer. My phpmailer script works on Wamp, but won't on Centos. I've disabled SELinux and IPtables just in case. I also ran "telnet ...
1
vote
1answer
28 views

memcache and memcached session not persisting

so I am having a problem with sessions persisting in an application, that is using the memcached php driver, while another existing application is using the memcache driver. On the server, I see both ...
-2
votes
3answers
191 views

nginx and php | can't resolve hostname and make connection with FQDN

I don't know what can cause this problem, nginx configs or php or anything else but : I can not make connection when host value for these php functions listed below is set to FQDN like ...
0
votes
1answer
25 views

Apache authentification error

I've installed Apache 2.2 on my Debian-based distr (kernel 3.2.0-27) and apache2.2-common package with default configs. Trying to run simple script info.php I got the error found in ...
0
votes
1answer
20 views

PHP / IIS - Limit On The Number Of Files That Can Be Uploaded At Once?

I have a PHP web application which allows the user to add multiple items, and attach a file to be stored with each item. I am able to attach a file to items 1-19, however it always fails at item ...
1
vote
1answer
72 views

Managing differences in Ubuntu and CentOS features when deploying app

We have a problem that our programmer uses Ubuntu to develop advanced php application (advanced because he installs many extensions/seperate databases/utilities) and the problem is that whenever he ...
0
votes
2answers
47 views

phpymyadmin - Unable to load dynamic library 'ext\php_interbase.dll'

I am installing phpMyAdmin (4.2.3) on Windows 2008 R2, with IIS7, PHP 5.5.12 and get the error "PHP Startup: Unable to load dynamic library 'ext\php_interbase.dll' - The specified module could not ...
0
votes
0answers
57 views

Set disable_functions parameter per vhost

I'm trying to use the disable_functions directive for php with different values for each of my domains. First time a tried with nginx's fastcgi_param PHP_VALUE. It worked well until I had more than ...
1
vote
1answer
129 views

PHP NginX - Output Buffering - Video Streaming

(Since it contains some coding but also it's concerning nginx configuration i think it would be the best to have it in serverfault). I have some Video Files in my Server that are stored in a folder ...
0
votes
1answer
36 views

How to secure private communication among Apache servers with SSL (sign IP only)

I have 2 Apache servers (with PHP): public server A which hosts web pages, it has domain name etc. public server B which hosts some services (built as PHP application) and those services are used ...
2
votes
2answers
181 views

Cant install php-posix on CentOS 6

I'm trying to install php-posix on CentOS 6, with no luck: $ yum install php-posix Getting the following error: Loaded plugins: downloadonly, fastestmirror Loading mirror speeds from cached ...
0
votes
2answers
65 views

How to let user create folder and upload file, lamp permission [closed]

I use mkdir($folder_path, 0755) in localhost(MAMP) it works, but after I move to VPS I use LAMP it failed. Folder the direction path is /var/www/html/assets/images/ the images folder info: Owner: ...
1
vote
1answer
171 views

Asterisk AGI randomly returning 4 and failing to execute PHP AGI

I've got a PHP script that I execute 2-3 times throughout a single calls life time, if it is inbound it will execute once for the queue, once for start of call and a last time for end of call. For ...
1
vote
1answer
35 views

Apache serving modified static assets incorrectly: serves obsolete file with sizes adjusted to match that of the new file [duplicate]

I've got a CakePHP project running in a CentOS VirtualBox. The website is served with Apache 2.2.15. There are JS files in the document root folder. Apache seemed to serve them file. But after i ...
0
votes
0answers
54 views

What is using all of my memory on Ubuntu 12.04?

I keep getting alarms from Rackspace telling me that my memory usage is too high, but I can't seem to find the culprit. I ran top SHIFT + M to see top output sorted by memory, and this is what I get ...
0
votes
1answer
36 views

nginx + php-fpm + v8js crashing

I have a problem concerning v8js extension for php. I needed to install it on my server (and did) (CentOS 6.5, Nginx 1.0.15, php 5.5.12) but whenever I give such a simple test to it: ...
0
votes
0answers
52 views

Nginx server goes down when php file is executed in command line

We have a production nginx web server with php FPM. We ran a php script which updates a particular field in mysql database and mails some content using php mail function. This php script was executed ...
1
vote
1answer
80 views

Describing `strace` command output

I have php process which could not finish for more then 2 days. root 26511 0.0 1.6 407788 27684 ? Ss Jul09 0:08 /usr/bin/php action.php This is the output from the strace command: ...