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

2
votes
3answers
5k views

How to Upgrade to PHP 5.5 on Windows Server 2008

What is the proper way to upgrade from PHP Version 5.4.32 to PHP Version 5.5.22 on Windows? All that I can find is how to to install. PHP is already running on Windows Server 2008 R2 64 bit alongside ...
4
votes
6answers
21k views

How do I make Nginx redirect all requests for files which do not exist to a single php file?

I have the following nginx vhost config: server { listen 80 default_server; access_log /path/to/site/dir/logs/access.log; error_log /path/to/site/dir/logs/error.log; root ...
1
vote
3answers
2k views

After installing Apache, PHP and MySQL I can't add extension to php.ini without Apache error

I have Windows XP OS. Installed Apache 2.2.14, then PHP 5.2.12 (tested with phpinfo.php -> IT'S WORKS!) Then I installed MySQL 5.1. And now, when I add extension = php_mysql.dll to php.ini and ...
4
votes
1answer
50 views

Nginx HHVM Wordpress issue with PHP Execution in one intermediate subdirectory

I have a weird situation with one of my websites, still in development in AWS. I have nginx 1.9.9 with HHVM 3.6.6-1.amzn1.x86_64 on a t2.micro. It's not publicly accessible. I have a custom written ...
0
votes
1answer
2k views

php fopen error (failed to open stream: Permission denied)

I have a php script on a Windows Server 2008 box (IIS 7) that is run periodically to download a remote XML file and store it on the server. This script (which previously used to run successfully), is ...
0
votes
0answers
42 views

The apache2handler SAPI is not supported by pthreads

It has been weeks now that I cannot install pthreads. I am going to list the error logs then I will list my configuration options. These are the errors I get:(Apache Error Log) The apache2handler ...
7
votes
3answers
24k views

Get log of mail sent with mail() from PHP (sendmail?)

After some server changes our PHP configuration got nuked, which caused a client's large mailing list to time out partially through about 4,000 addresses or more. We want to avoid sending a duplicate ...
2
votes
1answer
681 views

How to install a newer version of php on AWS Opsworks?

Our code base is using PHP 5.5 and we are wanting to deploy on AWS Opsworks however when selecting the PHP App Server layer we are told it has PHP 5.3. What I was hoping is that I could just use the ...
0
votes
1answer
18 views

Php can't find hash function

I'm using apache with php on amazon linux. I've updated php from 5.3 to 5.5 and apache from 2.2 to 2.4. Now calling echo hash('sha256','wtf'); is behaving in a strange way. It works for a while and ...
0
votes
1answer
263 views

Using apache with hhvm

I've tried to test hhvm (on my local machine), but did not manage to get it working. Important side-note: I need to run mod_php and fcgi at the same time. It's not possible to abandon mod_php for me ...
2
votes
3answers
623 views

Can I convert my database/script to UTF-8?

How can I convert a database to support UTF-8 and convert it's old data from what ever encoding they're in to UTF-8 ? Extra Info: I'm running a server which has many websites on it, and one of them ...
0
votes
1answer
926 views

Multiple VHosts with FastCGI and Suexec

I have a Debian virtual machine server which I have full control over, but I have someone who wants to host a single domain on it. This is obviously a security concern, as even if his particular user ...
1
vote
2answers
1k views

Horrible PHP/MySQL Query Performance On Ubuntu Server 10.04

I just did a clear install of Ubuntu Server 10.04 with the standard LAMP config.. Then I made a small script to test insert speeds into a table with 3 columns. When I run the script on any of my ...
13
votes
6answers
28k views

php - error: Cannot find OpenSSL's <evp.h>

Im trying to recompile PHP, but ./configure fails at : configure: error: Cannot find OpenSSL's <evp.h> I have LibSSL 1.0.0, LibSSL 0.9.8, LibSSL-Dev, OpenSSL installed. ...
7
votes
2answers
6k views

How do I make all URLs run through a single PHP file?

How do MVC systems where the urls are in these forms force all the requests through a single index.php file? http://www.example.com/foo/bar/baz ...
2
votes
1answer
736 views

Creating Daemons in Linux… how should the file permissions be?

I am setting up a few PHP Gearman Daemons running on PEAR System_Daemon. I need them to be able to write to the following locations... /var/run/{APPNAME}.pid /etc/init.d/{APPNAME} ...
0
votes
0answers
17 views

Apache2 Graceful Loads Different php.ini

I have an apache server running Apache/mod_php. On Fresh start and when using sudo service apache2 restart the correct php.ini file is loaded: Doing a graceful reload of apache i.e "sudo service ...
8
votes
6answers
15k views

Apache2 Proxy timeout

I have Apache2 with PHP + PHP-FPM configured according to: http://wiki.apache.org/httpd/PHP-FPM I am writing a script that will take a long time to execute on an internal Vhost, but keep getting ...
2
votes
2answers
1k views

Sqlsrv_connect() error

I'm trying to connect PHP 5.3.5 to MS Sql Server 2005. I'm using Windows XP SP3. I enabled the sqlsrv function which is also shown in phpinfo(). I also made some changes in the php.ini extension but ...
0
votes
0answers
8 views

phpPgAdmin - maximum number of concurrent users? [duplicate]

I have recently set up an Ubuntu server with Apache, PHP and phpPgAdmin. I want a group of people to be able to simultaneously run queries against our testing PostgreSQL database as needed, accessing ...
0
votes
1answer
26 views

An other FPM instance listening on php5-fpm.sock

i have set up multiple PHP versions in ISPconfig 3 and the hole thing actually works except i can not start more then one Version at a time then i get this error "An another FPM instance seems to ...
1
vote
3answers
2k views

PHP-FPM with Apache 2.2.22 and Ubuntu 12.10 - 500 Error, or returns text (not executing)

I am following this tutorial to try to install PHP-FPM on my LAMP stack. My config in /etc/apache2/sites-available/default contains (as per the guide) <IfModule mod_fastcgi.c> Alias ...
3
votes
3answers
11k views

Alias using Nginx causing phpMyAdmin login endless loop

Recently I've been trying to set up a web server using Nginx (I normally use Apache). However I've ran into a problem trying to set phpMyAdmin up on an alias. The alias correctly takes you too the ...
-1
votes
1answer
40 views

vBulletin upstreaming to Nginx server

I have two acount on RHC Openshift so i want install nginx one one server and vbulletin on the other server , so have combine server 1 to server two (nginx to Vbulletine) I try this configuration for ...
0
votes
1answer
13 views

Apache 2.4 + PHP CGI SAPI: separate access_log of requests hitting PHP processing?

It's hard to tell from Apache general access_log which requests are processed by PHP, because direct file hits muddy the waters. PHP FPM SAPI has a super useful access_log directive, but how do I get ...
1
vote
1answer
67 views

How to configure Nginx to support PHP-FPM on Mac OS X

I am making a website with a contact form, and I want to use PHP. The website is hosted on my simple local server using NGINX. I know NGINX uses FastCGI and PHP-FPM, but being new to this, I'm not ...
2
votes
1answer
24 views

How to run a PHP application in a subfolder of a website using mod_mono on Apache?

I have a website running on mono (on Debian stretch). I would like to have some subfolders which would be handled by php5 module (webmail, stats and PhpMyAdmin for example). Is there a simple way to ...
2
votes
2answers
2k views

phpmyadmin won't connect to remote MySQL instance

I have a LAMP stack box (CentOS 6) and another CentOS 6 box running mysql server. I've installed phpmyadmin on the LAMP box but I can not get it to talk to my SQL box at all. I have configured the ...
0
votes
1answer
31 views

Invalid variable name: `--with-jpeg-dir' when compiling PHP7 on CentOS7

I'm trying to configure PHP7 and I'm getting this error even though ./configure --help says that the variable name is --with-jpeg-dir. What am I missing? Here is my command: ./configure ...
0
votes
0answers
39 views

Apache + PHP Memory Limit Upload Issue

My environment is Fedora 20, Apache 2.4.10, and php 5.5.26 and I am having an issue with uploading a file that is greater than 2 GB's. If I upload a file greater than 2 gb's I'm noticing that while ...
8
votes
4answers
2k views

Can I globally set $_SERVER['REDIRECT_URL'] before script execution?

I'm in the process of migrating many sites from an old to a new server configuration. Each site is based on a similar (but sadly not identical) codebase, using mod_rewrite URLs. Ubuntu 8.04 LTS => ...
5
votes
1answer
4k views

Mixed IP and Name Based Virtual Hosts with nginx

I set up many domains but I dont know how to configure if only ip address is given. say foo.com I have a setup to go web/foo.com/htdocs, I want to 88.99.66.55 ip address like a domain to ...
0
votes
1answer
1k views

Connecting to SQL Server with PHP on Mac

I'm trying to connect to my local SQL Server 2008 R2 (have also tried it with 2005, same result exactly) with PHP. I'm using PHP 5.1 which still supports php_mssql and mssql_connect(). for some ...
0
votes
1answer
89 views

Zend Framework on PHP 7

I've recently upgraded my server to use PHP 7.0. However following this upgrade, I noticed that my web application wasn't working. I looked in my apache2 error.log file and found this error: PHP ...
0
votes
0answers
14 views

FileMaker internal cache?

When I do a random insert+read on a FileMaker database through the FileMaker PHP API, using a PHP test script executed from the command line on the same local machine, the response time varies. First ...
4
votes
1answer
270 views

Will preventing POST requests stop the spread of a remote access trojan?

I like the acronym RAT (remote access trojan), because it resembles another type of thing you need to get rid of from your kitchen, and because when you get rid of one and find the hole it made and ...
2
votes
1answer
35 views

PHP CLI not loading IMAP extension

When I try to run a script that uses imap in my browser, it works fine (it is loaded from a Ubuntu 14.04 server on my network with the extension installed). However, when I try to use PHP CLI on said ...
6
votes
4answers
4k views

Install PHP7 from Remi repo

I installed PHP7 from Remi repo with sudo yum -y install httpd sudo yum -y install epel-release wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm ...
1
vote
1answer
13 views

Why does a new application pool identity have write access?

I am running IIS 8.5 with PHP (various versions) via FastCGI. Impersonation is on in the PHP config for FastCGI. The app pool is set to use the App Pool Identity. In fact, if I actually ...
1
vote
3answers
944 views

Httpd process consuming loads of memory

I have a server which is giving me headaches. It hosts a couple of sites: these are either php based, or java based. I have a setup that uses apache2 + suPhp for the php sites, and apache2 + mod_proxy ...
0
votes
2answers
440 views

Undefined php function http_post_data on Ubuntu server

Added the following under Dynamic Extensions in both php.ini's (Apache's, and the normal one found with: sudo updatedb && locate php.ini) extension=raphf.so extension=propro.so ...
63
votes
10answers
153k views

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
4
votes
2answers
204 views

MediaWiki not displaying style — “Internal error”

I just upgraded a MediaWiki installation from version 1.25.x to 1.26.1, but now the styling information is not displaying. Hence, the page displays all text-like without the links column at the left. ...
2
votes
0answers
61 views

Issue with Headless selenium on CentOS 7 Minimal

Required: I'm trying to run headless selenium (using PHPUnit) on fresh CentOS 7 minimal. Problem: It seems I installed everything correctly but firefox is not launching and my selenium web driver ...
1
vote
2answers
27 views

what are my options for linking directories

I have a configuration file which refers to a file structure. This is what I have <?php // HTTP define('HTTP_SERVER', 'http://XXXX.co.uk/public_html/'); define('HTTP_IMAGE', ...
0
votes
3answers
451 views

nginx + PHP-FPM disable PHP functions only for certain virtual hosts

How can I disable some php functions only for some of(currently only 1) virtualhosts on my Nginx+PHP-FPM stack?
0
votes
1answer
2k views

How to install pecl spidermonkey on CentOS 6

Running the following command: > sudo pecl install spidermonkey I receive the following error: ... ... a bunch of successful checks ... ... checking whether to enable spidermonkey support... ...
3
votes
3answers
4k views

Installing PHP 5.4.11 on CentOS 6.3

I have PHP 5.3.3 on my CentOs 6.3 server, Since this version of PHP is vulnerable now trying to upgrade to PHP 5.4.11 but the default repository of CentOs does not have PHP > 5.3.3 so yum can not ...
1
vote
2answers
45 views

unable to run generated python (selenium) script from PHP

I have an Ubuntu machine for headless selenium tests. I generate a python script in /var/www/tmp/random123name.py via PHP and execute them. The script works when run from command line user, fails ...
-3
votes
2answers
43 views

Server not recognizing that wget is installed on OS X Yosemite [closed]

I'm trying to install some software (called Prohits, used for mass spectrometry data management) on a localhost server I set up. One of the requirements for the install is that I have wget installed. ...