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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
638 views

Why does working permisson of PHP script differs between server?

<?PHP print "hello"; ?> I write this code and save as "1.php"; Then I upload this PHP script to my server. I have 8 diffrent free hosting server's accounts. And I noticed that there are 2 ...
user avatar
0 votes
2 answers
715 views

Choice of PHP Application Server [duplicate]

Possible Duplicate: Enterprise Grade PHP Application Servers Hi Folks, I am on the lookout for a commercial PHP (application!) server that comes with Vendor support to use with enterprise scale ...
3 votes
5 answers
19k views

Why is PHP script downloaded instead of executed

I have a local LAMP server set up on my Ubuntu laptop for testing various PHP scripts. Sometimes, when I do something wrong, instead of getting an error, the script I'm testing is offered for ...
scribu's user avatar
  • 337
1 vote
2 answers
4k views

Debian Lenny and php4 (along with php5)

PHP4 was removed from lenny package lists. Any suggestions what might be the best approach to install php4 (Apache mod and cli) on a lenny box without breaking php5? And possibly still having the ...
Karolis T.'s user avatar
  • 2,719
1 vote
2 answers
717 views

mount / and / or apache - php permissions : where should I look?

Here's the configuration : The directory : /var/www/mount_ImpExp/ImpExp/ is a shared directory (Linux) from a PC with an IP adress 192.168.1.12 My PC IP adress is 192.168.1.11 I mounted that ...
Olivier Pons's user avatar
0 votes
3 answers
2k views

why spamc keeps getting me 0/0 when I test it?

on my centos 5 I've installed spamassassin and I want to execute it from php using the command line client. The problem is that each time I run it, I get as result: 0/0 here is how I run it echo ...
Gabriel Sosa's user avatar
  • 1,220
0 votes
1 answer
724 views

Apache Hangs with Apache Error Logs saying 'Timeout'

I'm running OpenBSD's chrooted httpd process and for the last few days I'm getting random hangups that clear themselves without any intervention on my part. At first I thought it might be a resource ...
dragonmantank's user avatar
2 votes
3 answers
4k views

Problem running PHP on IIS6

I have used the Web Platform Installer 2.0 beta to install php on IIS6. I tried this first on a test server with success. When I did this on the production server and browse to a test php file, I ...
Ronnie Overby's user avatar
0 votes
2 answers
614 views

Zend Framework Installation

I get this error after finishing the Zend Installation. Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or ...
1 vote
3 answers
6k views

What could cause apache2 to not run index.php files through PHP FastCGI handler?

I'm trying to run PHP using FastCGI (mod-fcgid) under apache 2 with the worker MPM. I've used this blog post as a reference. It seems I've got everything working except one thing: When apache serves ...
Tobi's user avatar
  • 163
1 vote
1 answer
167 views

php as fast_cgi shutdowns without log

I'm running php5 behind a nginx proxy, as Fast_CGI, after some usage (Always while being used, not while idle. The Fast_CGI server just shuts down (no longer displays in a 'ps -A'. In php.ini ...
Arelius's user avatar
  • 357
3 votes
1 answer
10k views

How to enable PHP mail() function in a IIS7 / Win2008 server?

I have a web server where I currently host an ASP.Net Web Application that uses the IIS6 SMTP Server to send notification emails. I installed PHP and Wordpress using the Web Plataform Installer and ...
holiveira's user avatar
  • 889
15 votes
12 answers
79k views

In Ubuntu I make changes to php.ini but nothing happens

Hi, Apache with php works well, but none of the changes I make in php.ini have effect, I've even delete all the contents of the file, then restart Apache, and run phpinfo() and surprisingly everything ...
31 votes
8 answers
3k views

Securing PHP webservers

PHP applications have a reputation for higher than average security problems. What configuration techniques do you use for making sure the application is secure as possible? I'm looking for ideas ...
David Pashley's user avatar
1 vote
3 answers
2k views

Dev background, safe to have php files owned by root but Apache different user?

I'm from a programming background and been thrown into managing a Linux server at work because of an emergency with our reg sys admin. Is it reliable or safe to have our PHP files owned by root yet ...
miamisoftware's user avatar
33 votes
6 answers
82k views

How can I display and log PHP errors on IIS7?

We're running PHP 5.2.5 on an IIS 7 Server and we're having problems making PHP errors visible... At the moment whenever we have a PHP error the server sends back a 500 error with the message "The ...
Ben's user avatar
  • 463
2 votes
5 answers
319 views

Compromising between fresh and secure PHP packages on production servers?

I have a handful of production servers running Centos. My application requires a fairly recent version of PHP (> 5.2, IIRC). The options currently available to Centos Users are: The official, ...
Frank Farmer's user avatar
2 votes
4 answers
192 views

