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
vote
1answer
100 views

Apache, SERVER_NAME overridden by HTTP_HOST

I'm using Apache/2.4.10 (Win32) and I have a question about the relation between SERVER_NAME and HTTP_HOST. I have noticed a strange(at least I think) behavior of apache, inside my httpd.conf I have: ...
0
votes
1answer
57 views

SimpleSamlPHP Apache 403 Client denied by Server

I've set up a PHP Application (SimpleSAMLphp 1.10.0-rc2). After upgrading to Apache/2.4.7 (Ubuntu) I got a 403 Forbidden. SimpleSAMLphp's www dir is in /var/simplesamlphp-1.10.0-rc2/www There's a ...
0
votes
1answer
86 views

Android browsers adding random numbers to php files

Not sure if this should be here or the Android forum - really depends on the solution. I'm having an issue with numbers or hash-like characters randomly being added to my php pages. This only seems ...
0
votes
0answers
26 views

Potential problems in running PHP web application on windows 2008 r2 IIS 7.5?

what are Potential problems in running PHP web application on windows 2008 r2 64 bit IIS 7.5 ?? If so , how much trouble they can cause ? I browsed documentations here and user problems and ...
0
votes
1answer
27 views

How to test if a particular version of php executable is available on a server?

An automatic upgrade Bash script requires PHP executable 5.3+, how do I ensure that is the case in the upgrade script? I'd like the script to quit and generate some message into the log when php 5.3+ ...
1
vote
3answers
55 views

Error while configuring PHP with existing apache

I am receiving this message: configure: error: Invalid Apache directory - unable to find httpd.h under /usr/lib64/httpd/ after executing the following command: ./configure ...
1
vote
3answers
156 views

Why do we really need apache + php if php can run as web server?

A few months ago i did an experiment that kinda went out very well, today we have an intranet portal using the following technologies: JeasyUI phpgrid Kibana So, based on our tests why do we need ...
0
votes
0answers
46 views

Apache is not connected with php path after building on CentOS

How to connect already installed php-5.4.25 and httpd-2.2.29 on CentOS 6.5? These packages are installed on my server by configuring and compiling. Assuming that my problem is in missing paths in ...
0
votes
1answer
44 views

Apache Proxy Server - Hopefully an easy fix

I am having issues with using relative directories from within the server that my proxy server redirects too. Lets call my top level server that provides the proxy "Proxy", and the first sub server ...
2
votes
2answers
442 views

The Content-Length header does not exist

I have nginx server installed on Linux. When I send a request with curl, the Content-Length header is missing from the response. The 1.php file is: <?php echo "hello"; ?> The example ...
0
votes
1answer
89 views

Apache starts with “Syntax error on /etc/httpd/conf/httpd.conf: Invalid command 'remove'”

After I changed php.ini max file upload size and the max post size, restarting apache shows the error in the title. Why? And how to resolve it? # vi /etc/php.ini # service httpd restart # service ...
-1
votes
2answers
225 views

“Connection to host lost” on telnet to port 25 [closed]

i installed smtp4dev to test receive mails in my localserver(xampp) for the registration form here: https://github.com/panique/php-login note: localserver is on port: 8080 my php.ini file for SMTP ...
0
votes
1answer
72 views

Enabling fast cgi on php 5.3.29

How to enable FastCGI while php 5.3.29 configure? I tried to .configure PHP 5.3.29 installation with --enable-fastcgi but looks like this option is unknown.
1
vote
1answer
97 views

Difference between rpm php and php54 packages from remi repo

I am doing some system automation where we need php 54. We install this from the remi repo. I can't tell what's different other than size in the two below: ...
0
votes
0answers
21 views

How can disable Integrated Windows Authentication for a special path

I enabled Integrated Windows Authentication for a PHP web application running on Apache2,There is a Windows Domain Controller in the network which should be used for authentication. But I have a ...
0
votes
0answers
33 views

No access to glusterfs mounted directory

I have two nodes for GlusterFS and Apache on localhost and a PHP uploader form. I need to store uploaded files to GlusterFS, but there is a permission error that i can't access to the mounted ...
1
vote
1answer
505 views

owncloud refusing to access data directory

