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

OpenBSD Nginx/PHP/MariaDB/PHP-FPM Stack

I have a minimal OpenBSD 5.7 amd64 install in VMware where I have installed matching versions of PHP and PHP-FPM, plus nginx, and mariadb using pkg_add. I configure all the services, and get nginx to ...
0
votes
0answers
8 views

Memcached vs Amazon Elasticache with PHP on CentOS 7

I setup a new CentOS 7 server in Vagrant to run PHP, nginx, MySQL (MariaDB) and memcached (note the d on the end). I can get memcached to run fine, but I can't get the Amazon Elasticache .so file to ...
1
vote
1answer
960 views

php set_time_limit not working with mod_fcgid?

It seems set_time_limit function call has no effect when php is running with mod_fcgid (the default in webmin). Can someone tell me how to make it work?
2
votes
3answers
1k views

Kill PHP process when connection is closed

I've posted the following question to SO, but thought there might be a server based solution. http://stackoverflow.com/questions/9053964/php-script-with-sleep-does-not-exit-on-connection-close I'm ...
0
votes
0answers
17 views

500 Internal Server Error on Wordpress - BUT WORKS from a different country

MY MACHINE SPECS: I have a VPS (Location - Miami, 4GB RAM) running Centos and a LAMP stack. I have Wordpress installed on it with a SSL certificate. PROBLEM: Out of the blue, the admin ...
0
votes
1answer
21 views

phpMyAdmin - #1045 - Access denied for user - However my script still works

The login page on phpMyAdmin does not let me log in and gives me a 1045 - Access denied for user However my php script on the page which uses the exact same login data, still works no problem. ...
-1
votes
1answer
28 views

How can I deal with failures when connecting to a MySQL cluster?

Our company has created two MySQL servers that are kept in synch using a master-master strategy. The two-machine cluster is managed using crmsh. This is only a high-availability cluster, meaning that ...
1
vote
0answers
97 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
23 views

WebServer Inaccessible

I have done an install of httpd and php on my new centos server. yum install httpd php -y I have done hundreds of webserver installs but for some strange reason I seem to be having troubles. When ...
0
votes
0answers
65 views

How to enable my clients use a custom domain name

I want people to be able to use a custom domain name to access an application I have hosted on my server. From what I have read, people can do this by changing the A Record of their accounts to my IP ...
0
votes
1answer
91 views

Mass disable customers in OTRS

The problem is about OTRS customers. I can't use an external customer backend, so I want to update the customer DB via CSV files. I already wrote a script to add new Customers via ...
3
votes
1answer
2k views

All PHP sites stopped working on IIS7, internal server error 500

I installed multiple drupal 7 sites using the Web Platform Installer on Windows Server 2008. Until know they worked without any problems, but recently internal server error 500 started to show up ...
1
vote
0answers
9 views

Php load balancing questions

I have a custom written ecommerce app that runs on it's own dedicated server. All of it's constants (such as database connections, file paths etc..) are defined in a single _constants.php file. The ...
0
votes
0answers
23 views

Forge Nginx 404 Error

I have set up a Laravel 5 site via Forge (hosted on DigitalOcean). My problem is that when I enter either the domain or the IP address for the server, I get a 404 error. I can, however, SSH into the ...
1
vote
1answer
47 views

Nginx 1.8 Configuration Problems

Here is the problem : (I'm new to NGinx, read about it, but didn't find my working solution yet.) I'm on a Windows system. My projects file system is located there : E:/www/ here is a project ...
0
votes
0answers
15 views

Can I add a second php.ini file that supercedes the first?

I've made changes to my php.ini file, so I don't update the php.ini file whenever I update the PHP package. I'd like to "fork" off my changes to a different file, so I can update the actual php.ini ...
0
votes
1answer
19 views

Empty PHP_AUTH_USER in PHP running as Apache handler [on hold]

I have been searching the solution of this problem for few hours. I've tried everything. I'm running MAMP on OSX Yosemite (so PHP is running as Apache Handler not as CGI). All I want to achive is to ...
-1
votes
0answers
20 views

