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
4 views

Do I have to load Zend Apache/PHP extensions if I'm not using Zend Framework?

I'm configuring web server. I want to remove any unnecessary extensions etc. I'm not using Zend Framework and I will never use it on this server. When I check configuration (by using phpinfo()) I ...
-1
votes
0answers
19 views

XAMPP Apache error AH01599: Cannot get media type from 'x-httpd-php53' [on hold]

I'm trying to setup Xampp on a Mac (OSX 10.10.2), its setup and normal PHP runs, however when I try and run a Wordpress site the PHP code doesn't execute, it just prints out in the browser and I keep ...
-4
votes
0answers
36 views

how to configure PHP to use MYSQL [on hold]

I have PHP 5.3 and MYSQL 5.1 installed on centos. PHP uses SQLite as default, how can I configure PHP to use MYSQL instead? Which stack website is for server type questions ie php etc?
0
votes
0answers
12 views

Dynamic content, what is the best web server combination? (Software wise not Hardware) [duplicate]

We developed a mobile game for smartphones and it uses a http php website as a backend. Sometimes we even have 14000 people playing at the same time, at 12000 it is already noticeable slow and web ...
0
votes
0answers
22 views

Apache process hang and 100% CPU usage

I have strange problem with Apache (MPM Prefork) and mod_php. Server is running for some time and after random time few process is hang and using 100% CPU. 1741 fileu 20 0 840m 65m 41m R 100.0 ...
0
votes
0answers
25 views

Bus error during PHP5 is running a simple script - what?

When working with PHP scripts, I usually do not have to bother with the underlying system. Today, I have to. A PHP script (cronjob) that has worked fine is crashing since 2 days ago. The cronjob mail ...
-3
votes
0answers
14 views

Cannot connect to ip. Error 110. Connection timed out [on hold]

i am using ssh-crack to check if ip and password is right or not , i get below error : Cannot connect to ip Error 110. Connection timed out. i am running code on linux apache shared hosting
0
votes
0answers
15 views

php process eating CPU since October

Just noticed that my server CPU is being eaten by php at a regular rate of 50-60%. Worse, this is happening since last October but I can't really remember what I did then to cause. The CPU graph for ...
-2
votes
0answers
13 views

HHVM stops logging [on hold]

We are trying out hhvm (with nginx) for a production website, because one customer really wanted to try it, and of course you do what customers want :) Basically it works great, even though i ...
0
votes
0answers
6 views

Suhosin - Disable shell_exec default, allow from one directory

I have in php ini this function, which blocks shell_exec default. php.ini suhosin.executor.func.blacklist = shell_exec Its works well. When I want to allow shell_exec, so I use in httpd.conf ...
1
vote
0answers
36 views

Executing a python script through php button

I am having an issue with executing my python script through using a button on PHP. I looked through any or all relevant questions regarding my issue, and tried any answers i could find and modifying ...
0
votes
0answers
6 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
19 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
24 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
22 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
27 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
9 views

Unable to use LDAP extension with Xampp [closed]

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
20 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
13 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
19 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
95 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
24 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
71 views

How to delete all php files first line? [closed]

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
14 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
8 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
30 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
29 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
59 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
15 views

failed to open stream: Connection refused [closed]

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
48 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
87 views

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

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
229 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
27 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
32 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
34 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> ...
0
votes
0answers
11 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
13 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
29 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
25 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
20 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 ...
0
votes
0answers
20 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
11 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 ...
-2
votes
1answer
24 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
19 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
35 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 ...