My server is about to be switched off. I run a LAMP set up, what should I back up?

My hosting company may cut me off. Any ideas on what files I should back up? I am running RedHat 4.1. How would I save my current PHP set up? Can I just save the .so files? MySQL - is backing up ...
user avatar
1 vote
2 answers
1k views

how to set a limit to growth of a /home/httpd/.../stats/ error file

I've got a VPS account. The file: /home/httpd/..../stats/...-error_log is logging so many errors that it fills up the 20 GB hard drive space within a 24-hour period which amongst other problems ...
Edward Tanguay's user avatar
3 votes
1 answer
2k views

Lighttpd big uploads memory consumption

Consider the following scenario: I am running lighttpd-1.4.19 and I am handling big uploads (hundreds of MBs but less than 1GB) through it. Server is running on Ubuntu 8.04 LTS. Files are ...
lpfavreau's user avatar
  • 439
4 votes
8 answers
4k views

Scaling a LAMP stack

Once you move beyond 100k hits/month, what would people in this community say is the biggest hurdle? My situ: Tons of static media (audio/video/images) being served off of S3/CDN, but being stored ...
11 votes
6 answers
94k views

Temporary failure in name resolution : Host name lookup failure [closed]

I've got a script in PHP that's been running fine for months. It recently stopped working. This script connects to gmail to send out an email to my customers. Recently, I started getting this error ...
GeoffreyF67's user avatar
3 votes
1 answer
1k views

PDO_mysql for mac

Has anybody gotten PDO_mysql working on the default PHP installation on a mac? It works with MAMP but that's inconvenient. I'm developing for Zend Framework and mysql, and Zend_db uses PDO. The ...
GoatRider's user avatar
  • 201
4 votes
3 answers
10k views

Can Nginx handle php (or similar fcgi) requests inside of an alias?

I am converting a legacy Apache server to Nginx and do not have the luxury of changing URL's or rearranging the filesystem. Is it possible to use nested location{} blocks in the Nginx configuration ...
allaryin's user avatar
  • 323
4 votes
3 answers
723 views

Upgrade PHP to latest version on CentOS 4.5

I'm a Linux newbie but I need to upgrade PHP on CentOS 4.5 to the latest version -- or at least 5.2.2 or better. What's the easiest way to do that? The latest available via yum seems to be 5.1.6 and I ...
Mark's user avatar
  • 41
1 vote
2 answers
5k views

How do you enable GD in PHP when installing via RPM?

We are working on a client's sever that has PHP running without GD. We would like to enable GD support in PHP on that machine. What is the most straightforward way to enable GD. Is there a way to do ...
GloryFish's user avatar
  • 113
0 votes
6 answers
6k views

Why isn't my PHP installation recognized by Apache on Windows XP? [closed]

I have done the procedure below given in http://www.ricocheting.com/server/php.html for installing PHP and Apache. When I start the Apache server, it is displaying "invalid command PHPIniDir"...
2 votes
8 answers
15k views

Linux / apache web-server segmentation fault warnings

Lately I have been receiving a lot of segmentation fault warnings on my web-server. The warnings look like: [notice] child pid xxxx exit signal Segmentation fault (11) I have consulted with the ...
jeroen's user avatar
  • 53
0 votes
4 answers
4k views

How to install Apache 2.2.X and PHP5 as a Module on Windows Vista without crashing?

I followed the instructions on PHP5 readme file to do a manual install on Windows and as a module on top of Apache. I ran phpinfo() and it appeared all OK. Then, every time I run php code calling ...
user avatar
2 votes
5 answers
10k views

I have two versions of apache running on Ubuntu, how can I remove one?

I installed apache on ubuntu by doing the following: sudo -i cd /usr/local/src wget http://apache.mirrors.tds.net/httpd/httpd-2.2.11.tar.gz tar -xvf httpd-2.2.11.tar.gz cd httpd-2.11.9 ./configure --...
Tony's user avatar
  • 4,223
1 vote
3 answers
805 views

Problems upgrading from PHP 5.1.6 to 5.2.9