I am trying to fix an OwnCloud sever. I am stuck since a day, and I am starting to despair. Owncloud (set up on arch linux) says: Data directory ( /data/ocdata) is invalid Please check that the data ...
0
votes
1answer
76 views

NGINX redirect attempts download instead of rendering image

I've got a PHP page that renders a dynamic image /scripts/oem-image.php?brand=$1&sku=$2 break; I'm trying to do a background redirect (keep the original url) from a .jpg link. For instance, if ...
0
votes
0answers
111 views

RedHat Yum Install Errors (PHP Module)

All, I am trying to use yum to install a PHP module which I expected to take all of five minutes... After quite a bit more than that I am stumped. Yum is throwing an error about a dependency missing ...
0
votes
1answer
33 views

PHP files loading very slowly, even if they have no PHP code

Windows Server 2008 R2 Standard IIS 7.5 PHP 5.3.28 FastCGI I have a WordPress blog in a subfolder of an ASP.NET site that has started running very slowly. After experimentation, I've found that all ...
-2
votes
1answer
617 views

phpMyAdmin displays blank page

I have gone through all links related to a blank page displayed by phpMyAdmin but none of them helped my solve my issue. I have installed phpMyAdmin and deployed it on the Apache server. I have also ...
0
votes
1answer
99 views

PHP can't save sessions due to permission error

