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

ProxyPassMatch and mod_rewrite order of operation

I've got a situation with Apache 2.4, PHP-FPM and Wordpress Multi user in sub folder mode. All non *.php files work fine in the subfolder, as does the main domain.com/subblog/ url, however anything ...
-2
votes
1answer
39 views

Could any kind of code be stored on an external server? [closed]

is it possible to story any code (php html js css ...) on someserver.com/code.file and request it to be loaded onto any website like mysite.com thanks
0
votes
0answers
9 views

How to create dynamic subdomains in a LAMP environment? [on hold]

Basically whenever a customer signs up on my site, I want to know how to dynamically create a subdomain page for him. Example: if john signs up on xyz.com, john.xyz.com should be created ...
0
votes
0answers
15 views

Is a Raspberry Pi too slow to use as a web server? [duplicate]

Is a Raspberry Pi 2 too slow to use as a web server to run a php script to edit a file? I'm talking about the Pi2 with 1gb ram and 0.9GHz processor.
-1
votes
0answers
8 views

open_basedir in php wordker

Is there any possibility for setting up open_basedir in my workers in pool.d? I have tried to include open_basedir = /home/xxx/ command, but this is not working for me
0
votes
1answer
2k views

Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.(while selecting multiple columns)

am using apache 2.2.i have written this code when am trying to run it my browser is failing to run it ,it's showing This webpage is not available The connection to localhost was interrupted. Error ...
-1
votes
0answers
9 views

NGINX + PHP5-FPM stop responding after some time [on hold]

I have some strange issues using nginx and php5-fpm. I'm running a server on my raspberry pi and it works flawlessly, but after some time the site takes ages to load and shows a 502 or 504 error. I ...
0
votes
1answer
1k views

How to install pecl spidermonkey on CentOS 6

Running the following command: > sudo pecl install spidermonkey I receive the following error: ... ... a bunch of successful checks ... ... checking whether to enable spidermonkey support... ...
0
votes
5answers
2k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...
1
vote
1answer
11 views

Nginx alias with trailing slashes

I have a sub-site working under a parent website like this: http://example.org/sub-site (http://example.org/sub-site/ works too) Everything seemed to work well, including : ./sub-site/sub-section ...
2
votes
1answer
490 views

PHP Threading on Gentoo

PHP on Gentoo supports the threads USE flag. As far as I know, PHP does not support true threading; I am only aware of the ability to fork using pcntl_fork(), but this functionality is provided by the ...
1
vote
1answer
1k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
1
vote
1answer
261 views

End of script output before headers: php5

I've inherited the sysadmin role on a server that's running a wordpress website on top of Apache 2.4/Debian. It almost works, but it is issuing "500 internal server error" from time to time. In my ...
0
votes
0answers
15 views

How do I handle an additional PHP version under IIS for a single virtual host? [duplicate]

I already found a step by step solution in this link, however, it seems apply to the entire server while I'm trying to setup for a single virtual host, as the own title says. I only want to know ...
-6
votes
0answers
31 views

If my server gets shutdown how will my php react? [on hold]

sorry for no code or anything just want to know what will happen if my server gets shut down by mistake or a fault and if anything bad happens if anyway to prevent it
1
vote
2answers
1k views

How to install php cli with pnctl alongside Zend Server

I have Zend Server CE 5.6 with PHP 5.2 running on Ubuntu 11.10. Now the need has arisen to run a command line PHP script that uses PHP's pnctl functionality. First of all, I had no PHP command line ...
0
votes
0answers
20 views

Incomplete Page Loads in Apache and PHP

A client frequently loads our site on his iPhone and has troubles with incomplete page loads. I also sometimes on my laptop load up the home page and there's issues with our rotator due to an ...
0
votes
0answers
36 views

How do I add a new PHP version on IIS? [on hold]

Can someone say me how do I install an additional PHP version (preferably greater than 5.5) with FastCGI in the IIS 7.5 that already has the 5.2.17 and 5.3.29 versions running others applications?
1
vote
2answers
1k views

