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

Apache serving modified static assets incorrectly: serves obsolete file with sizes adjusted to match that of the new file [duplicate]

I've got a CakePHP project running in a CentOS VirtualBox. The website is served with Apache 2.2.15. There are JS files in the document root folder. Apache seemed to serve them file. But after i ...
0
votes
0answers
33 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
0answers
9 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
28 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
56 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
21 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
12 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
9 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 ...
-1
votes
0answers
15 views

How to replace memcached with couchbase? [on hold]

I have a strange problem. I have a codebase of website written in PHP using Symfony Framework. I have seen code using memcached at many place. I want to replace memcached wit couchbase. Is there a ...
-6
votes
1answer
25 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
31 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
21 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
10 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
1answer
30 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
26 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
25 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
14 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
6 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
34 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 ...
-2
votes
0answers
11 views

simple Apache jmeter test [closed]

I have a very simple test case. I want to login and logout of a php application (SugarCRM) multiple times. I have successfully carried out a couple of basic tests but I don't seem to get the hang of ...
-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 ...
0
votes
0answers
36 views

Parts of server not found throught HTTPS [closed]

I have installed an SSL Certificate on my site which works fine when directly accessing .html files on the server. However when trying to acccess any .php file I receive the following error ...
2
votes
1answer
42 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
45 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
votes
1answer
36 views

PHP Warning: PHP Startup: unable to load dynamic library [path-to-file]/mcrypt.so [closed]

PHP 5.4, Centos 6 with cpanel Easy solution: find out where the heck mcrypt.so is and copy it into that directory. $ updatedb $ locate mcrypt.so /opt/libmcrypt/lib/libmcrypt.so ...
1
vote
1answer
58 views
+50

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 ...
-2
votes
0answers
13 views

how to create a SIP request with specific header fields values [closed]

I'm an intern at a telecommunications operator and my task is to create an application that enables me to send sip (session initiation protocol) requests with the header fields values that i specify , ...
1
vote
2answers
29 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
34 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
21 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
0answers
28 views

Dropbox redirect in Nginx [on hold]

I've been trying to translate Lee Byron's dropbox redirect to Nginx. His method uses .htaccess and php. I think ive got it working but as im inexperienced, maybe theres a better way of going around ...
0
votes
1answer
87 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
83 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
41 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
1answer
25 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
22 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
25 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
27 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
38 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
27 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
26 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
41 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
22 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
39 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
55 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
23 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
22 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
19 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 ...