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
2answers
145 views

PHP configure not finding LDAP header libraries

I installed the LDAP development headers: apt-get install libldb-dev This added a few ldap headers: root@crunchbang:/usr/include# ls -la ldap* -rw-r--r-- 1 root root 9466 Apr 23 2013 ldap_cdefs.h ...
0
votes
1answer
135 views

Serving files outside the DocumentRoot with apache 2.4 and php5-fpm

I'm trying to serve a php file outside my document root with apache 2.4 and php5-fpm. My virtual host looks like this: <VirtualHost *:8080> ServerName www.domain.tld DocumentRoot ...
0
votes
2answers
215 views

Sending Email by SMTP IIS7.5 via php site

After my company decided to change the website we switched from old ASP.NET site to new website created in Drupal(php). The site is running locally on IIS7.5 and we also have virtual SMTP server on ...
3
votes
1answer
209 views

Apache stops communicating with memcache after creating too many vhosts

I've noticed a very peculiar problem with Apache. I have a very high number of virtual hosts set up - it's around 501. Problems started occuring after vhost number 493. First 493 vhosts work as ...
1
vote
1answer
218 views

php htaccess environment variables php-fpm mod_proxy_fcgi apache 2.4

My .htaccess: SetEnv tvar "my value" RewriteEngine on RewriteRule .* - [E=boostpath:normal] My virtual host settings: AllowOverride All Options FollowSymLinks Require all granted ...
0
votes
1answer
262 views

make PHP curl use openssl instead of NSS

Does anyone know how could I force php to use curl with openssl instead of NSS on RHEL 6? I've installed curl-openssl-7.30.0-1.1.el6.x86_64.rpm but how can I tell php to use it? Actually is there a ...
0
votes
0answers
26 views

Linux pt_BR Locale - Bad Translations

I'm using Amazon Linux AMI 2014.09 (up-to-date) to host my PHP application, that uses locales for internationalization (usually it's pt_BR). On the production server the pt_BR translations is not ...
0
votes
1answer
15 views

How to findout where spam is coming from with EXIM?

I've tracked down the user which was sending out spam but I am wondering how can I determine where the script is that is doing it? I ran a scan looking for the mail() function but found nothing. ...
0
votes
2answers
106 views

Server compromised, how deep is the intrusion when PHP files are changed in folder without write permissions [duplicate]

I know there have been a lot of similar questions, but none of them covered this specific question: I found on almost all PHP files on a clients server script injections, it was actually the script ...
0
votes
1answer
102 views

ffmpeg mp4 and webm files save to standard folder but only webm to mounted folder

So i am running an ffmpeg command on my linux server using the php exec command : exec("(nohup nice -n 19 " . $ffmpegPath . " -y -i " . $srcFile . " -f mp4 -pass 1 -passlogfile " . $video_pass_log . ...
0
votes
0answers
56 views

How do I trace the source of FastCGI timeout isseus on PHP and IIS 7.5?

I have a problem which I am hoping you experts can really help me find the root cause of. I am getting random page time outs (which manifest as a 500 error) that I cannot find the root cause of. PHP ...
0
votes
0answers
48 views

Install amphp / thread on a Debian Wheezy 64 bits

I'm trying to install a multi-thread PHP system on one of my server. After a few readings, the simplest solution seems to use Pthreads with an Amp\thread implementation ...
0
votes
0answers
92 views

What is causing my PHP curl requests to time out?

So I have a PHP script that posts a large file to a remote API. But whenever the response takes longer than about 200 seconds to come back, then I just get a content-length of zero in the response. ...
0
votes
1answer
122 views

PHP/Ruby captive portal first domain seems cached

I have created a captive portal with iptables I use what many people seem to use : Users can request DNS, packet marked as 99. 99 means no internet else the user does have access. When a user ...
0
votes
0answers
233 views

OsTicket + IIS + mySQL + Extremely slow queries

Background: I am a .net developer, limited php coding knowledge Asking this question because I think it is a php/mysql/version/implementation issue, and not getting real information from the OSticket ...
0
votes
0answers
52 views

nginx chunked_transfer_encoding enable/disable inside script

It is possible to control the value of chunked_transfer_encoding on/off sending a header or something from a PHP script? Thank you
0
votes
2answers
860 views

PHP install on clean Amazon Linux AMI

I'm trying to get a script working to bring up new Amazon Linux EC2 instances with php55 and the Amazon PHP sdk. However, I'm running into a problem that I think is caused by PHP version conflicts. I ...
0
votes
1answer
105 views

php with fcgid not working anymore after upgrade to wheezy

I have some issues with a server that I have recently upgraded from Debian Squeeze to Debian Wheezy. When I call a php-page only the php-source-code of the page is beeing show but not interpretated ...
1
vote
0answers
77 views

CentOS - Files to Copy to get Consistent MIME-type detection in PHP

I have the same website (written in PHP) running on two servers. I've tried uploading the same exact file to both servers through the website. On one of the servers, the file's mimetype is detected as ...
1
vote
1answer
25 views

Windows server 2012 R2 limiting request data in php

I work mainly with with Linux based servers and Sugarcrm. One of my clients has deployed his suagrcrm instance on a windows server. SugarCrm is a php application that I would normally run under a LAMP ...
0
votes
1answer
73 views

how to install an older version of a pecl package

I have this code $passengerId = new \MongoId(oPassenger->getId()); return $this->createQueryBuilder('Device') ->update() ->multiple(true) ...
0
votes
1answer
155 views

Multiple server blocks in nginx: Php not working on server 2

I have a nginx server running on my webserver. I would like to achieve the following: example.com + www.example.com -> /my/web/dir/www pma.example.com -> /my/web/dir/pma The first point is not ...
0
votes
1answer
23 views

Set base directory for dynamic virtual hosts

I use Dynamic VirtualHosts for a hosting service I run. Currently, it only allows static sites, however I'm working on a new version which will support PHP. This clearly opens some security issues. ...
0
votes
2answers
41 views

why all pages redirect the same page on apache2 with php laravel framework

I have a droplet on digitalocean. I have installed fresh centos 6.5 32bit and followed this tutorial (https://www.digitalocean.com/community/tutorials/how-to-install-laravel-4-on-a-centos-6-vps) step ...
0
votes
0answers
76 views

Problems with PHP basedir paths after Wordpress migration to new server

Moved a Wordpress site to a new server, to avoid changing database entries I have recreated the original absolute path on this server, wich is: /var/www/vhosts/trb-wine.com/httpdocs This is not ...
0
votes
2answers
32 views

include an php scirpt for each request [closed]

I wonder if it is possible and include a php script that always runs for each file. I should not have to include the php script from the php file, but I want to be able to include a script that always ...
1
vote
1answer
201 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
104 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
99 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
55 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
84 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
184 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
51 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
46 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
834 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
211 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
426 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
115 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
169 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
28 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
43 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
775 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
118 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
116 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
48 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
2k 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
183 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
155 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
189 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 ...