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

-3
votes
0answers
33 views

Installing Apache after WHM on CentOS

This is my first time setting up a VPS and naturally I've run into some hiccups. The VPS comes with CentOS 6.5 and cPanel pre-installed, I just had to configure it after signing in. That all seemed ...
0
votes
0answers
29 views

Fastcgi error after installing 2 PHP versions on CentOS (6.4 final) & Parallels Plesk Panel (11.0.9)

I installed PHP-Panda on our Cetnos server (6.4 Final) & Parallelels Plesk Panel 11.0.9, and now I got the new PHP versions under /opt/atomic/ and ./php --version works clean inside the specific ...
-3
votes
0answers
31 views

trying to do a git checkout from a php script [duplicate]

I made a small php webhook that executes git command to checkout the code from a remote repository in a detached worktree. I got this: error: cannot open .git/FETCH_HEAD: Permission denied I then ...
-1
votes
0answers
19 views

What specs does apache need to handle 1000 active users [duplicate]

My VPS is hosted through digital ocean. I know there can be many factors to this, but would like a ball park as to what i need to do. I am prepping for a busy season next April and my web server ...
0
votes
2answers
44 views

RHEL 6.6: redis-package for php54

Redhat Enterprise Linux Server 6 contains php54 packages, in addition to the normal php packages that ship version 5.3. Unfortunately for me, a php-redis package exists, but no php54-redis package. ...
0
votes
1answer
20 views

Composer works as root but not as a common user, why?

I have installed Composer Globally as this docs shows and it works for root user on my server CentOS 6.6 but as a normal user lets said webvm user it doesn't saying that composer is not found (see ...
2
votes
1answer
89 views

Windows Server 2012 R2 runs out of ephemeral ports, though it shouldn't

We are regularly experiencing strange issues with networking on our dedicated server. It runs Windows Server 2012 R2 x64 on Xeon E5620 with 16 GB RAM and Intel 82575EB network adapter. Please note ...
-1
votes
0answers
32 views

Horribly slow MySQL (InnoDB) updates, multiple workers [migrated]

I've created a PHP daemon that reads records from a MySQL InnoDB-table, analyses it and then updates the record. This process is spread between multiple workers (and servers) using Redis. However, ...
0
votes
0answers
19 views

Getting 404 for css, images, js, html on a PHP running on FastCGI

I just switched my PHP to run from Apache to FastCGI through Plesk 12 and now my css, js, images, html files are getting 404'd. Any idea on what could be happening? # This is the Apache server ...
1
vote
0answers
50 views

How to enable php debug messages only for my ip? [migrated]

I am experimenting with php on an apache server for the learning experience. Being relucant to setup production and development server, I was guided that /etc/php5/apache2/php.ini should be used to ...
0
votes
1answer
32 views

PHP Script causing server to run out of RAM and wont release

Ive been running a very resource hungry script the past 2 days. I manually trigger the call and it lasts for about 30 minutes then stops. Last night the script stalled when ram hit 100%. I restarted ...
0
votes
1answer
19 views

Disable Apache server signature [closed]

I've just set expose_php to off via WHM's Configure PHP and suExec. For security purposes I want to additionally hide: Apache ServerSignature/ServerTokens/PHP X-Powered-By I can't find a relevant ...
-1
votes
0answers
29 views

Cache php calls on client side [migrated]

I own a website hosted on a debian 7 machine running nginx. When a user logs in, I serve him a lot of generated by php. Some of these files are always the same. Is there a method to cache them on a ...
2
votes
1answer
24 views

Php-fpm process always running

I am using Nginx with Php-fpm (php 5.5 + opcode) for a very high traffic web site, php-fpm status endpoint to monitoring what going on. After a big traffic peak, 200 "active process" are still running ...
0
votes
0answers
20 views

Apache + PHP (fast-cgi) + Wincache on Windows Server crashing

We have one PHP application that runs on Windows Server 2008 Apache 2.2.23 PHP-5.4.27 (FastCGI) Wincache 1.3.4.0 and crashes from time to time and I'm not able to figure out what's going on. ...
0
votes
1answer
58 views

How to configure SPF and DKIM to prevent mail going to spam folder

x-store-info:4r51+eLowCe79NzwdU2kR0zqpsRfiBoycNOl1Rdc4Wf7430jtHWQcYIrKJBAYArutl6yTQ5VQNWAmHikfoeKC6OfxZYs5RQXt5EONp5Fb+tgLbPo7J+jhd2D/FrCdQyzXUlVTtfPnBo= Authentication-Results: hotmail.com; ...
-1
votes
0answers
17 views

