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

Apache on Centos 6.5 Purge of LDAP cache failed

My logs are filling up with: Purge of LDAP cache failed I have researched as much as I can, and I cannot find a fix. I am running the latest (as of this post) version of Apache, PHP and all of the ...
1
vote
1answer
1k views

Which PHP modules are required to install wordpress?

I have 5 wordpress sites. I use hostgator shared hosting for all of them. Now I have decided to switch on to a VPS. I got a unmanaged VPS and configuring it for wordpress. I am following this ...
0
votes
4answers
3k views

Can't connect to mysql server (13) using php function

I opened every links google results had thrown to me in regards to this MySQL error. I have been spending hours to get this to work.. I have a web server (apache in centos installed in host B, and ...
2
votes
5answers
403 views

How to install wordpress without a web browser

What I am trying to do is to automate wordpress website creation for the company I am working on. We have lots of information in our database for our customers and we want to create a wordpress ...
6
votes
2answers
2k views

Php pdo_dblib - cannot find/unable to load freetds

Self-hosted box, RHEL 6 PHP 5.3.3 PDO installed freetds installed pdo_dblib - so far no luck installing My goal is to use PDO with sybase. Attempting to install pdo_dblib from the appropriate ...
3
votes
0answers
59 views

Odd performance fluctation with php-fpm and nginx

I'm running a load test against a web service. It's a php application running on php-fpm and nginx, with fastcgi. There is a MySQL backend being used for small reads only. Invariably, I'm seeing a ...
0
votes
2answers
895 views

500 No response from subprocess (php): subprocess exited with status 127

Got an issue at the moment, where any of the cpanel webmails are accessed, we are getting 500 No response from subprocess (php): subprocess exited with status 127 I've tried the following; yum ...
1
vote
2answers
40 views

SSL Support for PHP 5.3.3 and Apache

After a solid day investigating why I can't get my application to connect to a remote server over SSL using PHP PDO, I found PDO::MYSQL_ATTR_SSL..., but it seems that they exists only for 5.3.7 or ...
0
votes
0answers
29 views

file_get_contents extremely slow when executing on IIS 7

I just installed IIS with PHP on my Windows Server 2008 R2, and I've noticed when using PHP's file_get_contents() function, it loads extremely slow (7+ seconds). echo ...
0
votes
1answer
36 views

how to install an older version of a pecl package

I have this code $passengerId = new \MongoId(oPassenger->getId()); return $this->createQueryBuilder('Device') ->update() ->multiple(true) ...
0
votes
0answers
38 views

PHP use socket connection when use “localhost”, but when use 127.0.0.1 use tcp

I have a cPanel server where i move the mysql service into another server, all databases has ben moved by mysqldump and it work very well. On cPanel server, where there are all php sites, i just ...
0
votes
1answer
821 views

Error in osm data data import while nominatim installation

I am doing nominatim installation on my server. I run the following command ./utils/setup.php --osm-file /usr/share/osm2pgsql/planetfile/planet-latest.osm.pbf --all to import the pbf file and Few ...
-1
votes
0answers
13 views

Determining max concurrents on a LAMP stack, and related questions [duplicate]

Consider a basic LAMP stack with clients continuously long-polling it for anywhere from, say, five to 15 minutes at a time. (Note that the period of long-polls is around 30 seconds max; the five to 15 ...
0
votes
1answer
76 views

NGINX redirect attempts download instead of rendering image

I've got a PHP page that renders a dynamic image /scripts/oem-image.php?brand=$1&sku=$2 break; I'm trying to do a background redirect (keep the original url) from a .jpg link. For instance, if ...
0
votes
0answers
43 views

Using Fake Sendmail with PHP

When attempting to send from PHP via sendmail it just hangs. Using IIS sendmail.ini is setup correctly because from command line I can send a test email via the following sendmail -t < ...
0
votes
0answers
18 views

Duplicate DB and files

I'm creating a group of websites using the CMS Concrete5 has models to be presented to my clients. My idea is that they can choose each one they want and deploy a new subdomain with a model ready to ...
0
votes
0answers
53 views

Shibolleth does pass attribute to server variable in PHP

I am building a SAML based federated authentication mechanism in which the IdP is ADFS 2.0 and the SP is Shibboleth running on Linux. I am able to do the following: Attempt to access a protected ...
1
vote
2answers
227 views

Binding to LDAP server works great with PHP CLI, but fails when tried via the web

I have a test page (PHP), that binds to an ldap server. When I run php test.php, everything works great. It binds just fine. However, when I go to http://my.domain.com/test.php, it won't bind at ...
0
votes
1answer
1k views

uploading via http post (multipart/form-data) silently fails with big files

When uploading multipart/form-data forms via a http post request to my apache web server, very big files (i.e. 30MB) are silently discarded. On the server side all looks as if the attached file was ...
-1
votes
1answer
37 views

Varnish with PHP FastCGI / Change FastCGI server port

I want to run Magento with Varnish Cache. So far my PHP runs as FastCGI. I am now trying to set up Varnish. And have a probably pretty stupid question. So as I understand Varnish will listen on port ...
0
votes
1answer
18 views

sending e-mails via sendmail using virtual-users

Currently my sendmail send e-mail with following header: Received: (from www-data@localhost) I want this header to be like: Received: (from contact@mydomain) but I am also hosting multiple ...
0
votes
1answer
963 views

memcached install issues with lib event on server

I've installed libevent on my server in the directory root/data/ and have i'm about to install memcached with ./configure –with-lib-event=/data/; make; make install However, after running a bit I ...
1
vote
6answers
906 views

How can I run a script from cron only once at a time?

I would like to run a cron job. Scheduling it is easy and works. My problem is that I don't know how to only have one version of itself running at a time. Any ideas? G-Man
1
vote
1answer
32 views

Forbidden - for a php webiste with apache, although it shouldn't be

I can't run a php from my custom location: $ cat /etc/apache2/sites-available/000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot ...
0
votes
0answers
20 views

use PHP over FastCGI instead of mod_php

I have a debian wheezy server with apache. Generally I want to use PHP as a apache-module. But on some virtual hosts I want to use PHP over FastCGI instead of mod_php. How can I switch off mod_php on ...
-3
votes
1answer
128 views

How to install Horde Webmail on Ubuntu 14.04? [closed]

Am using Ubuntu 14.04. Am stuck with the following issue: My goal is to install and have running HORDER GROUPWARE 5.2 on my Domain/Hosting: Download on Github: https:// github ...
0
votes
1answer
20 views

Set base directory for dynamic virtual hosts

I use Dynamic VirtualHosts for a hosting service I run. Currently, it only allows static sites, however I'm working on a new version which will support PHP. This clearly opens some security issues. ...
1
vote
2answers
331 views

Error while installing php extension 'expect'

I got some serious error while installing expect extension in PHP. I ran sudo pecl install channel://pecl.php.net/expect-0.3.1 I got error like this while running make, running: make /bin/bash ...
-2
votes
1answer
34 views

DNS, SPF Web Form, Mail not arriving [duplicate]

I need to be able to receive emails from my php webform on my website, I use Google Apps for the mail recipient and my website is hosted with Godaddy. I receive email from other places and I have ...
1
vote
2answers
47 views

ssh connection failed via php

ssh connection failed via php Trying to connect to ssh using a php script via a webserver. I work on a MacOsX. I changed apache's User and Group (_www:_www) to my own User and Group (). The command I ...
6
votes
1answer
6k views

Apache .htaccess <ifModule not allowed here

Running Apache on Ubuntu Precise, with PHP 5.5 Trying to access my var/www/ gives me a 500. /var/log/apache2/error.log shows: /var/www/web/.htaccess: <IfModule not allowed here my .htacess is ...
0
votes
0answers
12 views

Setting newrelic.appname dynamically via apache

We use mod_vhost_alias to set up and destroy our websites quite quickly without having to restart apache and we'd like to add New Relic monitoring to each site. We wish to automate the appname ...
0
votes
2answers
1k views

php fpm spawns new children even if limit is not reached

My php fpm process gives me the following warning: [29-Apr-2014 13:06:10] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 ...
-1
votes
2answers
3k views

Unable to allocate memory for pool, How to fix it

I am hosting a number of websites on my Debian server running on NginX, all of my website's log files shows me an error like this 2011/11/23 10:01:03 [error] 5320#0: *349 FastCGI sent in stderr: ...
0
votes
1answer
979 views

Finding out what causes CLOSE_WAIT connections with Apache & PHP & Mysql

First, here is a little bit of context. We have a custom built PHP application that runs under Apache and that supports our website. We are currently experiencing a high traffic on our website. ...
0
votes
1answer
276 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
2answers
2k views

Magento Error 404 after moving from Apache to nginX

I moved my magento store from Server "A" which was on Apache to Server "B" running NginX. Copied all files and folders, Exported and Imported the SQL DB, Altered the local.xml file with the new DB ...
0
votes
2answers
97 views

Sending Email by SMTP IIS7.5 via php site

After my company decided to change the website we switched from old ASP.NET site to new website created in Drupal(php). The site is running locally on IIS7.5 and we also have virtual SMTP server on ...
0
votes
1answer
89 views

Serving files outside the DocumentRoot with apache 2.4 and php5-fpm

I'm trying to serve a php file outside my document root with apache 2.4 and php5-fpm. My virtual host looks like this: <VirtualHost *:8080> ServerName www.domain.tld DocumentRoot ...
0
votes
3answers
135 views

php upload_max_filesize ignored - unable to upload 5gb file

I'm unable to upload files larger than roughly 2gb. The max upload/post values were previously set to 2500MB so I thought that was the problem. First, # php --version PHP 5.3.3 (cli) I set ...
-1
votes
1answer
37 views

Memory on dedicated server is filled out [duplicate]

We are managing a dedicated server (WHM/cPanel) with 4-5(Magento & Woocommerce mostly) accounts in it, along with custom code that will connect those platforms with ERPs. This custom code works a ...
3
votes
4answers
12k views

Nginx/FPM/PHP all php files say 'File not found.'

i just installed nginx 1.1.13 and php 5.4.0 on a centos 5.8 final 64bit machine. Nginx and PHP/Fpm are running, and I can run php scripts via ssh command line, but in the browser I keep getting 'File ...
0
votes
1answer
33 views

Access other partitions with PHP and FTP

I'm wondering how I can access another partition with PHP. I bought a new server and can see data the second hard drive is available but now I want to store the images users upload in that ...
1
vote
0answers
23 views

Unable to load dynamic library pdo_mysql.so

I installed php55-* because I needed to upgrade an SDK in my app (which ended up needing PHP 5.4 or later). It seems that pdo_mysql.so cannot be loaded: PHP Warning: PHP Startup: Unable to load ...
0
votes
1answer
171 views

Local php.ini not overriding main php.ini

I can't seem to get the php.ini file in the website's root (/var/www) to override the php.ini value in /etc/php5/apache2 /var/www/php.ini contents upload_max_filesize = 64M post_max_size = 64M But ...
2
votes
4answers
6k views

Installing PHP extensions on Linux

Please bear with me; I'm a developer, not a server admin. My company wants to explore using Magento. They've handed me a pre-configured Linux server with apache and PHP installed, but when I try to ...
0
votes
1answer
326 views

Interspire Email Marketer taking long time to send bulk emails

I am using Mailjet SMTP Server along with Interspire Email Marketer to send emails to a large group of users (around 54,000). I once used Mailjet's inbuilt Email Marketer to perform a similar ...
3
votes
2answers
130 views

Apache/PHP ldap stops working. Requires restart of apache

I currently have a setup where users log in to a website using LDAP credentials. It's all internal so I don't really care a ton about certificates. So, in my /etc/openldap/ldap.conf file I have ...
0
votes
0answers
42 views

Server 2012 R2 IIS 8 MediaWiki Every Other Page Refresh No CSS

I am having a peculiar issue with MediaWiki on both Windows Server 2008 R2 and 2012 R2 where I have configured version 1.23.4 of MediaWiki and PHP 5.6 nts under FastCGI and for some reason if I ...
6
votes
3answers
9k views

Why are outdated packages installed by yum on CentOS? (specifically PHP 5.1) How to fix?

I'm working on a fresh CentOS server and am extremely annoyed to find out that yum does not work as smoothly and brilliantly as "apt-get install" does on Ubuntu. Installing a LAMP stack, I ran the ...