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
3answers
40 views

Change Packet Dynamically with Squid

Is there any option in Squid that allow me to change packets dynamically? For ex: I want to send all packet that comming to Squid to my PHP code and change the packet with PHP Dynamically and resend ...
0
votes
2answers
123 views

Upgrade to latest current installed version of PHP [duplicate]

I've just purchased a new VPS and they've, for some unknown reason, installed PHP version 5.3.3. I'm fine with being on version 5.3.X, but I believe the latest version is 5.3.29. I did some Googling ...
0
votes
1answer
22 views

Django and phpBB server [duplicate]

Is it possible to integrate Django web site and PHP forum by some apache directive in httpd.conf file? For example: <VirtualHost *:80> ServerName myserver DocumentRoot home/myserver/www/ ...
-1
votes
1answer
213 views

Is it safe/how to update php (5.3.9)? centos (6.5 final) & parallels plesk panel (11.5.30 Update #47)

I have my own server that is running: php (5.3.3), centos (6.5 final) & parallels plesk panel (11.5.30 Update #47). This server has customers with subscriptions in plesk and their domains set ...
0
votes
0answers
40 views

Installing suPHP with PHP5.5

I'm using PHP 5.5 on my CentOS server and installed using yum and the webtatic repository (package is php55w). I need to use suPHP on my server but I realize that the mod_suphp package available ...
1
vote
1answer
393 views

CentOS 7, SELinux, PHP, Apache: How to set default permissions to new or updated files in an directory?

Server info: CentOS Linux release 7.0.1406 (Core) PHP 5.4.16 (cli) (built: Sep 30 2014 09:44:39) SELinux enforcing Apache/2.4.6 (CentOS) My PHP-Script needs to read from a home directory ...
3
votes
2answers
132 views

Apache/PHP ldap stops working. Requires restart of apache

I currently have a setup where users log in to a website using LDAP credentials. It's all internal so I don't really care a ton about certificates. So, in my /etc/openldap/ldap.conf file I have ...
0
votes
1answer
65 views

Too Many index.php processes with high memory usage

I have wordpress site installed over dedicated server in a separate cpanel account. From couple of days this account experiencing high memory usage, high loadtime and freezing frequently. so I have ...
1
vote
0answers
20 views

Memcached Pool - Outtage causes increased lag in response time

I have multiple cache servers which are added to a virtual pool at the PHP layer via the Memcached::addServers() api. During fault tolerance testing I noticed that taking one of the memcached servers ...
-2
votes
2answers
67 views

PHP Fatal error: while migrating wordpress website from local to live server

When I migrated ecom website build with Wordpress Vina fashion theme from local server to live godaddy server I an getting following error: PHP Fatal error: Uncaught exception 'Exception' with ...
1
vote
0answers
47 views

what is php-fpm warning “failed to acquire scoreboard”?

what is php-fpm warning "failed to acquire scoreboard" in fpm error log? And how to fix it? tail -f /var/log/php-fpm.log [08-Oct-2014 03:36:36] WARNING: failed to acquire scoreboard [08-Oct-2014 ...
1
vote
1answer
32 views

What is the best approach to handle email form abused by bots?

I just recently moved to a Dedicated Server hosting from a normal Reseller Hosting, and currently facing issue with email blacklisting. One of my clients has about 4 contact forms that automatically ...
0
votes
0answers
36 views

no record of login thru phpseclib

I am having a strange problem. I am using phpseclib to communicate with one of our server server - 10.0.0.2 my pc client - 10.0.0.1 I am accessing it via 10.0.0.1 when i hit "last -n 10" i cannot ...
0
votes
2answers
25 views

Disallowing interactive login for specific mysql users

I want to create some mysql users for different web sites but disallow interactive connections for them. If a evil-user get the mysql login credentials of a website, creating a conexion from ...
0
votes
1answer
58 views

Nginx Not Passing Rewrites To PHP-FPM

I have the following rewrite rules for nginx. The rules seem to not function correctly, for example the rule for games is supposed to rewrite http://thegamesdb.net/game/2/ to ...
0
votes
1answer
78 views

Yum php-yaml install issues

We had an issue with an ansible playbook using vagrant - where formerly php-yaml was installing fine. Then, we were getting issues with our PHP repo: [vagrant@localhost ~]$ sudo yum install php-yaml ...
0
votes
0answers
42 views

Server 2012 R2 IIS 8 MediaWiki Every Other Page Refresh No CSS

I am having a peculiar issue with MediaWiki on both Windows Server 2008 R2 and 2012 R2 where I have configured version 1.23.4 of MediaWiki and PHP 5.6 nts under FastCGI and for some reason if I ...
0
votes
0answers
42 views

puppet xdebug.ini not working

I install xdebug puppet Here is folder structure /myproject Vagrantfile puppet\ xdebug\ files\ xdebug.ini manifests\ init.pp This is ...
0
votes
1answer
18 views

Install PHP PEAR on Windows non-interactively specifying target install directory

I want to install PHP PEAR on Windows non-interactively. If I just download http://pear.php.net/install-pear-nozlib.phar and run it like this: php install-pear-nozlib.phar It gets installed into ...
0
votes
1answer
64 views

Is it possible that Nginx blocks itself from requesting another URL on the same instance?

I have a setup that worked in Apache and now it is failing in Nginx with php-fpm: I have one PHP-script that is offering a service, you call the URL and get some data I have a second PHP-script that ...
0
votes
1answer
174 views

Adding a self-signed cert to the trusted certs within cURL in Windows?

I have created a self-signed cert from the instructions on this page, have installed it and it appears to all be working correctly, but now I need cURL to trust it. Since the later versions of cURL ...
0
votes
3answers
137 views

php upload_max_filesize ignored - unable to upload 5gb file

I'm unable to upload files larger than roughly 2gb. The max upload/post values were previously set to 2500MB so I thought that was the problem. First, # php --version PHP 5.3.3 (cli) I set ...
0
votes
2answers
44 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
91 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
101 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
161 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
149 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
173 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
21 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
13 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
82 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
73 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
23 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
25 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
77 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
86 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
147 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
28 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
1answer
401 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
58 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
41 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
16 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
37 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
65 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
20 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
32 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
47 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
27 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
45 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
101 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: ...