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

Expression Engine module DevDemon – Updater displaying php errors on local when run by MAMP [on hold]

In my local environment I have tried to install the Expression Engine module Updater by DevDemon. Both the master MAMP php.ini file and the local php.ini file have the following settings: ...
-1
votes
0answers
10 views

Find which php files are causing high CPU load on linux [on hold]

I have a wordpress site running on my server. It's eating a lot of cpu. Searched all internet and didn't find any script or command to view which files are causing this load. Tried commands like top, ...
0
votes
0answers
15 views

Ubuntu 12.04 high cpu usage

This server is ran more than 1,5 year without any problem, until yesterday. I see some wierd processes that i never seen before. But i don't know how i need to be start debugging the problem. I ...
-1
votes
1answer
17 views

Pros and cons of installing php 5.6 and mysql 5.6 on debian 7 wheezy

I was setting up a VPS server for my client and we had talked that I would install the last stable versions of the programs. Now, in Debian 7 wheezy by default php 5.4 and mysql 5.5 are available. I ...
-1
votes
1answer
20 views

Apache / PHP - PHP not running - mod_php5 not found

Ok, so PHP is not running, even though it is installed. I am running Apache 2.4 on CentOs 7. Here's my /conf.modules.d/10-php.conf <IfModule prefork.c> LoadModule php5_module ...
0
votes
0answers
8 views

Unable to use LDAP extension with Xampp [on hold]

I'm trying to enable LDAP extension for my xampp installation. When I go to my localhost/my-website/index.php and try to login using a known working ldap connection, I get this error Call to ...
1
vote
1answer
17 views

Nginx: alias and try_files with $args [duplicate]

When I try to use try_files with ?$args at location /api/v1 I get error 404. Without it it's working properly. Any idea? Nginx Configuration server { listen 80; server_name domain.com; ...
1
vote
0answers
10 views

php generated css no output, net::ERR_INCOMPLETE_CHUNKED_ENCODING

I am running apache on an ubuntu installation. Several webapps are running on the same server. I installed a new app, which required the pdo-sqlite extension to be installed. Now my server is ...
0
votes
0answers
17 views

Folder keeps getting deleted and I can't find out why

I have a Joomla based website running on CentOS, Apache, PHP, MySQL. I am using plupload file uploader to upload the files. I'm uploading the files to /tmp/uploads directory where they are processed ...
-1
votes
1answer
65 views

Upgrading to PHP 5.6.7 using remi repos

