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
38 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
44 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 ...
2
votes
0answers
134 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
71 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
61 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
14 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
11 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
73 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
40 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
10 views

php segmentation fault function call [migrated]

I am getting a segmentation fault when I call a method of an object. The method is actually implemented in the base class, and I call the same method in a lot of different places in my site, but when ...
0
votes
0answers
13 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
15 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
41 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
13 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
69 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
16 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
-1
votes
0answers
7 views

Need to Run PHP 5.5 on a specific directory

I have PHP 5.3 installed on Zend Server in my machine. I am using Windows 2008 server R2(64 bit). But i need to run PHP 5.5 on a separate directory to run a bdd tool called codeception. How it can be ...
0
votes
1answer
170 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
36 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
25 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
12 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 ...
-2
votes
0answers
30 views

Change nginx root on different requests

I am trying to configure nginx. If I enter http://localhost/dav it should use index.php script from configured root (c:/wt-nmp/www/app-dav/frontend/web) in location /dav directive. But when I debug ...
0
votes
0answers
14 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
36 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
0answers
8 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
19 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
24 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
22 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 ...
0
votes
1answer
37 views

Installing Plesk 12 of on Virtual Server

I'm trying to install Plesk 12 on a Virtual Server through VMWare, however I keep getting error message relating to php-common being required for php-imap and php-mbstring, but I have the correct ...
1
vote
1answer
54 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
41 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
69 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
13 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
26 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
46 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
147 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
26 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
41 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 ...
-1
votes
0answers
25 views

Install higher version of libxml on CentOS 6.5 [closed]

My current version of libxml package is libxml2.x86_64 2.7.6-14.el6_5.2 and I want to upgrade it to 2.9.0 . I found a libxml package with 2.9.0 from ...
2
votes
2answers
357 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
48 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
100 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
42 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
46 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
18 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
21 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
0answers
244 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
0answers
48 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
79 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
0answers
12 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 ...