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
vote
0answers
24 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
15 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
43 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
28 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
19 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
52 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
55 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
63 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
52 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
131 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
127 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
52 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
37 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
37 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
49 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
46 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
66 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
29 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
24 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
50 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
50 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 ...
0
votes
0answers
51 views

Why does PHP fail to open files (permission denied) under IIS with integrated Windows authentication?

I have a PHP script running under IIS for our intranet that is trying to open a file on another machine via a UNC path. I've enabled integrated Windows authentication so the $SERVER['AUTH_USER'] ...
0
votes
0answers
31 views

PHP Script Time Out - Fastcgi

I have a PHP script that times out after 7 mins. The page then displays - 500: Internal Server Error. I have tried to increase nginx and fastcgi timeouts but the issue remains. Also nothing shows up ...
0
votes
1answer
18 views

PHP-FPM user permissions after restart

For some reason after I restart php-fpm daemon, files that were generated using PHP (Twig templating cache) aren't accessible by PHP anymore. I think it's something to do with php-fpm user/group ...
0
votes
1answer
171 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 --> ...
0
votes
0answers
17 views

No PHP Errors with ini_set on IIS 7.5?

Ok, so i tried about everything i have read on the internet. And still no go. The problem i am having is that i can not display PHP errors in a specific folder on a IIS server. I have a IIS server ...
0
votes
0answers
57 views

How to figure out nginx 502 errors when logs are ok

I'm running a blog (on Wordpress) with nginx 1.6.0 + HHVM 3.1.0 + memcache on Ubuntu 14.04. Every few hours (~12-20h), nginx throws a 502 error and my blog gets down. I tried to figure it out, but I ...
0
votes
1answer
42 views

Getting warnings while “make test” PHP on Mac OS X (MySQL PDO->prepare()) [closed]

Here are the results of "make test": ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- ...
2
votes
0answers
29 views

Nginx + wordpress in different directories [closed]

Trying to get a /blog working with wordpress alongside an existing application running at root (also php). Cant seem to get wordpress running with assets. Any ideas? server { listen 443 ...
-1
votes
1answer
22 views

Running PHP in HTML Files on NginxProxy Centos

I have a ngnixproxy server on Centos 6.0. Wordpress and php files are running fine. But I have a static site with an html file with php code in it. The code is not working and the server is ...