I have PHP 5.6 enabled in my remi.repo file and none of the other sections are enabled the only other section enabled is [remi] itself. [remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch ...
0
votes
0answers
22 views

Connect to a WebService through VPN in Linux

I have been given a remote WS. But the provider told me that I can connect to their WS only through a VPN/IPsec. How can I do that? The scenario is this: [user] --- > [My Firewall] -->[My Web ...
-1
votes
1answer
69 views

How to delete all php files first line? [on hold]

How to delete all php files first line? I used the following command, but it works only for present directory and not recursively. sed 1d file.php Please tell me the command or script which delete ...
1
vote
0answers
13 views

FastCGI for DocumentRoot only

I'm trying to set up HHVM for one of my websites. It is running on Apache 2.4, Ubuntu 14.04. I apologize for not being the most advanced system administrator, I am more in the software engineering end ...
0
votes
0answers
6 views

How to Stop IIS editing body of http 201 response? (PHP)

I'm currently implementing a REST service in PHP on an IIS server. Everything is working fine, except that when I have the server respond with a HTTP status code of 201, IIS is prepending a string ...
0
votes
1answer
25 views

Ubuntu 14.04 PPA previous minor version of PHP 5.6

I'm currently running PHP 5.6.6 installed on Ubuntu using the PPA provided by Ondřej Surý https://launchpad.net/~ondrej/+archive/ubuntu/php5-5.6 This is managed using Chef which isn't really relevant ...
-2
votes
0answers
28 views

cron + php = 100% CPU after server upgrade

I just upgraded my ubuntu server (from 12.04 to 14.04) and I have a problem. There are 5-6 cronjob that are using 100% of my CPU. The cronjob are simply php scripts doing batch query on my MySQL DB. ...
0
votes
3answers
58 views

Is there an option in Apache to check PHP files for malicious code before parsing them?

Basically, I would like Apache to check PHP files for certain patterns before parsing them. If these PHP files match the patterns, I would like to send something else in replacement back to the user. ...
-3
votes
0answers
13 views

failed to open stream: Connection refused [on hold]

i'm stuck. this is the link to my question in stack overflow. The server I'm connecting to is a windows 2008 server ...
0
votes
1answer
44 views

Reverse Proxy for PHP: Best practice?

I'm setting up NGINX as a SSL reverse proxy for three small web apps with dynamic (PHP) and static content. What would be considered best practice security-wise and performance-wise when it comes to ...
0
votes
2answers
83 views

can't execute sudo in a php script ran from http [on hold]

I am not able to run any sudo command in any exec call from php script if the php was execute from the browser. However if the same scripts runs under bash shell, it works just fine. I suspect there ...
-2
votes
0answers
38 views

Someone uploaded index.php into my ubuntu server, I don't know how? [duplicate]

I recently figured that someone uploaded an index.php into my server, which is an Ubuntu by the way. How could he do it? What should I do to fix this bug and prevent it from happening again?
3
votes
2answers
213 views

Blocking PHP mailer spam using iptables

I host a public-facing web server running Debian Wheezy, and latest versions of Postfix, Apache, PHP, Spamassassin, ClamAV, rootkit hunter. Apache is configured with a handful of vhosts, each tied to ...
2
votes
0answers
26 views

CentOS 7 / Apache 2.4 / FastCGI Configuration

Does anyone know how to properly configure PHP/FastCGI on a CentOS 7 machine using Apache 2.4? In the Apache Virtual Host config file, I have this: <FilesMatch \.php$> SetHandler ...
-1
votes
0answers
27 views

fatal JavaScript error; Error processing request 200 error text:ok [closed]

I have been getting white screen in Google Crome browser when trying to access PHPmyadmin. In Firefox I get this message A fatal javascript error has occurred. I also get Error in processing Request ...
-2
votes
0answers
29 views

How Much RAM / CPU Needed / Wordpress 5GB (min) DB, 1M Posts, 500K Users / Apache [duplicate]

First, I know you guys love these questions, but I'm not looking for an exact answer. I'm looking for a ballpark. A number I could reasonably suggest. I've yet to deploy a wordpress installation -- ...
-1
votes
1answer
32 views

How to overcome IIS message exceeds the request content length in php

I am using phpUploader on IIS8.5. I have the php upload set to 20mb and I have the site set to: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> ...
-1
votes
0answers
16 views

Web server dedicated for PHP requests [closed]

I've dedicated server (8 core,32 GB) which has to manage only PHP requests (Symfony2) because all static files are in my external CDN. Which is the best configuration? 1) Apache 2.4 (MPM Event) + ...
0
votes
0answers
10 views

Open LiteSpeed permission problems

I recently moved to open litespeed from apache and i can no longer create files. When i do a file_put_contents i get permission errors. lsphp and litespeed both run under user nobody. Doing a chmod ...
0
votes
0answers
12 views

When using Apache mod_php, what's the precedence of loaded php.ini files?

I'm having some troubles with php.ini configuration when Apache executes PHP using mod_php. I can't understand how/the order of configuration files. Here is how phpinfo() Apache section: ...
0
votes
1answer
24 views

Php executes with different results in command line than when browsed to in Apache

I setup a CentOS 7 vm webserver with the LAMP stack. Over the last few days I have been trying to get an LDAPS connection working to my Windows Server 2008 R2 Domain Controller. I have been able to ...
0
votes
0answers
21 views

php session tracking cookies (multiple session handling on same domain)

I have 2 applications, both have password based login, database,etc., the passwords are different, databases are different, applications present are in different folders. Log into the first ...
0
votes
1answer
23 views

SOA: Is using PHP FPM to serve webservice traffic without NGINX a good idea?

I'm in the processes of developing a service oriented architecture using PHP. A member of my team has suggested that because each of the services serves only http traffic, serving responses only in ...
0
votes
0answers
19 views

Can't Get Virtual Subdirectory Locations Working in Nginx

I have my webapps each as toplevel directories under /var/www, and ideally need to stay that way.. only one hostname (_), no vhosts, so I want "/" to point to my /var/www/mainsite/, and then I want ...
-1
votes
0answers
18 views

Can't enable/disable opcache per-host as opcache.enable can't be overridden? [closed]

PHP OPcahce installed and loaded correclty in my Plesk 12 server (CentOS 6 x64). Here is the problem. If I enable OPcache system-wide (editing /etc/php.d/opcache.ini) cache is enabled for all ...
-1
votes
0answers
30 views

How to install httpd-mmn on RHEL 6.5? [closed]

Input such a command: rpm -q --provides httpd | grep httpd-mmn it outputs: httpd-mmn = 20120211 if I install php55w with rpm -ivh php55w-5.5.22-1.w6.x86_64.rpm It shows this: error: Failed ...
0
votes
0answers
19 views

Rights issue, extracting a zip archive

I'm in need for some expertise. I've been tinkering a few days at this with fruitless results. I'm trying to write an update script starting out in PHP. PHP will download a zip archive via FTP ...
0
votes
0answers
10 views

Possible have 2 php.ini file or 2 extension_dir in php.ini?

i got Fatal error: Class 'mysqli' not found in C:\apache2triad\htdocs\index.php on line 8 error. I checked php.ini file and saw extension=php_mysql.dll is uncommented.Everything is normal. But in ...
-2
votes
0answers
24 views

Hardware requirements for 500 - 2000 concurrent connections to LAMP+ [duplicate]

A hint where to look, where to start... Software used for real time auction web project Apache 2.4.6 (forked) +(mod_pagespeed) PHP FastCGI v5.4.16 PHP-APC cache MemcacheD +shared sessions with PHP ...
-1
votes
1answer
23 views

Centos system. It cannot generate pictures according to apache server [closed]

My system is centos6,I have written a php script and a python script and the php script will invoke the python script.And the python script will invoke two software:blast and RNAfold,it will generate ...
-1
votes
1answer
20 views

Synchronize Staging Server and Live Server [closed]

We have staging and live server at our office. Where Live code and DB changes are far more advanced than staging one.This application developed under php and DB is mysql. Earlier we used to work in ...
1
vote
0answers
18 views

X3250 Server: stuck at firmware screen

The server is initialize, then it is stuck at the IBM System X Server Firmware screen (before F1, F12 appears, etc). You can see in the attached image. ...
1
vote
1answer
30 views

OpsWorks environment variables available to PHP CLI

We are deploying a Laravel-based application to AWS using OpsWorks. We have defined environment variables through the OpsWorks console and they are correctly seen by Apache. However, when running CLI ...
0
votes
0answers
15 views

Disable gd library on a specific website

I am trying to disable gb library on a specific website so it won't affect the other websites which are hosted on the same server. Is it possible to do this with htaccess or is there another way?
0
votes
0answers
31 views

Wait Time (TTFB) Difference Between Apache and IIS 8.5 [duplicate]

I have a system which runs on PHP and MySQL. I know that there is a performance difference between WinServer 2012R2 IIS8.5 vs Centos 6.5 LAMP when using PHP&MySQL based structures. But the ...
0
votes
0answers
19 views

Key and Certificate for Ideal PHP Wrapper

I try to make a Ideal sandbox with a PHP wrapper and Simulator. IDEAL wrapper: https://github.com/PENDOnl/iDEAL-v3.3.1-PHP-Wrapper IDEAL simulator: http://ideal-simulator.nl/ I runned these ...
-2
votes
3answers
71 views

Upgrade php version on centos 6.5

On the current stack i hv centos 6.5 (64 bit) , PHP 5.3 available. I'm a linux new bee & need to perform php upgrade to PHP 5.5. Tried following but that returned error: wget ...
1
vote
1answer
88 views

xz compression not available - yum error on centos [closed]

I want to update my php to new version. Dealing with this source: https://webtatic.com/packages/php56/#comment-139854 And now I can't use yum commands. Anytime when I'm trying install something or ...
2
votes
0answers
15 views

Suexec PHP does not load php.ini

I'm using FastCGI with suEXEC for PHP on CentOS 7. My wrapper script looks as follows: #!/bin/sh PHPRC=/home/ben/etc/ export PHPRC export TMPDIR=/home/ben/tmp/ exec /usr/bin/php-cgi -c ...
0
votes
1answer
43 views

nginx can't execute many requests

I have a question about nginx tune. I have an application which I want execute 200 times every second. I created bash file and used wget with bqO switch for execute. But it has a problem. When the ...
1
vote
2answers
27 views

PHP Mail Delayed Shared Hosting [closed]

I'm developing a Drupal site on very generic shared LAMP hosting. My client insists on using the shared hosting company for some reason. (Is it OK to mention the hosting company?) E-mails are sent ...