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
2k views

How can I make the Apache/PHP setup on my VPS show PHP errors and warnings?

I've got a VPS using Suse Linux 10.3. Apache 2 / PHP 5.2.6 was set up automatically. When I look at this valid PHP file in a browser, it displays correctly: <?php echo 'this is test'; ?> ...
Edward Tanguay's user avatar
1 vote
4 answers
1k views

Share common web application code to many web servers

What is the best way to share common web application code to many web servers? For example, I have a directory containing web application written in PHP. Now, I have multiple machines that will serve ...
Arie K's user avatar
  • 1,633
1 vote
2 answers
1k views

How to limit user e-mail sending in shared hosting enviroment - LAMP stack

OS - Ubuntu, PHP version - 5.3, MTA - Exim. How you can limit number of email messages virtual host can send using standart PHP mail() function per interval of time (preffered would be hours, but ...
Kristaps's user avatar
  • 3,005
3 votes
3 answers
10k views

cakephp & nginx config/rewrite rules

Hi somebody please help me out, I've asked this at stackoverflow as well but not got much of a response and was debating whether it was programming or server related. I’m trying to setup a cakephp ...
seanl's user avatar
  • 470
0 votes
4 answers
7k views

PHP file_get_contents error on CentOS

file_get_contents(http://mirror.facebook.net/centos/timestamp.txt) [function.file-get-contents]: failed to open stream: HTTP request failed! errors on a freshly installed CentOS 5.3 box. What seems ...
user avatar
8 votes
6 answers
4k views

PHP-CGI Started Serving Blank Pages

My PHP-CGI started serving blank pages for no apparent reason until I restarted the process. I want to know why. Unfortunately the "production" configuration file of PHP has no error_log by default. ...
Unknown's user avatar
  • 1,715
1 vote
3 answers
1k views

Yum Fails When Installing PHP

I tried to install PHP with yum and I got a message like: bash-3.2# yum install php Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: mirrors.tummy.com * updates: ...
user avatar
0 votes
2 answers
6k views

PHP 5.3 on IIS gives 404 error in CGI mode

Slowly losing my mind here. I had PHP 5.2 working fine (ISAPI) under IIS, but for some extension I needed 5.3. So no worries, I installed this but it turns out ISAPI is not supplied anymore. I ...
5 votes
6 answers
19k views

Lighttpd cannot create php-fastcgi.socket

I have installed FastCGI using yum, and edited my lighttpd.conf, but when restarting the server I receive this error. 2009-06-24 12:44:43: (log.c.97) server started 2009-06-24 12:44:43: (mod_fastcgi....
James's user avatar
  • 171
1 vote
2 answers
110 views

Setting up a webserver

How do I make from my OS WindowsServer2003 an internetwebserver, e.g. with my own PHP forum on it?
user avatar
3 votes
2 answers
28k views

Force Apache to display PHP errors instead of 500

I have a development server with Apache 2.2.8 /PHP 5.2.4 on Ubuntu Server 8.04. Sometimes my php code returns an Internal server 500 error instead of outputting the errors to the page. The Apache ...
James's user avatar
  • 51
0 votes
3 answers
143 views

PHP Not Working

Whenever I try to run PHP, it doesn't output anything. Here's what I'm typing into SSH (where user is a user I created): php /home/user/public_html/index.php Any ideas?
user avatar
0 votes
1 answer
1k views

Windows 2003 Server, Parallels, Plesk, Php5 and mail()

I'm running Parallels with Windows 2003 Server Plesk on my VPS and I can't send mails via mail() Warning: mail() [function.mail]: SMTP server response: 550 Requested action not taken: mailbox ...
EsiX's user avatar
  • 69
1 vote
5 answers
1k views

Apache not handling 18k daily hits

Hi it seems that my servers couldn't handle the traffic during peak hours and Apache seems to just crash. Here's some info on the server: Xeon 5110 @ 1.6ghz 4Gb Ram Windows 2003 Server Apache 2.2.11 ...
user avatar
0 votes
1 answer
159 views

PHP4 and sybase_ct on Novell SuSe 10.2

Am migrating an existing Ubuntu8.04 server running PHP4 and the sybase_ct driver to SuSe 10.2 The trouble is the sybase_ct driver that I need to connect to our MSSQL2000 / 2005 database. On the ...
Dave Mateer's user avatar
0 votes
7 answers
10k views

PHP, url rewriting with htaccess, and Microsoft IIS Url Rewriting?

I am used to working with Apache servers, so when mod_rewrite is enabled, I can create an htaccess file and use url rewriting. Here's my htaccess file: RewriteEngine On RewriteCond %{...
Andrew's user avatar
  • 3,563
1 vote
5 answers
21k views

Nginx Not Passing URL Parameters

Messing around with Nginx ... for some reason, it looks like none of my URL parameters are being passed. My homepage loads fine, but a URL like "http://mysite.com/more.php?id=101" throws errors, ...
jmccartie's user avatar
  • 153
3 votes
1 answer
122 views

Should I expect problems with a different version of the MySQL PHP extension vs the MySQL server?

I have a server that has a PHP MySQL extension version 5.0.77 while the MySQL version is 5.1.34. Some pieces of software/scripts are warning me that I may have problems. What kind of problems should ...
Darryl Hein's user avatar
  • 1,762
1 vote
1 answer
2k views

Apache won't restart with PDO MySQL enabled

I attempted to install the PDO MySQL driver onto a server with Solaris using the following commands: $ pecl download pdo_mysql $ tar xzf PDO_MYSQL-1.0.2.tgz $ cd PDO_MYSQL-1.0.2 $ phpize $ ./...
user avatar
1 vote
3 answers
8k views

iis and php max execution time error

First of all I'm running a VPS with Windows 2003 Server with IIS 6.0 and Plesk These are the settings from php.ini max_execution_time = 300 ; Maximum execution time of each script, in seconds ...
EsiX's user avatar
  • 69
0 votes
3 answers
6k views

PEAR Mail problem on Ubuntu

I'm having trouble using the Mail package from PEAR. I have PHP Version 5.2.8 installed (php-fpm used toghether with nginx) $ pear version PEAR Version: 1.7.2 PHP Version: 5.2.8-1hardy~ppa1 $ pear ...
andi's user avatar
  • 131
1 vote
2 answers
653 views

How do I get an OS X 10.5 box PCI compliant when the OS X 10.5.7 PHP and Kerberos versions are considered 'Vulnerabilities'

I have just upgraded a server to the latest OS X version 10.5.7 and my compliance scan tells me that these OS-installed components are causing vulnerabilities. I can't see where I can download higher ...
user avatar
1 vote
2 answers
200 views

Troubleshooting PHP Access Violations

My company is running IIS on XP. Every other day we get a PHP Access Violation and the only way I know to fix it is to restart IIS. I've googled the actual Access violation code and i can't find ...
Galen's user avatar
  • 1,983
1 vote
3 answers
328 views

exec / passthru error on IIS Server 6.x and Windows Server 2003

I'm trying to run ImageMagick from batch via exec() or passthru() I've already changed security settings for cmd.exe and ImageMagick folder. These are my current settings. C:\ImageMagick-6.5.3-Q8 ...
EsiX's user avatar
  • 69
1 vote
3 answers
270 views

track down source of shell command

In our apache error log (/usr/local/apache/logs/error_log) for one of our servers we are seeing a shell command running quite often which is throwing an error, it looks like this: sh: list_price: ...
robjmills's user avatar
  • 990
0 votes
7 answers
152 views

PHP and MySQL

How will I configure my PHP and MySQL so that they can work with Apache server? The versions that I use are PHP 5.2.9 MySQL 6.0.8 Apache 2.2 I know that I have to configure the php.ini file. But what ...
0 votes
2 answers
643 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
717 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
20k 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,749
1 vote
2 answers
725 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
623 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
171 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
  • 367
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
80k 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
34 votes
6 answers
83k 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
  • 473
2 votes
5 answers
324 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
193 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
95k 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