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

Multiple webservers using PHP files stored on only one server?

Is it possible to have multiple webserver nodes that are balanced by a load balancer use PHP files stored elsewhere on the local network? Right now, I have two nodes and static content (uploads, file ...
1
vote
0answers
25 views

error: incomplete chunked encoding in php scripts

Trying to run some php scripts on a new shared server account, the scripts constantly hang and timeout with no error messages. Only when running the scripts in Chrome with the web developer console up ...
0
votes
0answers
10 views

PHP Cannot Write to Directory the Process User Owns (Fedora LEMP)

I am having a permission issue with PHP running on a Fedora 22 LEMP install. PHP cannot write to a directory owned by user 'nginx' in the group 'nginx' with permissions of '744'. The PHP FPM socket ...
0
votes
1answer
29 views

Cron job with PHP script doesn't work properly

One of my customers have PHP script which loads cvs file. When he execute this script via WWW it works properly - logs of loaded data are stored in /var/php/CLIENT/loaded.log. But when i try to ...
0
votes
2answers
27 views

mod_rewrite gives 404 error

I'm making a CMS and trying to convert post links to pretty ones like so: Original Link: http://localhost/index.php?id=13&category=Uncategorized&title=just-a-link Converted Link: ...
0
votes
0answers
14 views

After install mod_security and mod_evasive, php not working

I followed this tutorial ( tutorial.centos.com.my/?p=69 ) and got success to install mod_security and mod_evasive. But php does not run, displays the code in the browser. Insert an index.php file in ...
0
votes
0answers
10 views

Different caches based on cookie for same URL on Varnish

I have a PHP code that returns different output based on a request cookie value. When Varnish is disabled all works great, but with Varnish the cached page is one only and doesn't respect the ...
0
votes
0answers
17 views

Apache Failure on Centos 7 not starting

hellau everyone, i have a problem, that i cant resolve alone, so i need your help. i have installed on a centos 7 apache when im asking for the status of the service (systemctl status httpd) so i ...
1
vote
0answers
16 views

Nginx can't speak with uwsgi (prematurely closed connection)

What I'm missing in my nginx/uwsgi/php-embed configuration? rpm -qa|grep php php-cli-5.4.16-36.el7_1.x86_64 php-xml-5.4.16-36.el7_1.x86_64 php-devel-5.4.16-36.el7_1.x86_64 ...
1
vote
0answers
34 views

Installing Imagemagick on CENTOS 6.7 x86_64 plus all dependencies

First off I need to mentioned that working with servers is not my specialty and it is new to me. I have followed various tutorials and examples but keep running into dependency issues. As I understand ...
0
votes
1answer
29 views

“Memcache can't connect, connection refused (111)”?

First of all... I must say, I don't know much about servers. I'm the kind of php developer that don't use command lines very often. I'm very uncomfortable in the Terminal. However, I'm learning. I'm ...
-1
votes
0answers
8 views

Configure Horde in cpanel [on hold]

I have an admin panel running over c-panel server. Now i wish to configure mail services(IMAP) over it but i am facing some issues, i am completely new to this mail service part, so would appreciate ...
-1
votes
1answer
12 views

php.ini 500 error when register_globals = On

i am using PHP Version 5.4.44 and have a setting in my php.ini as register_globals = Off i am trying to set it as register_globals = On but it is not working and through me an error as 500 ...
0
votes
1answer
30 views

httpd error log “Error: Document has not the mandatory ending %EOF”

The company I work for recently outsourced a website rebuild, and along with it came a CMS. Despite my lack of expertise, I am the nominated server expert. Go Figure. Anyway, when trying to ...
-4
votes
0answers
16 views

LEMP Setup on CentOS at DigitalOcean [on hold]

I'm following this tutorial. I got some issues start from step four: Configure Nginx to Process PHP Pages. After I typed this $ sudo vi /etc/nginx/conf.d/default.conf. I can't find server { listen ...
-2
votes
0answers
14 views

how to make php scripts executable instead of downloadable using nginx

Recently I set up a virtual machine through vagrant and I'm using nginx as a web server. The OS I'm using for the VM is Ubuntu Linux 12.04. The problem is that any script I write in PHP gets ...
0
votes
2answers
21 views

Optimizing Apache + PHP 5

I have a dedicated Ubuntu box with a Plesk panel. My php files take a couple of seconds for the ttfb at random. Most requests are server lighting fast but after a couple of refreshes it waits very ...
1
vote
0answers
13 views

Use different client IPs with mod_rewrite and mod_remoteip

I have a reverse proxy that my site points to to help with DDoS protection. I have mod_rewrite set to use a specific header provided by the reverse proxy in order to pull the actual client IPs instead ...
1
vote
0answers
22 views

How to install PHP xdiff extension on Debian?

I am trying to install the PHP xdiff extension on Debian with Apache 2 and PHP Version 5.4.44, but I can't get it working. I tried the following pecl install xdiff But I got errors: […] checking ...
0
votes
2answers
21 views

ImageMagick suddenly stopped working on several of our servers

Overnight, the PECL ImageMagick extension suddenly stopped working on several of our servers. The error message displayed was as follows: PHP Warning: PHP Startup: Unable to load dynamic library ...
-7
votes
2answers
49 views

How to secure server when the root password is changed [closed]

I have a server now and I do a web application for my customer, I have the server credentials, what if my customer changes the server credentials after I have completed the application, I don't get ...
0
votes
0answers
6 views

Safe PHP prevent overriding php.ini extension, how to exclude a user?

In WHM > Easyapache, there is this PHP extension : Safe PHP CGI - prevents users from overriding system php.ini Screenshot ...
0
votes
1answer
53 views

Apache and php5 fail on ubuntu server

I update a PHP 5.5.28-1+deb.sury.org~precise+1 (cli) and have apache Apache/2.2.22 but when run a restart apache2 apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Syntax error on ...
0
votes
1answer
9 views

Does Opcache fix eAccelerator's and XCache's memory leak bugs?

Both XCache and eAccelerator have a memory leak bug which will leak memory if you include the same file tens of times in a loop, even though the code executed in the file does not use up any memory at ...
0
votes
0answers
25 views

Server becomes unresponsive while under load

We have a server setup containing 2 webservers, a RDS MySQL cluster and a loadbalancer, on AWS. The webservers are running PHP and Nginx, and contains multiple services each. We have a service ...
2
votes
1answer
60 views

Website sometimes takes long time to load

I am running a LAMP system with Ubuntu 14.04. I have 4 cores and 8GB Ram on my server The problem is that when I connect to my website after idle period( 2-3 hours or more) the it takes lot of time ...
0
votes
1answer
33 views

How can I access comand line like cmd.exe on my dedicated linux server? [on hold]

I have installed the ffmpeg by composer in my local server(windows7) and everything is working good now the site is live on internet (server CENTOS 6.7 x86_64 kvm) and I need to install it to the ...
0
votes
1answer
21 views

multi-tenancy saas isolated database configuration [on hold]

I'm currently researching the world of Multi-tenancy SaaS environments which run on the isolated database configuration. I'm looking to further understand the provisioning of new accounts (creation ...
0
votes
0answers
14 views

Random/Intermittent PHP require_once error

I have an unusual problem that is hard to nail down to a specific cause. I'm running a WordPress website on PHP 5.6, IIS 8.5 and Windows Server 2012 RT2 In the past and more frequently this week, ...
0
votes
0answers
7 views

php_gearman - Sometime throws GearmanException: Failed to set exception option [closed]

We have Debian Wheezy 7.7, gearmand 1.1.12, php_gearman 1.1.2, tinc 1.0.19. The following code sometimes, not 100%! cases which makes it hard to reproduce and debug, throws GearmanException: Failed to ...
0
votes
1answer
19 views

Different versions of MediaWiki on the same server

From what I can tell, people install multiple instances of MediaWiki on the same server all the time. However, I am not sure if you can install different versions of MediaWiki on the same server. ...
1
vote
0answers
12 views

Piwik + uWSGI setup

I have a problem setting up uWSGI+piwik using nginx. My configuration follows this blog entry. My uwsgi ini file looks like this [uwsgi] plugins = php chown-socket = www-data:www-data uid = piwik gid ...
-1
votes
0answers
20 views

What is the best providor / server to host my web-application on? [closed]

I was curious about what currently the best web service / providor is to host my web-application on. The website I wrote is similar to Instagram and has therefore to have one of the best connection ...
0
votes
0answers
17 views

safe way to parse and display email content in webpage

i have a small website i made which pulls in an email from a directory on the server and displays it. Now it displays all the images, text and html. And javascript. Does anyone know what i should and ...
-4
votes
1answer
42 views

How to detect which PHP script is sending SPAM [duplicate]

A php script is sending tons of emails. I want to detect what is the source. All emails are sent by the use www-data which the user used by apache. When I check process, I have this result : www-data ...
0
votes
0answers
25 views

Setup LDAPS authentification in Zabbix

I try to setup LDAPS authentification on Zabbix 2.4 but it's not working. Here is the infos on my configuration : OS : Debian PHP packages installed : libapache2-mod-php5 php-pear php5 php5-cli ...
2
votes
1answer
52 views

Multiple static files directories, single PHP FPM server

I have two directories which I need to serve static assets out of: /srv/web: Static assets which include images, JavaScript, HTML, etc. /srv/php: Dynamic PHP scripts alongside some static assets. ...
0
votes
0answers
24 views

RDS connection blocked despite security group “Allow all traffic, all ports, all IPs”

I can only connect by ssh-ing into my ec2, and then using mysql from the cli. I can not connect: ssh-ing into my ec2, and connecting from PHP mysql command line on my local machine. I cannot ...
1
vote
1answer
39 views

SQL Query overloading server

I have one php file which is getting called very often for a session check of an external application. I don't know how many calls there are every second, but I think it may be like 20-100 calls every ...
2
votes
1answer
25 views

Send mail service start error

I installed sendmail on CentOS based on some tutorial. When I start sendmail, it showing sendmail failed error. Here the following command result: systemctl status sendmail sendmail.service - ...
0
votes
1answer
32 views

PHP-FPM is not working with htaccess

I have a VirtualHost: <VirtualHost *:80> DocumentRoot "/var/www/html/example.com" ServerName example.com ServerAlias *.example.com <Directory "/var/www/html/example.com"> Require all ...
0
votes
1answer
32 views

phpinfo showing HTTP_ALLOWCOOKIES set to NO - how to change?

We have a dev and live server that were seemingly built identically. However the live server phpinfo() page shows the following in the "Apache Environment" section HTTP_ALLOWCOOKIES NO Don't see ...
-1
votes
0answers
24 views

Synology php open_basedir not working as expected [closed]

I'm trying to install gitlist on my synology NAS (DSM 5.2). I configured gitlist in config.ini and pointed it to my repositories folder (/var/services/homes/git/repo). But when I try to access the ...
1
vote
1answer
39 views

How can I get LDAP to pass the currently logged-in user's credentials to a local Apache server?

I'm trying to get SSO (single-sign on) working on a local osTicket installation. I found the HTTP passthru plugin on the osTicket website and have installed it in osTicket. I've made sure the plugin ...
0
votes
0answers
25 views

Filter out PHP Notice from Apache2 logs while keeping verbose settings in php.ini [closed]

Is it possible to filter out PHP Notice entries from Apache2 logs before writing but without manipulating PHP logging levels? The rationale is: we need both reasonable Apache2 error logs and quite ...
0
votes
0answers
30 views

apache 2.2 to 2.4 sporadic performance drop

I updated apache from 2.2 to 2.4 and php from 5.3 to 5.4. For some reason I am experiencing huge performance drops in around 5% of requests to the server. On average, sites load in less than 2 seconds ...
0
votes
1answer
25 views

PHP Sockets. Better on multiple ports or not?

I have been running my server for the past 6 years without any problem, but recently ran into some trouble. I am getting a lot of SYN_RECV connections which is pushing the backlog of connecting ...
0
votes
0answers
24 views

Suspicious SELinux Audit Log Entries PHP-FPM Write Denied - How to investigate?

I found a few /var/log/audit/audit.log entries which have me a little bit concerned. SEAlert explains them as such: SELinux is preventing /usr/sbin/php-fpm from write access on the directory ...
0
votes
1answer
14 views

How to write more than one mod-rewrite rule?

I always used the following rule to manage urls: Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^.*$ ./urlredirect.php ...
0
votes
1answer
22 views

Sporadic problems saving edits in MediaWiki

In our Wiki (http://scratch-dach.info MediaWiki 1.25.1, PHP 5.3.29, MySQL 5.5.44-log) we have sporadic problems when saving edits. At irregular intervals the Browser tries to download the ...