Can't install PHP-FPM in CentOS 6.6, using repositories too [on hold]

I don't know what is happening, using repositories too - i can't install PHP-FPM in my CentOS 6.6 Server. Also i created a file /etc/yum.repos.d/nginx.repo with the below code, [nginx] name=nginx ...
0
votes
0answers
9 views

How can I get Apache to redirect URLs to the Document Root that have a /?someFIle.php in them?

I'm working on a new client, and their Dev URL contains http://www.example.com/?someFile.php. I am trying to get the entire site up and running locally, but I am running into issues with the URLs ...
-2
votes
1answer
1k views

Override httpd.conf and php.ini on shared hosts [closed]

My application needs mod_rewrite and AllowEncodedSlashes enabled on httpd.conf. It also needs some php extensions to be enabled but I can't find how to change those settings on my host's pannel. Can ...
9
votes
2answers
3k views

Why so many gettimeofday calls?

Why does the PHP/Apache combo do so many gettimeofday syscalls? Even though the're quick every call is a call which should be accounted for. Just a quick strace -c -p [apache2 process id], gives the ...
0
votes
1answer
1k views

php-fpm returning empty response to nginx

nginx is connecting to php-fpm over fastcgi, using the standard /etc/nginx/fastcgi_params in the location block. When connecting to /.status (php-fpm.ini::ping.path) from the command line with ...
0
votes
1answer
2k views

php-fpm[2593] general protection - could someone explain?

Could somebody explain what this error means? What is ip, sp and what does the numbers stand for? If I grep -i "general protection ip" messages* I get below output. It is happening quite often and ...
0
votes
4answers
4k views

Magento Apache Config & Memory Issues

I have a Magento installation on a VPS that is giving me a headache. This particular VPS has a reasonable spec - 2gb Memory and 50gb storage. It runs a single domain, with a single Magento install - ...
1
vote
1answer
191 views

Linux cron spamming me then stops about php/suhosin

My server emails me when any messages goes to root. cron sends me messages. Today I got over 300 emails from my server all of which are PHP Warning: PHP Startup: Unable to load dynamic library ...
-2
votes
1answer
28 views

Storage displayed discrepancy from actual hard drive

In our ubuntu 14.04 server we have a 1TB Hard drive. The hard drive is displays as 998GB with 1% usage, however, with PHP software such as owncloud, it is only displaying 19GB of storage available. Is ...
0
votes
1answer
2k views

Unable to install phpMyAdmin via yum (remi)

I'm trying to install phpMyAdmin via remi and it seems like it's missing php-php-gettext: # yum --enablerepo=remi install phpMyAdmin Loaded plugins: amazon-id, rhui-lb Resolving Dependencies --> ...
1
vote
1answer
27 views

PHP-CGI.exe running rampant. Which website?

We have a Windows 2008 64-bit server running IIS 7 and serving about 40 different websites. Over the last few days we've seen a few php-cgi.exe processes consistently utilizing high CPU usage. The ...
6
votes
3answers
943 views

.htaccess redirect all extension to php

I recently updated my .htaccess file to hide the .php extension of the urls. It works nice, when I try to reach domain.com/index, it displays the php file. When I type domain.com/index.php it ...
0
votes
3answers
2k views

Cannot perform a PECL installation

I have been trying to do a few PECL installations, but all of them return the same type of error. Something related to timezones? Im running RedHat x86_64 es5. Attempting to install geoip-1.0.7: ...
-3
votes
0answers
19 views

I want to convert MS word file and styles to clean HTML using php [on hold]

I have been working on converting MS Word content to clean html but couldn't find any solution, I have tried everything which I could but failed. please help me sort this out. I need to make a tool to ...
3
votes
2answers
2k views

Equivalent of PHP setlocale in an APACHE config file

I need to display a date in french locale. A solution is to use setlocale(LC_TIME, 'fr_FR'); But I'm looking to set the locale directly in the configuration of my apache server. In the ...
0
votes
1answer
35 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
11 views