Horrible PHP/MySQL Query Performance On Ubuntu Server 10.04

I just did a clear install of Ubuntu Server 10.04 with the standard LAMP config.. Then I made a small script to test insert speeds into a table with 3 columns. When I run the script on any of my ...
0
votes
0answers
10 views

Fatal error: Call to undefined function sqlsrv_connect() [migrated]

i am trying to connect to Microsoft database using the following code $connInfo = array("Database"=> '***', "UID"=> '***' , "PWD"=> '***', "CharacterSet" =>"UTF-8"); $conn = ...
0
votes
0answers
27 views

Is this a PHP exploit being attempted on my site? [duplicate]

I found these entries in the error logs of my server: [Sat Apr 18 23:43:50.404367 2015] [:error] [pid 30269] [client 104.237.134.70:36344] PHP Warning: fopen(./crond): failed to open stream: ...
0
votes
1answer
1k views

How to give Domain Name to IPs in an Intranet Network

I Know this is a Common topic here but I'm still confused. I have a Windows Server 2003 DHCP/App Server Machine with DNS configured. The Clients are Lubuntu 12.04 Systems. I want to host my PHP ...
2
votes
2answers
3k views

PHP+Apache as forward/reverse proxy: how to process client requests and server responses in PHP?

I'm having a lot of troubles with the proper configuration of Apache mod_proxy.so to work as desired... The main idea, is to create a proxy on a local machine in a network which will have the ability ...
4
votes
1answer
3k views

Error headers: ap_headers_output_filter() after putting cache header in htaccess file

Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter() after I included this within the htaccess file: # 6 DAYS <FilesMatch ...
1
vote
0answers
6 views

Codeigniter logs: Database Driver Class Initialized 'a zillion times' [migrated]

We are currently trying to boost performance on some CRON jobs since they tend to throw a memory size exhausted error sometimes. In the logs we notice A LOT OF 'DEBUG - 2015-04-22 10:32:45 --> ...
0
votes
0answers
12 views

Avoid vulnerabilities of Network Query Tool [closed]

