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

What is using all of my memory on Ubuntu 12.04?

I keep getting alarms from Rackspace telling me that my memory usage is too high, but I can't seem to find the culprit. I ran top SHIFT + M to see top output sorted by memory, and this is what I get ...
0
votes
1answer
24 views

nginx + php-fpm + v8js crashing

I have a problem concerning v8js extension for php. I needed to install it on my server (and did) (CentOS 6.5, Nginx 1.0.15, php 5.5.12) but whenever I give such a simple test to it: ...
0
votes
0answers
39 views

Nginx server goes down when php file is executed in command line

We have a production nginx web server with php FPM. We ran a php script which updates a particular field in mysql database and mails some content using php mail function. This php script was executed ...
1
vote
1answer
59 views

Describing `strace` command output

I have php process which could not finish for more then 2 days. root 26511 0.0 1.6 407788 27684 ? Ss Jul09 0:08 /usr/bin/php action.php This is the output from the strace command: ...
0
votes
0answers
30 views

Can't access the DELETE method on nginx

I have run into a strange issue with my server setup. I have nginx installed with php-fastcgi and MySQL. I am using Slim Framework for running my website. For some reason, the DELETE method does not ...
0
votes
1answer
16 views

How to change the default timeout configuration file for composer

I've been searching all over the internet and I can't seem to find any help as to where my composer's configuration file is saved to. Basically what I'm trying to do is change the ...
0
votes
0answers
11 views

MongoDB Max Connections

we are using mongodb in our application for catching a lot of the data to reduce load from our main mysql database, for the last 2 3 days we are having an issue where the mongodb will hit the limit ...
-6
votes
1answer
28 views

I get apache error

Hi can you plese help me. I get an error on php apache and i dont't know how can i fix it. Error: [Tue Jul 08 17:55:44 2014] [error] [client 192.168.*.*] File does not exist: /var/www/name of ...
-1
votes
1answer
44 views

sending email from cron in html format not text

i am trying to send email every 1 hour from cron job which is executing a php script that fetches data from database and shows in a table format. i have CentOs 6.1 where i created my cron job.firstly ...
1
vote
0answers
25 views

command line alias inside php exec

Is there any possibility to define shell alias for commands executed via php system, exec etc functions? I'm running multiple versions of PHP using fastcgi and I need to run the right version of PHP ...
0
votes
0answers
18 views

Configure lighttpd/php-cgi to load different shared libraries

For some reason I messed up my webserver after a distro update to Debian GNU/Linux 7 (wheezy). When I try to start lighttpd with /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D I receive the ...
2
votes
2answers
44 views

Application access via AWS Load Balancer with autoscaling

I am configuring a test AWS architecture for a web application that I plan to migrate from a dedicated hosting service to AWS. What I have now is as follows : One MySql RDS, where my application ...
0
votes
0answers
36 views

Server load spikes after yum update and Laravel installation

The Platform: Centos 6.3 PHP 5.4.30 Apache 2.2.15 mysql Ver 14.14 Distrib 5.5.37, for Linux (x86_64) using readline 5.1 4 CPUs 12 GB RAM 1TB Hard Disk Prefork Settings for Apache <IfModule ...
0
votes
0answers
7 views

Max Memcache Sets per second on a given key [duplicate]

Let's assume I have a "counter" I am storing in a Memcached key, Let's say the value is a numeric value ranging from 100000 to 100000000000 (100B). So a key value with 12 characters or less in it. I ...
0
votes
0answers
29 views

How to correctly recompile PHP?

Using Ubuntu Server 14.04 x64 / PHP 5.5.9-1ubuntu4 (cli) w/ FPM / MySQL InnoDB version 5.5.35 Incredibly frustrated with what was supposed to be a minor issue. Basically, I'm being forced to ...
0
votes
1answer
20 views

Missing PHP libevent functions

I've instaled php-pecl-event library, but I cant see any library function: [root@server ~]# php -r "var_dump(function_exists('event_free'));" bool(false) [root@server ~]# php -r ...
0
votes
0answers
9 views

iis 8 already run php but does not run new app