Find and replace string that include space and multiquote (php script) [duplicate]

I've got some bunch of injected script on server see the sciript here : http://pastebin.com/XyrWZhcc in that script is including multiquote, much space, and other character. what my concern is how to ...
1
vote
0answers
30 views

Multiple pearl processess all hitting one IP address DDOS source hack? [duplicate]

I have been running at high CPU loads 45 45 45 ish for a while, updated cpanel / apache so far but tracing PID's that are running I find the following all with the same IP.. [code] select(8, [3], ...
-1
votes
1answer
21 views

What Does 'HELO_LH_HOME' Means In Spamassassin's result?

I'm trying to send emails from PHPMailer using php on my IIS server. But My emails are going to spam, So I've used spamassasin to detect what is wrong? and here is the result: pts rule name ...
-1
votes
1answer
55 views

send a command via a website to a windows server

Is there an interface or something else which provides a connection between a website and a windows server to send commands via the website to the server and the server itself perfoms it? I want to ...
1
vote
1answer
41 views

How can I monitor resource usage for PHP sites on a per-virtual-host basis on GNU/Linux?

Running a bunch of PHP sites via apache2.4/mod_php on RHEL using the prefork MPM. My apache children are using a fair bit of RAM and lots of CPU. I would like to be able to attribute RAM/CPU use on ...
-1
votes
1answer
69 views

red hat - glibc version too low for a lot of needed packages [closed]

I am running a Red Hat server with the following version: webtatic-release-6-5.noarch **redhat-release-server-6Server-6.6.0.2.el6.x86_64** epel-release-7-2.noarch rpmforge-release-0.5.2-2.el6.rf.i686 ...
0
votes
1answer
36 views

nginx: Append to proxied URL with proxy_pass

I'm dealing with some legacy issues where I have to reconfigure servers hosting a PHP based application. One of the decisions was to move away from Apache onto Nginx. Now the application hosts two ...
-1
votes
2answers
29 views

access hierarchy between php and httpd

The objective is to control access to a php/httpd app, owncloud, to specific identified ip addresses. Both php and httpd appear to have mechanisms to do this, php is through a config.php file with ...
0
votes
0answers
48 views

PHP+nginx, normally super fast, sometimes %100 504 Gateway Time-out errors

I am running an nginx webserver serving php files with FPM. Normally it works super well and fast, but sometimes though there are periods where all page loads will hang and return 504 Gateway ...
-3
votes
1answer
55 views

I can't configure php on serwer nginx for BigBlueButton [closed]

Hi I have problem with configuration a nginx for php, because I have installed BigBlueButton and I would install php in /var/www/bigbluebutton-default. When I add this to bigbluebutton in ...
1
vote
2answers
154 views

Apache 24 not serving PHP on FreeBSD 10

I've been at this for a few hours now. I cannot figure out WHAT is wrong with my configuration. When I navigate to any php file (wordpress installation is the intent), it opens the file for download ...
-1
votes
2answers
78 views

How to use .htaccess and .htpasswd for selective redirects & passwords

In my /var/www/ directory I have many directories some like: /var/www/impdata/ /var/www/data/ So can I achieve this: When I go to: www.websitename.com/data/ it should give an 404 error. And when ...
-1
votes
1answer
83 views

Random 403 Forbidden error (Apache 2.4)

