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
votes
0answers
6 views

how to compile php5apache2_2.dll [on hold]

I have compiled Apache 2.2 then compiled php5.3 with VC++9. I wish to run php5.3 as a module in the Apache which I compiled. Apache is running at port 80 but I can't configure httpd.conf because I ...
2
votes
1answer
17 views

My browser showing the code instead running the php code [on hold]

I wanted to upgrade my PHP from PHP 5.2 to PHP 5.6 but counter an error and so I rolled back to the previous version. Now when I try to access my localhost website is displays RAW code rather than ...
0
votes
0answers
12 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
1answer
51 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
13 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
31 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
18 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
13 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
22 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
18 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
56 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
13 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
31 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
24 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
24 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
23 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 ...
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
60 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? [closed]

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

multi-tenancy saas isolated database configuration [closed]

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
15 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
14 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 ...
0
votes
0answers
18 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
43 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
27 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
53 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
40 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
29 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
35 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
vote
1answer
41 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
31 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
28 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
29 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
15 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
23 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 ...
-1
votes
1answer
31 views

Exim4 server setup and configuration with remote SMTP

I am trying to setup exim4 server with remote SMTP server. Here is my configuration for Exim4. dc_eximconfig_configtype='smarthost' dc_other_hostnames='test.com' dc_local_interfaces='127.0.0.1;' ...
0
votes
0answers
18 views

session.save_handler memcached cluster/failover

I found the following article about clustering memcached; but it uses the memcache php extension and I am using memcacheD extension. Here is the article: ...