nginx sends 404 instead of waiting for fastcgi

Our nginx is configured to send thumbnails from a folder. If they don't exist, nginx has to pass the request to fastcgi to generate the thumbnail and send it to the user. If the requested doesn't ...
-1
votes
0answers
9 views

Two application deployed in openshift — Need to connect database to different server [on hold]

I have two web application deployed in openshift.redhat.com What i want to do is to connect one application database to another application database server. How can i do that ? Thanks.
-1
votes
0answers
16 views

Need to deploy php and java application together on openshift.redhat.com [on hold]

I have a Java and PHP Website. Front end code in PHP and Java call some library. How can i deploy php and java application together ? I have a java war file, PHP Code and One database file.
0
votes
2answers
752 views

Can't connect from EC2 to RDS via PHP. I can directly thought

I've set up an EC2 instance it has mysql and php-mysql installed (not mysql-server). I've set up an RDS instance and set the security group to the EC2 instance. I can connect via the command line ...
1
vote
0answers
14 views

Redis Sentinel false failovers

I'm having problems with Redis. I have 3 servers. Each server have 10 Redises working on different port. Also, each server has one Sentinel instance. Also, there are 5 application servers. Each ...
0
votes
0answers
32 views

php5 fpm consuming lot of CPU

My problem is with php5-fpm processes which are consuming a lot of CPU. Any single request from my website is resulting in CPU consumption of minimum of 20% to the max value. I've observed many times ...
7
votes
3answers
796 views

mysql “Too many connections” killed the network? [closed]

So I'm pretty confused here, figured I'd throw this out here and see if anyone else has any good ideas. We suffered a pretty big outage two nights ago, and I'm still searching for the root cause. I ...
4
votes
2answers
1k views

Apache/2.2.20 (Ubuntu 11.10) gzip compression won't work on php pages, content is chunked

I'm running into a problem with a new production server whereto I'm transferring projects. The HTML output of the PHP applications isn't compressed by the Apache mod_deflate module. Other resources, ...
2
votes
1answer
24 views

Segmentation fault when running any PHP

Update: I fixed this by running apt-get upgrade which updated many php packages, it must of been a buggy php extension which is now fixed I have vagrant running homestead (Ubuntu 14.10), when I ssh ...
2
votes
5answers
342 views

Self hosted Wordpress freezes for 20 seconds before sending the page

I have a website with Wordpress and PHPBB integrated - and it's been fine for months.. then all of a sudden, it's unbelievably slow to load. There are no errors in the apache logs, but looking at the ...
0
votes
0answers
18 views

Apache bad performance

I have Apache 2.4 on CentOs with mod_php (PHP 5.4). This runs on an Amazon EC2 large machine (m3.large) with a load balancer in front of it. There are 3 requests/second to a PHP file that returns ...
2
votes
1answer
18 views

Permission denied to connect Mongodb with PHP on EC2

I can't connect to the remote EC2 server with PHP because I got permission denied. However I could connect remotely by command line from the same server so it seems the firewall settings are fine and ...
-1
votes
1answer
28 views

Mail being marked as spam by gmail but only from certain addresses [closed]

I am sending the same message through the PHP mail() function using two different addresses in the header. When I send the email with contact@domain.com it is marked as spam by gmail but when I send ...
0
votes
0answers
15 views

Nginx extensionless PHP rewrite not working

I have been trying to rewrite my php pages so that they display without their extensions in the browser. For example, a link on my server at www.example.com loads a page called about-us.php and in the ...
-1
votes
0answers
14 views

Clean PHP Installation

I've recently purchased a VPS from Digital Ocean to move one of our more resource & traffic intensive systems to its own box. When including PHP files - I get the error message: Fatal error: ...
1
vote
0answers
21 views

nginx rewrite with php interpreter [on hold]

First off, Im new to nginx, I'm switching from apache. I setup a server using the ajenti control panel. I got php working just fine. however when I try to do a rewrite rule I get some strange ...
0
votes
1answer
1k views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...