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

PHP: Can't write file

I'm trying to write a file to the file system using PHP. It works locally for me on Ubuntu using PHP 5.4.31. It doesn't work on RHEL 6.5 using PHP 5.3.3. I am able to execute a PHP script with the ...
-1
votes
0answers
17 views

Permission denied on session_start()

I have a strange problem with my server that i've never come across before. The problem is i make session data but when i click to a new page the session data seems to get wiped out. I have run a ...
-1
votes
1answer
29 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 ...
0
votes
0answers
5 views

How to configure simpleSAMLphp as an OpenID consumer?

We are using simpleSAMLphp for single-sign-on and would like to authenticate users via several remote OpenID providers. What are the specific attributes necessary, in the authsources.php openid ...
0
votes
1answer
26 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
votes
0answers
17 views

Class 'Memcached' not found

I've just upgraded a server from httpd 2.2 to 2.4, and moved our PHP dist from 5.3.9 to 5.5.17. I used Yum! to achieve this, but there were some packages that didn't map properly. First, the biggest ...
0
votes
0answers
13 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
2answers
59 views

php not working on nginx fresh install on centos 6.5 [on hold]

Got me a fresh install of centos 6.5 on virtualbox (under my lynx distro - mint). I've created a new user with public_html under the user's home directory, added simple php file and set up all ...
0
votes
1answer
24 views

Pass PHP5-FPM errors back to error page script?

My nginx has an error_page setup that throws 500 errors to a PHP page. I wish to display/log any PHP errors that cause this error page to show. When I say display, I mean show in-browser depending on ...
0
votes
0answers
8 views

Strace php script - ERESTART_RESTARTBLOCK (To be restarted)

I am trying to troubleshoot a WordPress installation that is loading the front page very slow. I straced the index.php file with the -T option to see where the delay occurs and it pauses 2 times for ...
0
votes
0answers
23 views

Nginx and PHP windows 7 64 bit - page temporarily unavailable [closed]

I am running Windows 7 Professional N 64 Bit with nginx 1.6.2 (64-bit) and php-5.6.1-nts-Win32-VC11-x64 (non thread safe) I have the nginx and php folders setup like C:\nginx C:\php I can start ...
-3
votes
0answers
25 views

Updating PHP for XAMPP on Solaris 10 [on hold]

I'm trying to install and use Joomla for my Solaris 10 server. I installed the latest version of XAMPP available for Solaris which is 1.7.7. This version of XAMPP comes with PHP 5.3.8, but Joomla ...
0
votes
0answers
9 views

Shared hosting - force mail return envelope [migrated]

I hope I'm on the right site, because it's a crossover between drupal and server configuration... I am currently using shared hosting for a website and am encountering mail problems while sending ...
0
votes
0answers
28 views

Plesk behavior different when domain is accessed self from inside the server?

Consider the following scenario - www.domain.com is linked to a subscription within Plesk on our dedicated Linux server. From a web browser on a remote machine, www.domain.com resolves to it's ...
0
votes
0answers
34 views

Very long processes to php

I am watching htop and see this processes: find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +24 ! -execdir fuser -s {} ; -delete This processes (from 1 to 5) ...
0
votes
0answers
14 views

script not found or unable to stat: C:/Apache24 [closed]

I'm running apache 2.4 and PHP 5.6.0 and am getting a lot of these: [cgi:error] [client xxx.xxx.xxx.xxx:xxxx] script not found or unable to stat: C:/Apache24 What concerns me the most is that the ...
-1
votes
0answers
28 views

How to compile or run PHPNG with another user? [closed]

I am testing https://wiki.php.net/phpng Already compiled and working, the only problem is that to make php-cgi work with a framework like wordpress you need to run it with the user nginx is runnning, ...
0
votes
0answers
14 views

“Unexpected end of file from server” error while connecting to SOAP Server (PHP)

"Unexpected end of file from server" error is uncommonly received in SOAP Client (Java) while trying to connect to a SOAP Server (PHP - Zend Framework). I can tell the error is shown after some web ...
0
votes
0answers
21 views

php-mysqli extension fails as compilation

When I am trying to build the latest php5-mysqli port I get the following errors back: cd /usr/ports/databases/php5-mysqli && make MAKE_JOBS_UNSAFE=yes install clean ...
0
votes
1answer
20 views

HTTP Error 500 Joomla Site in Windows Server 2012 IIS

I am trying to migrate a Joomla 1.5 website from Linux to Windows Server 2012. I tried to use the Web Platform Install. It installed most components, PHP, IIS Url Rewrite, etc except Joomla itself. I ...
0
votes
1answer
32 views

PHP from repository, upgrade to 5.5

On my Debian VPS I have installed PHP 5.4 from debian wheezy repository. Now I would like to upgrade PHP to 5.5, but I would like to still be able to continue upgrades by apt-get. Is it good way to do ...
0
votes
3answers
34 views

Change Packet Dynamically with Squid

Is there any option in Squid that allow me to change packets dynamically? For ex: I want to send all packet that comming to Squid to my PHP code and change the packet with PHP Dynamically and resend ...
0
votes
2answers
58 views

Upgrade to latest current installed version of PHP [duplicate]

I've just purchased a new VPS and they've, for some unknown reason, installed PHP version 5.3.3. I'm fine with being on version 5.3.X, but I believe the latest version is 5.3.29. I did some Googling ...
0
votes
1answer
21 views

Django and phpBB server [duplicate]

Is it possible to integrate Django web site and PHP forum by some apache directive in httpd.conf file? For example: <VirtualHost *:80> ServerName myserver DocumentRoot home/myserver/www/ ...
-1
votes
1answer
62 views