I have a web server running Fedora Core 5 (yes, I know it's very old) and it was running PHP 5.1.6 so I downloaded and compiled the source for 5.2.9 and restarted the server and phpinfo() still ...
7 votes
1 answer
19k views

Configure PHP to use a proxy?

Using PHP 5.2.6 and need to configure it to use our forward proxy (which requires authentication be set) so that the PHP scripts can connect to the internet correctly. I see that PHP.INI in the 4 ...
Robert MacLean's user avatar
0 votes
3 answers
1k views

PHP Configuration file won’t load IIS7 x64

using Fast CGI I can't get it to read the php.ini file. See my phpinfo below. System Windows NT WIN-PAFTBLXQWYW 6.0 build 6001 Build Date Mar 5 2009 19:43:24 Configure Command cscript /nologo ...
Martin Murphy's user avatar
0 votes
1 answer
1k views

Error running multiple instances of sphinx (searchd) on the same box

I have a MediaWiki server that hosts 4 instances of MediaWiki, and figure I should have a separate instance of sphinx search running for each. I did this by creating separate sphinx.conf files for ...
Brent 's user avatar
  • 23k
8 votes
4 answers
11k views

Profiling Apache+Mysql+Php server - which is the bottleneck?

How do I profile an Linux + Apache + Mysql + Php server for speed? I have a server with a heavily modified MediaWiki instance running on Ubuntu 8.04. It's a bit sluggish - I haven't done anything to ...
amarillion's user avatar
  • 1,409
5 votes
1 answer
5k views

How do you run a PHP script as the file's owner, rather than as the webserver user?

I'm sure there's a well-known answer for this, but I can't seem to find it. How do I make a user's PHP scripts (in ~user/public_html, for example), run as the owner rather than as (eg) www-data? ...
jes5199's user avatar
  • 377
3 votes
1 answer
773 views

What is the URL_CHANGED Event on IIS7 Request Tracing Log?

I just enabled Failed Request Tracing for a site and I get a URL_CHANGED event as the third item on the log. 1. GENERAL_REQUEST_START SiteId="1", AppPoolId="DefaultAppPool", ConnId="1610613013", ...
Ben's user avatar
  • 463
33 votes
3 answers
13k views

PHP: What are the advantages of FastCGI over mod_php?

It was recently suggested to me that I use FastCGI with PHP. Now I went to the FastCGI page and read it but I don't really understand what the advantages are.
cletus's user avatar
  • 10k
1 vote
3 answers
2k views

Suggested config for PHP VPS host on Linux for low memory

I'm looking at using Linode at a VPS host for a PHP Webapp. Linode offers a variety of Linux distros. I'm basically after a config that will absolutely minimize memory usage while still keeping the ...
cletus's user avatar
  • 10k
1 vote
6 answers
5k views

PHP shared hosting with opcode caching (eg APC)? [closed]

Basically I'm looking for a cheap hosting solution that actually enables opcode caching. I'm having a hard time finding one. Is there a reason for this? Anyway, anyone know of one?
cletus's user avatar
  • 10k
0 votes
2 answers
311 views

PHP takes a long time for uncached pages

On my server, PHP will take a long time to execute a script (say, 5 seconds) if it hasn't been cached by APC yet. After it is, it executes very fast. I'd provide more information, but I wouldn't know ...
Bart van Heukelom's user avatar
3 votes
3 answers
9k views

Fastest option for a PHP webserver

I need to serve a PHP app that handles lots of requests. I want to know if there's any real benefit in going with anything other than Apache, and what are the pros and cons of the alternatives. I ...
kch's user avatar
  • 4,632
1 vote
5 answers
376 views

How do you secure the "gallery" photo gallery?

Are there any special steps that should be taken to secure Gallery? Specifically, I currently have the Fedora RPM gallery2-2.3-1.fc8 installed. I do have selinux enabled in targeted mode, which is a ...
Eddie's user avatar
  • 11.5k
4 votes
3 answers
6k views

How can I rewrite urls (ala mod_rewrite) for free in IIS 6?

I've got an application I wrote (with cakephp) for the lamp stack and I'm moving it to a windows server. I'm having a lot of trouble with apache for windows (memory and cpu issues) so I would like to ...
reconbot's user avatar
  • 2,455
10 votes
3 answers
8k views

mod_rewrite does not forward GET parameters

I'm having trouble setting up Apache with mod_rewrite on my development machine. Mod_rewrite is active, and works well for some rules. Some rules do not work as intended, like this one: RewriteRule ^...
Vegard Larsen's user avatar
2 votes
3 answers
242 views

Change Default Config Settings for PHP?

When setting up php on a new Unix-based server, are there any default PHP settings that you will always change? Any that you will always consider changing based on the particular environment?
Yaakov Ellis's user avatar
  • 556
39 votes
5 answers
148k views

How do I tell Apache which PHP to use?

I am running Apache2 on a Mac OS X (10.5). I just compiled PHP 5.2.8 and finally got pdo-mysql working (or so I think). This terminal command: php --version is showing 5.2.8 and I have the right ...
Sam McAfee's user avatar
3 votes
4 answers
2k views

Installing PHP 5 on RedHat Enterprise Linux 4

I'm tearing my hair out trying to get PHP 5.2.6 installed on our RHEL 4 box here. Upgrading to RHEL 5 is an option down the road, but not tonight, which is when we need to get this instance of our ...
Erik Schoster's user avatar

1
154 155 156 157
158