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

-1
votes
0answers
12 views

Testing Cloud Performance [on hold]

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

Nginx multiple download freeze

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 ...
-1
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 ...
-1
votes
0answers
12 views

500 Server Fault - When switching from php 5.2 to php 5.4 in cpanel on hostgator [on hold]

When I switch my .htaccess file from 5.2 to 5.4 on my site it gives me a 500 server error. I'm using the Hostgator default setup on PHP, and my htaccess file is below. I don't think it's anything to ...
1
vote
0answers
34 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 ...
0
votes
0answers
15 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 ...
0
votes
2answers
23 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 ...
-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 ...
1
vote
0answers
6 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
0answers
22 views

Detect if new files/folders created in specified directory [on hold]

Good afternoon, I have a trouble with Apache (2.2) + mod_userdir & PHP (5.4): Whenever I execute a PHP function like mkdir() or copy() the ownership of them will be changed to apache instead ...
-1
votes
0answers
6 views

error in tomcat missing “php-cgi”

i tried to install(windows) javabridge to connect java and php.Its giving me an error saying php-cgi missing Here is what i did. What am i missing here? 1) Copied javabridge.jar , php-servlet.jar and ...
-3
votes
1answer
21 views

How activate Server side includes in html on wamp [on hold]

I put a file called includedfile.shtml in this ADDSSI FOLDER so it's in 'www/ADDSSI' as <div class="ads-box"> <a ...
-1
votes
0answers
37 views

How to check email delivery in server? [on hold]

I currently have a server with CentOS that runs Cpanel from hostgator. I have another server to send email to using php scripts. This email reaches gmail server safely, but it doesn't reach my ...
0
votes
1answer
23 views

How do you prevent mod_rewrite from decoding a string in the path? [duplicate]

I'm trying to create a restful API using mod_rewrite. I have the rule: RewriteRule v2/(.*)$ v1/index.php?request=$1 [QSA,NC,L] However the path could contain base64 encoded strings (i.e. can ...
0
votes
0answers
17 views

ubuntu shell-script install php5 if files already exist

I have the Problem with a ShellScricpt on Ubuntu, because i use vagrant to setup an webserver and I have synced folders to the php5 folder and extension-folder. When I have files in the Folder before ...
1
vote
1answer
18 views

post_max_size will not change, stuck at 128M, other settings work

I am trying to increase post_max_size to 1024MB, I am using ini_get('post_max_size') and phpinfo() to check the setting and post_max_size shows as 128M in both. some phpinfo() on the server: PHP ...
0
votes
1answer
15 views

New Relic crashes Apache

I've just installed New Relic on a CentOS 6 x64 cPanel system with PHP 5.4. I followed the instructions here: ...
0
votes
0answers
38 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. ...
-1
votes
0answers
16 views