Is it safe/how to update php (5.3.9)? centos (6.5 final) & parallels plesk panel (11.5.30 Update #47)

I have my own server that is running: php (5.3.3), centos (6.5 final) & parallels plesk panel (11.5.30 Update #47). This server has customers with subscriptions in plesk and their domains set ...
0
votes
0answers
23 views

Installing suPHP with PHP5.5

I'm using PHP 5.5 on my CentOS server and installed using yum and the webtatic repository (package is php55w). I need to use suPHP on my server but I realize that the mod_suphp package available ...
1
vote
1answer
70 views

CentOS 7, SELinux, PHP, Apache: How to set default permissions to new or updated files in an directory?

Server info: CentOS Linux release 7.0.1406 (Core) PHP 5.4.16 (cli) (built: Sep 30 2014 09:44:39) SELinux enforcing Apache/2.4.6 (CentOS) My PHP-Script needs to read from a home directory ...
3
votes
2answers
98 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
1answer
34 views

Too Many index.php processes with high memory usage

I have wordpress site installed over dedicated server in a separate cpanel account. From couple of days this account experiencing high memory usage, high loadtime and freezing frequently. so I have ...
1
vote
0answers
14 views

Memcached Pool - Outtage causes increased lag in response time

I have multiple cache servers which are added to a virtual pool at the PHP layer via the Memcached::addServers() api. During fault tolerance testing I noticed that taking one of the memcached servers ...
-2
votes
1answer
31 views

PHP Fatal error: while migrating wordpress website from local to live server

When I migrated ecom website build with Wordpress Vina fashion theme from local server to live godaddy server I an getting following error: PHP Fatal error: Uncaught exception 'Exception' with ...
1
vote
0answers
13 views

what is php-fpm warning “failed to acquire scoreboard”?

what is php-fpm warning "failed to acquire scoreboard" in fpm error log? And how to fix it? tail -f /var/log/php-fpm.log [08-Oct-2014 03:36:36] WARNING: failed to acquire scoreboard [08-Oct-2014 ...
1
vote
1answer
24 views

What is the best approach to handle email form abused by bots?

I just recently moved to a Dedicated Server hosting from a normal Reseller Hosting, and currently facing issue with email blacklisting. One of my clients has about 4 contact forms that automatically ...
-1
votes
0answers
13 views

All tests failed after installing cassandra-pdo for PHP

I tried installing cassandra-pdo for PHP on Ubuntu 14 by following the guide on this website: https://code.google.com/a/apache-extras.org/p/cassandra-pdo/ I cloned the cassandra-pdo to the "ext" ...
0
votes
0answers
24 views

no record of login thru phpseclib

I am having a strange problem. I am using phpseclib to communicate with one of our server server - 10.0.0.2 my pc client - 10.0.0.1 I am accessing it via 10.0.0.1 when i hit "last -n 10" i cannot ...
0
votes
0answers
9 views

Exposing pm.status_path [migrated]

Do you think it's dangerous to publicy expose PHP-FPM pm.status_path? It displays "Pool Status", "Active Processes status" and "Idle Processes status", showing Script path and Request URI.
0
votes
2answers
21 views

Disallowing interactive login for specific mysql users

I want to create some mysql users for different web sites but disallow interactive connections for them. If a evil-user get the mysql login credentials of a website, creating a conexion from ...
0
votes
1answer
33 views

Nginx Not Passing Rewrites To PHP-FPM

I have the following rewrite rules for nginx. The rules seem to not function correctly, for example the rule for games is supposed to rewrite http://thegamesdb.net/game/2/ to ...
0
votes
1answer
37 views

Yum php-yaml install issues

We had an issue with an ansible playbook using vagrant - where formerly php-yaml was installing fine. Then, we were getting issues with our PHP repo: [vagrant@localhost ~]$ sudo yum install php-yaml ...
0
votes
0answers
25 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 ...
0
votes
0answers
18 views

puppet xdebug.ini not working

I install xdebug puppet Here is folder structure /myproject Vagrantfile puppet\ xdebug\ files\ xdebug.ini manifests\ init.pp This is ...
0
votes
1answer
13 views

Install PHP PEAR on Windows non-interactively specifying target install directory

I want to install PHP PEAR on Windows non-interactively. If I just download http://pear.php.net/install-pear-nozlib.phar and run it like this: php install-pear-nozlib.phar It gets installed into ...
0
votes
1answer
45 views

Is it possible that Nginx blocks itself from requesting another URL on the same instance?

I have a setup that worked in Apache and now it is failing in Nginx with php-fpm: I have one PHP-script that is offering a service, you call the URL and get some data I have a second PHP-script that ...
0
votes
1answer
25 views

Adding a self-signed cert to the trusted certs within cURL in Windows?

I have created a self-signed cert from the instructions on this page, have installed it and it appears to all be working correctly, but now I need cURL to trust it. Since the later versions of cURL ...
0
votes
3answers
66 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 ...
0
votes
2answers
24 views

PHP configure not finding LDAP header libraries

I installed the LDAP development headers: apt-get install libldb-dev This added a few ldap headers: root@crunchbang:/usr/include# ls -la ldap* -rw-r--r-- 1 root root 9466 Apr 23 2013 ldap_cdefs.h ...
0
votes
1answer
36 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
2answers
41 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 ...
2
votes
0answers
133 views

Apache stops communicating with memcache after creating too many vhosts

I've noticed a very peculiar problem with Apache. I have a very high number of virtual hosts set up - it's around 501. Problems started occuring after vhost number 493. First 493 vhosts work as ...
1
vote
1answer
66 views

php htaccess environment variables php-fpm mod_proxy_fcgi apache 2.4

My .htaccess: SetEnv tvar "my value" RewriteEngine on RewriteRule .* - [E=boostpath:normal] My virtual host settings: AllowOverride All Options FollowSymLinks Require all granted ...