I have an IIS 8 server that already run PHP. I set a sub-domain to the main domain and already I have PHP web applications run with it. sub.mydomain.com/smf is working fine However, I tried to make ...
1
vote
1answer
37 views

Apache doesn't render .php files after installing ius php55u

I've installed the IUS php55u on a CENTOS with virtualmin. All the php sites are broken now. When I use test.php it gives me only the html code. If I try test.php5 it renders the PHP code. Yet, in ...
-4
votes
0answers
25 views

Is this a good server for web hosting? [duplicate]

I am a Web developer and I worked in company. there are 200 employers in this company. also more than 100 employer outside company in branches. I develop a web application to transfer files from ...
2
votes
1answer
53 views

How to run HTTPD as specific user(s) and not by nobody?

Currently, top shows me that almost all httpd processes are run by nobody. "Almost" because 2 of them are run by root. How can i make it in such a way that given i have users say: dartagnan, porthos, ...
0
votes
1answer
57 views

How to configure sendmail properly with PHP on EC2 (no SES)?

I have been struggling with sendmail for couple of days with no luck. I am trying to setup relay host, after following the answers in this question ...
1
vote
1answer
64 views

Exim4 setup not working with piping

I'm trying to setup exim4 on the server, so that it can receive mail for a couple sub domains, and I want to pipe that to a PHP script. I want all incoming mail to be processed through my custom ...
1
vote
2answers
54 views

php pdo connection cannot be established, but mysql command line client can

situation as follows: php script on server a, run by user 'web' (nginx + php-fpm) should access mysql on server b via pdo library, but gets SQLSTATE[HY000] [2003] Can't connect to MySQL server on ...
0
votes
1answer
39 views

Is it possible to run apache as root, to execute scripts [duplicate]

I am unable to execute commands (shell_exec) with php, and read on stackoverflow / here that the solution was to run apache as root. Is this possible / is this a totally wrong solution? When I try to ...
0
votes
0answers
24 views

install ImageMagic library to php