I know that this question must have been asked (and answered) before, but I can't find a solution for my problem in any of those questions. It's a bit odd... The problem is that my PHP scripts (and my ...
0
votes
1answer
88 views

Apache can't read files outside of webroot

It has been many, many moons since I've set up an Apache server. I'm assuming some things have changed. The new one I'm doing is on AWS (Linux). It's installed fine with PHP support. I installed ...
0
votes
1answer
148 views

how to fix upstream sent too big header while reading response header from upstream?

I have this error in my log : upstream sent too big header while reading response header from upstream And I tried to add proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size ...
0
votes
1answer
46 views

Production server (cluster) configuration

I have a problem, that i'd like to address to you. We are creating an webapp that shows infos and statistics. And we have a problem about how to 'do right' our server configuration The thing is that ...
0
votes
1answer
34 views

What is the name of this “security leak finder” application?

They said that there were some vulnerabilities, and then pointed these results: What is the name of this application?
0
votes
2answers
62 views

SetEnvIfNoCase Host: .htaccess to web.config conversion

I have tried IIS Manager and some online conversion tools but I can't figure out how to achieve the following .htaccess rules in a web.config file: SetEnvIfNoCase Host my-domain.com nopassreq ...
0
votes
0answers
41 views

How to modify environment variable in Apache for CLI

I have a Zend framework 2 application which needs to be configured through an environment variable. On my local host (Windows) for example I set APPLICATION_ENV = local and with ...
0
votes
1answer
57 views

GD Library not working even though it is enabled in phpinfo()

I am hoping someone here can give me some advice about why my GD Library does not seem to be working even though it is installed and enabled in phpinfo() Here is a quick rundown of what I am using: ...
0
votes
1answer
116 views

PHP5-FPM Slow Execution on Ubuntu 14.04 (EC2 micro server)

I have a cluster of EC2 servers set up and just one is behaving very strangely. It's a t1.micro server running Ubuntu 14.04. Nginx, MySQL, and php5-fpm are installed. I've concluded that nginx and ...
1
vote
0answers
67 views

Understanding & Resolving Web Server Exploits

We recently had someone contact our company pointing out that we had numerous security threats that could be used to exploit our systems. They were nice enough to provide a list of these to which we ...
0
votes
1answer
806 views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
0
votes
1answer
37 views

Reading Apache error log from PHP

I want to read the apache2 error log file from PHP (it is currently owned by the www-data user) Is it safe to change the owner of this file, or to give it less restrictive permissions ?
0
votes
0answers
28 views

zend guard - Cannot run code from this file in conjunction with encoded files

I have problem. After upgrade PHP from 5.3.3 (base centos repo) to 5.3.29 (IUS repo). Some websites was down (no data returned). So i try disable load .so Zend Guard. All is ok, but I need have load ...
0
votes
2answers
814 views

When is PHP 5.4 end of life?

PHP 5.6 stable was released on 28 Aug. 2014. When is PHP 5.4 end-of-life date? I couldn't find anything about it in PHP website. It is important to me because I have to decide whether I have to ...
-2
votes
1answer
28 views

PHP Post Restriction

I have a Wordpress blog site. User can send comments for my blog posts by wp-comment-post.php. But some malicious users send a specific kind of POST which increases CPU and RAM usage. Probably they ...
0
votes
1answer
59 views

nginx Subdirectory Rewrites for MVC

I am tasked with administering a web application that has a base directory with a bunch of legacy code in it, and a subdirectory of my own making with an MVC based API which we are using to slowly ...
0
votes
1answer
85 views

Mail is not sent to specific domain

We are using php mail function to send emails to our customers. Few days ago, we've found that email are not delivered to only hotmail.com domain. I've checked email log to see if there are any error ...
0
votes
0answers
35 views

APCu Fragmented sectors unrecoverable

I currently have APCu (v4.0.6) running with nginx + php-fpm (v5.5.16) and it's creating a scenario where the fragmented area keeps on growing and is not naturally recovered by APCu. Eventually, the ...
-1
votes
1answer
71 views

Strange php redirections with nginx (Works fine in apache)

Finally I decide to ask here after hours trying, searching and researching. Months ago I migrated my site to a newer version and everything works fine with my old hosting in apache. Recently I ...
0
votes
0answers
58 views

Analyzing PHP Scripts to Identify Source of Intermittent Website Performance Issue

My site has been getting some hits on performance as of recently. About half the time, my site will run smoothly, while at other times it loads ridiculously slow. My server is running on CentOS 5. I ...
0
votes
1answer
46 views

SuPhp 500 internal server error

Hi i upgraded php to PHP Version 5.4.32 Now SuPhp generate a 500 internal server error If i switch to DSO it runs but that cause other php read write permission error I have tried with permission ...
0
votes
1answer
46 views

Under what conditions in Apache installations is AddHandler application/x-httpd-php .php required?

I am a security researcher who has been running into multiple cases where file upload forms can be exploited, allowing attacker-controlled PHP code to be interpreted by the server, leading to remote ...
0
votes
1answer
42 views

Huge request duration value for a particular php script

We are facing issues with a php-fpm server that spawns too many children. This morning, I set up php-fpm's status page, and got an interesting piece of information : among all the scripts that are ...
0
votes
1answer
433 views

umask for www-data user running PHP on Ubuntu

Setting up a new webserver in Ubuntu 14.04 and trying to wrangle file permissions for PHP generated files. By default, all the directories and files in /var/www are owned/grouped to www-admin. ...
0
votes
0answers
72 views

Override PHP Cache-Control Header from Apache config?

PHP is setting the Cache-Control header in multiple places. I don't want to break my code upgrade path, but I'd like to change the Cache-Control header in Apache config instead. However, it looks like ...
0
votes
1answer
118 views

How do one run PHP-FPM on subdomain?

I run Apache 2.4 and PHP-FPM via ProxyPassmatch in httpd.conf, not vhost (for what it's worth): ProxyPassMatch ^/(.*\.php)$ unix:/var/run/php-fpm.sock|fcgi://127.0.0.1/home/user/www I wanted to ...
0
votes
2answers
109 views

Php runs on server, but not command line: “libssl.so.10: no version information available”

php is running on my server, though I'm unable to get it to run command line. I'm running this file: <?php echo "done"; ?> using this command: php test.php When I do, I get this error: ...
0
votes
0answers
54 views

cacti fails on new install with 'failed to open stream: Permission denied'

/usr/share/cacti is set to apache:apache 0755 for directories and 0644 for files (httpd recommended) [Wed Aug 27 11:31:56.505530 2014] [:error] [pid 19799] [client 67.83.132.41:52100] PHP Warning: ...
0
votes
0answers
41 views

RHEL 5 with PHP 5.1.6 VS RHEL 6 with PHP 5.3.3: Security implications

Using only the RHEL Repositories, RHEL 5 considers PHP 5.1.6 to be up to date, and RHEL 6 considers PHP 5.3.3 to be up to date. My question is: Are security updates/patches backported so that 5.1.6 ...