My Apache 2.4 (CentOS 7) server hosts multiple websites. Sometimes I get a 403 Forbidden (You don't have permission to access file X on this server) error when accessing any of the websites files ...
-1
votes
1answer
26 views

Correct packages to install LAMP on ubuntu

I have read some tutorials about install LAMP and I have seen that they install differents packages for MySQL and PHP. For example to install MySQL: 1. mysql-server 2. mysql-server ...
1
vote
2answers
48 views

“No input file specified” when running php under fastcgi inside chroot under nginx outside of chroot

I have a scenario with nginx/1.4.6 running on Ubuntu 14.04 but with php/5.2.10 inside a chroot Ubuntu 9.10 (Karmic Koala). My issue is that all requests to php files result in the dreaded "No input ...
0
votes
1answer
105 views

Differences and dis/advanages between: Fast-CGI, CGI, Mod-PHP, SuPHP, PHP-FPM

There are few different php "wrappers"(?). What are differences between them? Tried to google some, but cant seem to find informations. (mod-php is not googleable). Why might I choose one over ...
0
votes
1answer
119 views

PHP file downloaded instead of executed with nginx try_files

I'm using Ubuntu 14.10, nginx 1.6.2, php 5.5.12. I have a site set up like this: server { root /usr/share/nginx/www/oliviataussig; index index.php; server_name oliviataussig.com ...
0
votes
0answers
22 views

MS SQL driver (Azure SQL) for PHP running on an Azure Website?

I am at my wits end. I've been googling this and all I get is 2010 blog posts that unfortunately do not appear to work today. I am trying to set up PHPBB on an Azure Website which uses the MS ...
-5
votes
1answer
248 views

php5.6.2 installation with httpd24 ( apache version 2.4.10 ) on centos/rhel [closed]

using this repo : http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm for php installation , and for apache i am using amazon linux repo current ...
1
vote
0answers
33 views

suPHP won't allow access to PHP sources

I am running suPHP with Apache2 and PHP5.4 on a Debian Wheezy. I found out that .phps files won't be showed and access will result in a 403 page. The same file with equal chmod/chown/chgrp will be ...
0
votes
1answer
98 views

Nginx virtual host servername, root

I installed nginx-1.6.2,2 on FreeBSD-9.2-RELEASE-p5 and here is my configuration: # tail -2 nginx.conf include _includes/*.conf; } # cat _includes/XXX.conf server { server_name XXX; root ...
1
vote
0answers
78 views

Two PHP versions on same CentOS 6.4 server with Plesk [closed]

I'm using CentOS 6.4 (Final) server running Plesk 11.0.9 with PHP 5.3.3, and I need to be able to use another PHP version (5.5.19) for some of our domains. I've followed Plesk's KB about how to ...
1
vote
1answer
53 views

POST requests from jQuery to PHP stuck if POST data exceeds several hundred characters

I have a plain ajax request being initiated by jQuery to a PHP script: $.ajax({ url:"script.php", data: data, type: "POST" // error & success handlers here }); If the data (could be ...
0
votes
0answers
18 views

PHP Change log Centos 7 [duplicate]

Might be a silly question but Im looking at the change log for PHP by running this command - rpm -q --changelog php | grep CVE See all the CVE's listed does that mean they have been patched in the ...
-1
votes
2answers
67 views

Can't update to latest PHP version. Centos 7 [closed]

I'm unable to update to the latest PHP package. I ran yum update php and it updated to PHP 5.4.16. Reran the update command to see if there was any newer versions and stated there was no packages ...
1
vote
1answer
55 views

Different php_value open_basedir based on domain name in .htaccess

I want to limit access to files using PHP open_basedir for multiple domains. Every domain sits in own directory, so I want prevent all domains PHP scripts from interfering with each other. How can I ...
1
vote
0answers
60 views

Nginx + PHP-FPM Client Abort

Here's my config (Nginx 1.7.x) : server { listen 8000; index index.php index.html index.htm; root /var/www/; server_tokens off; chunked_transfer_encoding off; location ~ ...
0
votes
1answer
175 views

Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so'

When I try to run any php script with my user within shell, I get the following warning: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - ...
1
vote
1answer
58 views

Linux VPS settings to allow $_SERVER['REMOTE_ADDR'] to get client ip [closed]

I have unmanaged VPS server. I am trying to get client IP form PHP $_SERVER['REMOTE_ADDR'] but it's always gives me same for all users that is server internal IP. I have done some R & D and got ...
0
votes
0answers
23 views

IIS Web Config & PHP - 2 level url rewrite

Currently in my website, below code is working fine and redirecting rewrite URL www.example.com/ShopName1 to www.sitename.com/user/shop.php?sid=ShopName1 The rewrite configuration <rewrite> ...
1
vote
2answers
33 views

Configuring PHP and WikiMedia to use Microsoft Sql Server?

I have PHP 5.6 x86 installed on Windows 7 to C:\PHP. IIS is successfully running PHP and MediaWiki when it's configured to use MariaDB. I'm trying to get it to work with MS SQL Server and it's not ...
1
vote
0answers
135 views

Instal pecl_http: raphf installed but ./configure isn't seeing it

I'm trying to install pecl_http as an extension to php. phpise is working fine as I'm getting the configure file out. When I go to type ./configure I get the following error message; ... checking ...
1
vote
2answers
60 views

Log API requests via Varnish cache

I have Varnish in front of a standard REST API. Requests must be authenticated with an X-Access-Token header. I now need to keep track of the requests for each resource against the access token that ...
0
votes
1answer
104 views

Failure in PHP_MINIT_FUNCTION(Wincache) with Wordpress, Microsoft Azure and IIS

I'm starting experience very annoying downtimes with my Wordpress installation hosted in a shared environment in Microsoft Azure PAAS, where PHP is executed under IIS. First of all I tried to ...