When i try to sudo pecl install imagick i get this message: Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. ERROR: `phpize' failed And sudo ...
0
votes
1answer
143 views

502 Bad Gateway - Nginx, spawn-fcgi, WordPress

I host several sites on a CentOS VPS, and all was working fine until one of the WordPress sites on the server started returning a 502 Bad Gateway error. Other sites work fine. The WordPress site will ...
1
vote
2answers
149 views

error installing mysql client after installing remi php-mysql

after installing nginx with php-fpm thanks to remi repository, I get an error when I simply install mysql client : yum install mysql give me the following result (see bellow). Loaded plugins: ...
0
votes
1answer
56 views

Inconsistent behavior with Nginx's auth_request_set and more_set_input_headers

I'm trying to use the auth_request module in conjunction with the more_set_input_headers to automatically login my users into web apps. Basically, it works like this: Users have some session cookie ...
0
votes
2answers
33 views

How can I set the default permissions for files uploaded by apache2?

When I upload files through php, it writes the file with the permissions 644 (-rw-r--r--). I have my /var/www/html folder setup with setgid, so that all files uploaded are set to a group that should ...
0
votes
0answers
24 views

is nginx + php5-fpm sufficient for long polling?

On my web application, I need to implement live notifications. I use nginx with php5-fpm. Digging through php5-fpm's configuration, I found out that it has a limit on the number of php scripts that ...
0
votes
0answers
41 views

Nginx & PHP: How to install / activate PDO

I have an nginx server with PHP running on Windows Server 2012 and I want to install Collabtive. This web-based project management software requires PDO to connect to a MySQL database. The ...
0
votes
1answer
39 views

Exim4 envelope-from using PHP mail()

I've set up an exim4 server for sending email only on Debian Sid. If I just send an email it works fine and the email is delivered in my inbox. However, if I send an email using WordPress it is ...
0
votes
1answer
40 views

How to live a Pleskless life? [closed]

I have always used Linux with Plesk when hosting web projects. It's easy to host multiple websites and setup email accounts but I realized it's overkill sometimes. I think it uses a lot of resources ...
0
votes
1answer
28 views

Linking to items outside of the web root

Here is how the directories are laid out on my server (I inherited this and cannot change at the moment) - /var/www/<stuff for the web> /home/project/src/static/<some CSS, some JavaScript, ...
1
vote
1answer
29 views

How do I find what PHP script is changing the file

I have apache installed with mod_php PHP5. I've been able to find out that apache process is changing my .htaccess and index.php files in /var/www directory. All files in this directory are owned by ...
0
votes
0answers
24 views

IIS IIRF Script conversion to Apache server script

I am working on moving a website from an IIS server to Apache/AWS. I am trying to convert an IIRF script so that I may use it on an Apache server website. My script is as follows: RewriteLog ...
1
vote
2answers
53 views

CentOS6 PHP extension install: Cannot find php-config. Please use --with-php-config=PATH

This may seem trivial to some, but I have been developing on Windows all my life and only moved to Linux this week - all is new to me. I've been following The following guide on how to install php ...
0
votes
1answer
24 views

Is it viable to run a script that serves images from database?

I run a very dynamic game review site. All the images (screenshots, game thumbnails, user profile pics, etc.) are served via a PHP script on the server. It takes the id as a parameter and reads the ...
0
votes
1answer
50 views

Server incremental backup to AWS Glacier

I'm looking to backup various directories and files from a Linux server to AWS Glacier. I'm trying to work out the details on how to do manage this. Incremental Backups I want to upload files ...
0
votes
1answer
71 views

Install php 5.5 on centos with puppet

I am trying to get a more recent version of php and mysql on a centos 6.5 x64 box. I added the yum repos epel and remi and have the remi as a dependency for php but it will not install. The error I ...
0
votes
0answers
30 views

APCu - NO HIT and / or MISS. What am I missing?

I just installed php-pecl-apcu: # yum info php-pecl-apcu Loaded plugins: amazon-id, priorities, rhui-lb 4 packages excluded due to repository priority protections Installed Packages Name : ...
0
votes
0answers
24 views

How to approach SSL encryption with file uploads

I added SSL to a site I'm putting together, and it caused a huge error that I have no idea how to approach. The user logs into the site, which allows them to upload files to the server into a ...
0
votes
1answer
25 views

Directadmin: an error while trying to configure php

I'm trying to build PHP on a Centos6.5 system with Directadmin and it fails on configure step: checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no ...
0
votes
0answers
37 views

Laravel: Cant set JSON utf-8 charset [migrated]

I have a specific problem in Laravel . When I use echo or print_r or var_dump my data (retrieved from eloquent) are printed in the right format (UTF-8, greek language). But when I use return ...
0
votes
1answer
18 views

How can I update php using zypper?

I'm currently running 5.3.17 and I'd like to update to the latest stable version. I've looked up a bunch of guides and they all have me doing it manually using wget. I'd like to do it all through ...
0
votes
1answer
33 views

Configuring Exim4 on Debian 7 and PHP

I followed this tutorial on Linode to setup a send only mail server: https://library.linode.com/email/exim/send-only-mta-debian-6-squeeze It works but with some oddities. Sending email with PHP ...
0
votes
2answers
56 views

IIS 7 Access Network drive with credentials

I have an IIS 7 server with a PHP application running on it. This application needs to be able to connect to a network drive that has username and password required. This drive is connected at log ...
0
votes
0answers
30 views

Maintaining a progress counter across multiple PHP worker threads using Gearman

I've set up an Amazon EC2 instance running Gearman and 10 worker threads written in PHP. I'm also utilising MySQL and Redis. For each user that signs up to my website up to 1,000 Gearman jobs are ...
0
votes
0answers
16 views

PHP sessions in memcache - secure session path

Memcached is fine for sessions as I read. But what safe? Today we have more clients on one server. Every virtual host have own session.path. This is safe to prevent read sessions from other domain. ...
2
votes
1answer
51 views

centos + php leak memory, but where?

I have a big php cronjob that run every 20minutes. After each execution the RAM memory used by the virtual server increase and not properly free once the script is terminated! But why? The memory ...