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
10 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
15 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
14 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 ...
-1
votes
0answers
15 views

MySQL count row values [on hold]

I have a table like this: id user_id box_id ip_id name cost 1 1 1 1 name 10 id user_id box_id ip_id name cost 2 2 1 1 name 10 how to count total cost in php ...
-7
votes
2answers
46 views

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

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
28 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
8 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
51 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
31 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
11 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
6 views

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

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
17 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
9 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? [on hold]

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
12 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
41 views

How to detect which PHP script is sending SPAM

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
19 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
44 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
22 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
37 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
24 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
29 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 ...
0
votes
0answers
22 views

PHP can't find pdo_mysql driver [closed]

For some reason my PHP cannot find the pdo_mysql driver when I do have that file in my ext directory and I have also uncommented the below lines from my php.ini file: extension=php_mysql.dll ...
-1
votes
0answers
22 views

Synology php open_basedir not working as expected [on hold]

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

VPS slow after hard disk installation [closed]

I had my hard drive increased 50 GB on a centOS 6.7 VPS. Immediately after reboot the response time to the web server has increased 200%. Top shows a large number of PHP processes with low memory ...
1
vote
1answer
32 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 [on hold]

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
26 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
23 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
22 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
13 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
20 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
26 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
16 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: ...
0
votes
1answer
20 views

built-in php cannot connect to homebrew mysql through localhost on osx mavericks [duplicate]

trying to install wordpress on osx mavericks (with built-in apache+php and homebrew mysql). mysql -u root # connects php -r 'var_dump(mysql_connect("localhost", "root", ""));' # doesn't connect ...
0
votes
0answers
18 views

Can't change memory_limit on PHP 5.5.9 on Ubuntu 14.04

I'm running PHP on Nginx using fpm. The reported memory_limit is 128M and i cannot change it for the life of me. PHPInfo: Server API: FPM/FastCGI Config file: /etc/php5/fpm/php.ini Memory ...
0
votes
0answers
4 views

Parallels Plesk Apache dedicated server shared IP / A Address serving default page [migrated]

My Website Works when you go to it, however Google Adwords is telling me that my site is redirecting/ not showing up properly to their bots. When you put the site into a website checker like GT ...
1
vote
1answer
73 views

Curl returning error 52 or 56 with REST API call spanning more than 5 minutes

So I have been trying to figure this one out for about a week now. Here is the run down: I use CURL in PHP to pull data from an API. As the response to the API call gets bigger (pulling over 15k ...
0
votes
2answers
28 views

What should I look for when getting a web host for a Wordpress site and php API's?

I am an iOS developer and I want to expand and get a server (not to buy it, web hosting...i guess). I want a place where to put a site(probably WordPress site&blog), and a place where I can put my ...
0
votes
0answers
29 views

Nginx laravel and wordpress

I need to add wordpress under domain.com/blog. I have two folders: /srv/www/laravel/ (laravel 5) /srv/www/blog/ (Wordpress) All domain.com routes should be managed by laravel except ...
-2
votes
0answers
26 views

Apache2 “caching” my pages, while I don't have cache installed [migrated]

just to know, I am not a system admin (I mean this is not my job), and I try to configure my apache just to produce my projects. My system is Ubuntu 15.04 and I have installed Apache2 Apache/2.4.10 ...
0
votes
1answer
30 views

Force PHP mail to avoid using postfix root@myorigin; use /etc/mailname instead?

I recently posted an issue setting up a mail server with postfix and virtual aliases. I solved the problem here: Postfix/Dovecot - Multiple Domains and Multiple Linux Accounts To sum it up, I set ...
0
votes
0answers
37 views

Random 502 errors only with phpMyAdmin throgh nginx/php-fpm, with php segfault

I'm using nginx and php-fpm on many servers. Some have php 5.4 with APC and others 5.5 or 5.6 with opcache. PhpMyAdmin on servers on 5.4 work without any problems. PhpMyAdmin on servers on 5.5 or 5.6 ...
0
votes
0answers
3 views

How to upgrade php-fpm on OSX Yosemite 10.10.04? [migrated]

Currently I have this on my machine Milans-MacBook-Pro:local vaske$ brew install php56 Warning: homebrew/php/php56-5.6.11_2 already installed Milans-MacBook-Pro:local vaske$ php -v PHP 5.6.11 ...
0
votes
0answers
79 views

Connecting to MSSQL db (PDO, FreeTDS, ODBC)

I have an Ubuntu 12.04 server and I'm trying to establish a connection to a MSSQL database. I've managed to connect using tsql and isql, but osql doesn't work and connecting with PHP using PDO also ...
0
votes
0answers
59 views

Nginx throws a 404 error when trying to access a CodeIgniter (PHP) controller

I'm trying to use CodeIgniter with Nginx. I'm on development so I'm running on localhost. This is my /etc/nginx/sites-avaiable/default file: # You may add here your # server { # ... # } # ...