My VPS sends huge spam :( [duplicate]

since I am not tech guy I am trying to find someone who can help me but with no success so far. My VPS sends spam. Like a lot. 1,4TB in two days even though we restart immediately it when we see huge ...
0
votes
1answer
24 views

NginX Nested Location Issue: Spitting out raw PHP

I've tried hard to understand NginX's logic in location order processing but it still is beyond me, and I suspect that's why I am getting the following issue. I run a SugarCRM instance, which I have ...
-1
votes
0answers
11 views

Extract file attachement and edit it using Zend framework from mail received using stdin [on hold]

I am using ubuntu 14.04. I configured my Postfix. I installed Zend framework. then I sent email with attachment "file.dat" from terminal using the following: mail -s "hello" -a /path/file.dat ...
0
votes
0answers
18 views

PHP cURL call returning error 56 with NSS error -12195

I have an internal server (internal to my network) to which I make a REST API call from my external server. I don't know if it helps but the external server is running php 5.3.6 with cURL 7.19.7. To ...
-1
votes
1answer
30 views

Execute bat file via php on a local network to run on any PC connected

I have a web app which runs on a local server (XAMPP)...its on a computer (PC1) which serve as a server..other computers are connected to the same wireless network and can run the web app also from ...
0
votes
1answer
35 views

nginx one domain few websites

I am having problem with configuration of nginx for few pages on one domain. For example we have example.com. This page allows u to buy some goods, but I would like to seperate pages for continents. ...
-3
votes
1answer
40 views

unable to update php version to 5.5 on centos

i want to update php version centos via ssh , i ran "yum update" command on server but it did not update php version, how can i do it . Please guide. My centos version is 6.6
0
votes
0answers
25 views

How to configure CentOS VPS Server with WHM/CPanel to run both NodeJS and nginx/apache [closed]

I've tried (unsuccessfully so far) to setup a CentOS VPS server to run both NodeJS and PHP applications (which means having a NodeJS server + Apache/nginx running together) under two different ...
0
votes
0answers
3 views

How do I get the full URL in php? [migrated]

Assuming PHP is getting invoked from a URI request interpreted by a server, how do I get the URI request? For example something that returns: https://example.com/page.php?foo=bar I've tried ...
-4
votes
0answers
21 views

My Apache folder is missing, in mac os x 10.10 [closed]

I removed apache2 folder by mistake, I can't now run the server.. how can I back up [apache2] server?, and install php 5.6? thanks, Regards
0
votes
1answer
26 views

Run php exec function to stop windows services

I have written a web program in php that needs to stop a windows service and start's it when run like this: exec('net stop spooler'); //to stop printer spooler exec('net start spooler'); //to start ...
-1
votes
1answer
27 views

Can't enable mpm_prefork with Apache 2.4 on Ubuntu 14.04

I'm installing PHP 5.4 with Apache 2.4 on Ubuntu 14.04. Php 5.4 is not available on apt-get so I have to install it from source. I have installed apache2-prefork-dev apache2-mpm-prefork And i ...
0
votes
1answer
16 views

php REMOTE_USER variable

I am trying to setup mediawiki with SSO. I was able to set up authentification with domain, but I cannot setup SSO. For some reason, $_SERVER['REMOTE_USER'] variable is not set. I looked into some ...
0
votes
0answers
11 views

rackspace e-mail server to Office 365 Exchange [closed]

I am going to change my rackspace e-mail server to Office 365 Exchange server What are the things I need to take carre while changing this. I am using PHP application for sending emails, do I need to ...
0
votes
1answer
36 views

How to run php exec for nested scripting on remote machines?

I originally asked this question stackEx, and realized it was a much better fit here. I'm trying to automate the deployment of services on a cluster of hosts from a web-server. I've evoked the php ...
0
votes
0answers
20 views

PhpMyAdmin login redirects to login page [closed]

Problem When I attempt to log in to phpMyAdmin it redirects back to the login page, and the URL looks something like this: ...
2
votes
2answers
51 views

Fail to trigger my php script when mail received by my Postfix

I am running Postfix mail on ubuntu 14.04.1. I want to "trigger a PHP script when Postfix server receives a mail" After investigation and the help of many tuto, . I have configured "postfix" & ...
-1
votes
1answer
16 views

Can't install PHP Intl on CentOS 6.5

I'm trying to install this package on my server running PHP 5.4 with no success. However, it only took a few seconds on my PC running OpenSUSE 13.2. The name of the package was ...
1
vote
1answer
52 views

SERVER_NAME vs HTTP_HOST (Nginx + PHP)

I have a catchall server configuration that gets all sub-domains and point them to the same PHP script. There are thousands of sub-domains and they are created dynamically. The PHP script uses the ...
0
votes
1answer
18 views

nginx + PHP-FPM disable PHP functions only for certain virtual hosts

How can I disable some php functions only for some of(currently only 1) virtualhosts on my Nginx+PHP-FPM stack?
0
votes
0answers
76 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 ...
0
votes
1answer
17 views

Undefined php function http_post_data on Ubuntu server

Added the following under Dynamic Extensions in both php.ini's (Apache's, and the normal one found with: sudo updatedb && locate php.ini) extension=raphf.so extension=propro.so ...
-1
votes
0answers
22 views

High memory usage (compared to wamp) and unresponsive site at times

Lately my site (with 260000 posts, 12000 images, 2,360,987 mysql rows and 450.7 MiB size) is running slow and at times not loading for many mins I installed this Debug bar plugin ...
2
votes
0answers
84 views

nginx recv() failed (104: Connection reset by peer) while reading response header from upstream

I have recently upgrade my magento from 1.5 to 1.9 and when ever I add a certain product to basket, I started to receive this error: 502 Bad Gateway There were no log entries in the var/log/ folder: ...
0
votes
0answers
15 views

Site hacked! Malware on site being accessed by some IPs [duplicate]

I found this php malware file on my server. And when I went to 'apache status' in WHM. I saw some entries where some IPs where trying to access them. Is there a way I can tell how the malware file ...
0
votes
1answer
24 views

Pfsense Squid external ACL with a php script

I want to use a PHP script to allow or deny Squid proxy request ina pfsense installation, so I'm using this configuration for external ACL: external_acl_type mysqlAuth %SRC /usr/local/bin/php -f ...
0
votes
0answers
9 views

I'm unable to write unicode on PHP-CLI on the server

I specifically cannot add åäö to php-cli on the ubuntu server. I can write it in the terminal outside of the php-cli, I can create a file test.php and manually write: <?php echo "åäö"; And ...
-1
votes
0answers
21 views

Connect EC2 with RDS

I am trying to move my CMS from 1&1 to AWS. The CMS was built using PHP + MYSQL. I have completed the following steps in AWS - I created an EC2 instace I uploaded a php script to test if ec2 ...
0
votes
2answers
73 views

Installing PHP extensions to the correct PHP version

We have two versions of PHP on our Linux CentOS6 machine, 5.3.3 and 5.6.7, and wanted to install PHP extensions, memcache and imagick, to 5.6.7. Logged in as root, using yum, we installed both of ...
1
vote
1answer
41 views

subdomain doesn't recognize PHP sessions

I have a website with a user database and a login form. This system has worked 100% flawlessly. I have a main site with the name= www.example.com and a subdomain called accounts.example.com. When a ...
1
vote
2answers
43 views

Need to improve apache and mysql configuration. Current config is crashing server due to RAM maxing out?

Ok, we run a growing auto parts shopping cart. Our server runs slow and is always crashing so we asked our web host to assist us. They sent us these report but I need some advice in how to process it. ...
0
votes
1answer
11 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 ...