Questions tagged [php]

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.

PHP is an open-source general-purpose scripting language that is suited and popular for server-side Web Development. There is an excellent online manual and a wiki. The online manual is a complete reference for syntax, built in functions, and extensions. There are lots of extensions for PHP that most of them can be find in PECL.

If you want to post a question in PHP, check the error log or if errors are enabled, enter them from output of your script if any.

7887 questions
2
votes
1 answer

How can I configure Apache+PHP on OS 10.7.5 to make 0755 directories writable?

For years I used MAMP on my Macintosh computer to run a development environment with Apache, MySQL, and PHP. When I upgraded my machine to OS 10.7, I decided to use OS 10's native Apache and PHP in lieu of downloading MAMP again, mostly following…
2
votes
1 answer

Apache selectively reverse-proxy requests to new server

I'm moving a web application to a new set of servers in a different data center. As part of a beta period, I want to configure the old server as a reverse proxy for some requests, based on a pattern in the URL. For example, if someone…
2
votes
1 answer

Updating to PHP 5.4 on Debian 6.0.5

Figured there would be an easy answer on Google, but no luck. Most of the tutorials, while similar to what I need, don't work on Debian: http://chemicaloliver.net/internet/installing-php-5-4-in-ubuntu/ add-apt-repository ppa:ondrej/php5…
Nick Brown
  • 125
  • 4
2
votes
1 answer

Apache Virtualhosts with PHP and custom logs - how to isolate PHP errors?

I'm trying to setup a simple hosting enviroment for my application on an Ubuntu server. I created a virtualhost like this: ServerAdmin info@example.org ServerName www.example.com ServerAlias example.com …
Repox
  • 265
  • 1
  • 3
  • 14
2
votes
3 answers

Apache2 + PHP static directory

I have Apache2 and PHP5 installed. My DocumentRoot is /var/www/. All .php and .html files are served form / and its child directories well. However when I request, say, .png images I get Forbidden notice. I'd like to dispatch a specific /static/…
Alex
  • 2,357
  • 5
  • 32
  • 41
2
votes
1 answer

How to improve availability on a starting up PHP+MySQL application?

Yesterday, Rackspace DFW data center went down for a few hours and made me think on taking the delayed action of improving my server structure there. So far, I've been using a single CentOS instance handling a basic LAMP setup for my PHP+MySQL…
Mauro
  • 386
  • 1
  • 4
  • 13
2
votes
1 answer

Can you enable suphp to follow symlinks for the docroot?

I'm trying to clone a website into a user's home directory and symlink from my website folder to public_html. drwxrwxr-x 5 myuser myuser 4096 Dec 3 12:00 ./ drwxr-xr-x 4 myuser myuser 4096 Dec 3 11:31 ../ drwxrwxr-x 3 myuser myuser 4096 Oct 22…
2
votes
1 answer

Can't connect to pear.php.net

If I try anything with PEAR, I get: # pear list-all Connection to `pear.php.net:80' failed: Connection timed out If I ping it, I get the following: # ping pear.php.net PING euk1.php.net (5.77.39.20) 56(84) bytes of data. I've also tried host and…
jedi58
  • 123
  • 1
  • 4
2
votes
1 answer

LighTPD and PHP not working if outside of LightTPD folder

I need to set up a simple web server with PHP on Windows XP that a number of different people will use for local testing. I'm using LightTPD 1.4.30-4-IPv6-Win32-SSL and PHP 5.2. So far I've created this folder structure: tools/ LightTPD/ …
Marco83
  • 121
  • 2
2
votes
1 answer

Merely installing PHP5 causes my AWS Ubuntu server to die minutes later from a massive CPU spike

I have an AWS server with Ubuntu 11.04 as the OS that is running an Apache2 webserver (incidentally Python-based and using Django). We recently needed to add support for php5 to let us use a third party PHP library (incidentally for serving minified…
Mark Amery
  • 727
  • 1
  • 8
  • 25
2
votes
1 answer

php-fpm[2593] general protection - could someone explain?

Could somebody explain what this error means? What is ip, sp and what does the numbers stand for? If I grep -i "general protection ip" messages* I get below output. It is happening quite often and we need to restart php, db2 etc to make things work…
Radek
  • 1,153
  • 4
  • 26
  • 39
2
votes
1 answer

PHP errors not being displayed

I'm using PHP with Apache on Ubuntu 12.10. Errors are not being displayed to the browser for some reason and I can't figure it out. I have the following in my php.ini file: error_reporting = E_ALL & ~E_DEPRECATED display_errors =…
Mike
  • 689
  • 3
  • 9
  • 27
2
votes
2 answers

nginx: Disallow Access to a Folder, except some subfolders

How it is possible to deny access to a folder, but except some subfolders in it from "deny"? I tried something like this (in this order): #this subfolder shouldn't be denied and php scripts inside should be executable location ~ /data/public { allow…
carrot
  • 97
  • 1
  • 1
  • 10
2
votes
2 answers

Configure Apache to Remove BOM Automatically

Is it possible to configure Apache or PHP to remove BOM automatically so users do not need to remove BOM manually before uploading scripts.
2
votes
1 answer

My Apache 2.2 local test server with php none cgi automaticly removes logged in ipad users

My Local httpd Apache 2.2 test server with php installed is having problems with a ipad user. I have scripted a loggin script that uses php sessions to keep them loggedin, the page has a javascript that reloads an iframe and its php checks if the…
Björn
  • 21
  • 1