I was going to implement an old script called Network Query Tool (see example at http://www.mcit.com.hk/nqt.php) on of my websites but discovered that the script has vulnerabilities which allow an ...
0
votes
0answers
16 views

Installing node.js on a PHP App Server (OpsWorks)

I have a PHP App Server running Ubuntu 14.04 with a stack that contains an ELB, the server, and a MySQL RDS. All of this is working as expected, but to finalise my deployment I need to install ...
-3
votes
1answer
23 views

How to upgrade PHP version in multiple AWS EC2-Instance?

Can we upgrade versions in multiple EC2-Instance at the same time? For example let’s say I’ve ELB connecting with two EC2-Instance. Instance A (running PHP 5.3) Instance B (running PHP 5.3) Here ...
2
votes
1answer
37 views

Varnish not caching website which have session

I tried curl -I domainname and here is the response. HTTP/1.1 200 OK Date: Tue, 21 Apr 2015 14:49:09 GMT Server: Apache/2.2.15 (CentOS) X-Powered-By: PHP/5.3.3 Set-Cookie: ...
1
vote
0answers
44 views

Nginx multiple download freeze [closed]

We have a problem with Nginx. We have a filehoster, and our user can download 3 files at the same time. When we start 2 download it's ok, 3 download is slow, 4 download and more is impossible. Do you ...
0
votes
1answer
136 views

PHP version conflict in Amazon Linux EC2 instance

I've lunched a fresh instance from the AWS -> EC2 console panel. After that when I logged into the instance via SSH and executed the following line: (note I executed first the sudo yum update before ...
1
vote
1answer
1k views

Red Hat 6 connect to MS SQL server 2005 using freetds; pdo_dblib and php

I'm having a problem connecting to my Microsoft SQL Server 2005 from a Red Hat box using freetds. My end goal is to be able to connect using php's PDO, but I don't appear to be able to connect when ...
0
votes
2answers
1k views

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

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' - ...
0
votes
0answers
25 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
54 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 ...
3
votes
1answer
202 views

Apache server returns 404 after timeout

Making multiple requests to the server causes a 404 error after about 40-60 seconds. I am using JavaScript to request: example.com/test/location. Apache has mod_rewrite enabled that maps this to the ...
2
votes
1answer
17 views

Upgrading PHP and installing libraries in non-interactive mode

Problem I m trying to install php 5.5 and php5-memcached for my machine which has php 5.3 pre-installed. Also, I can not change default configuration as it is staging box provided for CI.So let's ...
0
votes
2answers
926 views

PHP with suexec/fcgid

httpd.conf file: LoadModule fcgid_module modules/mod_fcgid.so AddHandler fcgid-script .php FCGIWrapper /usr/local/php5 .php # manual MaxRequestsPerProcess 1000 FcgidMaxProcesses 200 ...
1
vote
1answer
1k views

Problems installing php5 from source in Ubuntu

(Originally asked here: http://stackoverflow.com/questions/14977119/problems-installing-php5-from-source-in-ubuntu) I've been trying to install php5 for a while. I'm using. Ubuntu 12.10 Apache ...
-1
votes
0answers
14 views

Testing Cloud Performance [closed]

I have created a GAE PHP website and I am trying to compare the performance of Cloud Computing compared to traditional web hosting. So I have done basic networking tests, load tests, stress tests etc. ...
0
votes
1answer
868 views

Apache 2.2, worker mpm, mod_fcgid and PHP: Can't apply process slot

We're having an issue on an apache server where every 15 to 20 minutes it stops serving PHP requests entirely. On occasions it will return a 503 error, other times it will recover enough to serve the ...
0
votes
6answers
5k views

Can't connect to mysql server (13) using php function

I opened every links google results had thrown to me in regards to this MySQL error. I have been spending hours to get this to work.. I have a web server (apache in centos installed in host B, and ...
0
votes
1answer
1k views

Compiling PHP on CentOS Needs MySQL PDO Configured

I am trying to compile PHP with mysql_pdo on CentOS 6 and I am having just one heck of a time trying to make it happen. Currently I am trying to compile PHP 5.2, but I am going to have to do this for ...
0
votes
1answer
1k views

php fopen error (failed to open stream: Permission denied)

I have a php script on a Windows Server 2008 box (IIS 7) that is run periodically to download a remote XML file and store it on the server. This script (which previously used to run successfully), is ...
1
vote
0answers
64 views

Installing php-mysql on centos 6.5 fails due to conflicts when percona client 5.5 also installed

Some background: I'm writing a Chef cookbook to set up a LNMP stack for local development. It requires the php-mysql library for PHP 5.4 (using the php package). We're using the yum-remi repository ...
-2
votes
1answer
15 views

Configure postfix to run filter only with selected mail else all other mail pass without being filtered

I am running postfix and I'm using ubuntu 14.04. I created php script and i injected it into postfix to filter incoming mail. All run as I wish. But Now I want my postfix to run filter only with ...
0
votes
0answers
39 views

is there a way to determine what process has written a file? linux [duplicate]

The answer marked as duplicate is not related to my question which is very specific. I need to know if there is a command or information stored on linux about how a particular file was written please. ...
0
votes
2answers
46 views

Unable to install PHP on FreeBSD 9.3

I tried to install Php5 on my FreeBSD server I just got, following a tutorial. So first I did cd /usr/ports/lang/php5 then make config didn't change any option there, finally I did make ...
0
votes
0answers
18 views

Linode resource splitting [duplicate]

We would like to move our sites to Linode and I have a theoretical question. Which is the best in speed and why? If MySQL runs on a different machine, is it give better result or worse? 1 option ...
-1
votes
1answer
13 views

Pass ASP as PHP on nginx

I have been trying to parse .ASP files as PHP, but no matter what I try (for hours), it just doesn't work. None of the tutorials/notes I find seem to work for me! Either file(s) get downloaded with ...