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

1
vote
1answer
399 views

Make post title as a slug in url by mod rewrite

I have previously posted a question but I am not satisfied with the answers. I have a url, for example http://example.com/details.php?a=100&b=101&slug=power-programming-in-php I want to ...
-1
votes
1answer
342 views

Cannot connect to mysql after upgrade via cpanel

Have cpanel, tried to upgrade from mysql 5.0.98 to 5.1.x using easyapache. After that happen my site went down and cpu went sky high with a ton of queries. Using php 4.4.9. Went ahead and downgraded ...
0
votes
1answer
202 views

Linux, PHP, and mysqlnd?

Looks like most common distros build their PHP packages without mysqlnd, instead relying on the old libmysql library. Are there any distros that do include the new mysql native driver even as an ...
2
votes
1answer
373 views

Managing logs for several dynamic instance on Amazon

I have this problem or rather an itch that I could really use help with. I use autoscale and several instances on Amazon. Problem is I have all these logs PHP, Apache, system but also my web app ...
0
votes
1answer
927 views

memcached install issues with lib event on server

I've installed libevent on my server in the directory root/data/ and have i'm about to install memcached with ./configure –with-lib-event=/data/; make; make install However, after running a bit I ...
1
vote
3answers
780 views

Upgrading PHP from 5.1 to 5.2 on CentOS 5.4

i'm trying to upgrade php 5.1 to 5.2 on a CentOS 5.4 I use: yum upgrade php The result is this (check out the last part): [root@mail httpd]# yum update php Loaded plugins: fastestmirror Loading ...
0
votes
3answers
64 views

Troubleshooting php

I'm experiencing a problem with a php/apache install on debian lenny. At random times during the day it will stop servicing request for .php pages, but static pages (html/css etc.) continue to work. ...
0
votes
3answers
66 views

Opening apache server to the web

Very basic question inbound. I'm a CS student and i'm new to server side stuff. I managed to get myself a server in the cloud with a root ssh login and installed LAMP (centOS 5.5) and tomcat5 for ...
-1
votes
1answer
868 views

Insufficient disk space; try again later when trying to send mail

I am trying to send an email with attachment using PHP and I get this error: Insufficient disk space; try again later Insufficient disk space; try again later returntosender: cannot select queue for ...
0
votes
1answer
169 views

Overriding vhost.conf to always allow PHP include access to directory

My predecessor in my job developed a simplistic newsletter system for our school's newspaper utilizing PEAR's Mail package. As I grow this system (and our site) we are constantly stuck with Plesk ...
0
votes
3answers
40 views

porblem in Mod rewrite url editing [duplicate]

Possible Duplicate: Make post title as a slug in url by mod rewrite I have a url: http://www.example.com/details.php?var=100&p=99 I want to rewrite it as using mod rewrite ...
0
votes
1answer
328 views

Error when installing PECL Oauth Extension on CentOS 5.6

I'm trying to install the PECL OAuth extension on CentOS 5.6, I have all the required dependencies installed, but I can't get past this error: downloading oauth-1.1.0.tgz ... Starting to download ...
10
votes
2answers
3k views

Should I impersonate PHP via FastCGI?

I am installing the latest version of PHP onto IIS 7.5 via FastCGI, and all of the instructions say that FastCGI should impersonate the calling client by setting fastcgi.impersonate = 1 If my ...
1
vote
4answers
842 views

Server load spikes several times a day, load average for the past month is 5 times the load average all year

My Munin notifications set up for our (Debian) LAMP cluster have been notifying me continuously that our load on our production machine has been at dangerous levels. While the average load all year ...
2
votes
2answers
447 views

Memcache - Issues in a distributed environment with many nodes

I've had a quick look through the other similarly titled questions and none are particularly similar to the issues I'm currently having. Basically, we've had a multi node memcached ring running for ...
1
vote
0answers
938 views

FastCGI connection refused on port 9000

I have a site running PHP 5.3.2 + PHP-FPM and Nginx 0.7.65 and rebooted the server after changing the root password. The web server starts up fine, but the site doesn't come up and the only clue I ...
1
vote
3answers
2k views

Set default mail sender on linux (PHP)

Whenever i send an email in php with the mail() function, when i receive it as a user, the e-mail is shown as sent from "anonymous@MyServerName.local". Now i want that to be sent from ...
1
vote
0answers
193 views

lamp php ubuntu 10.04 with cgi I get accesses to '/var/www/…' instead of '/usr/lib/cgi-bin/…'

I have a basic php cgi configuration problem on top of the apache web server in Ubuntu 10.04 . I am trying to setup cgi so as to answer one of the urls localhost/cgi-bin/index.php or ...
1
vote
1answer
109 views

Is there an up to date guide on PHP (5.3) Apache (2) and FastCGI?

All the articles I can find on the web all are dated from 2005 - 2009. We are looking to move to fastcgi with php and apache but can't find any up to date information on the topics. Does anyone know ...
0
votes
3answers
47 views

public_html folder on webserver

I created a public_html folder on my webserver at home and when I try to open php files on the browser tries to download the file instead of displaying. HTML files open fine and when i move the php ...
1
vote
0answers
273 views

How to optimally configure php-fpm?

I am using php-fpm along with nginx to server a busy drupal sites. I have not tweaked php5-fpm.conf yet. The stability is fantastic, however, I am wondering how to optimally set the parameters to ...
1
vote
1answer
245 views

My ubuntu server can ping and ssh can connect, but ssh can't do the authuncation and halt

I have two ubuntu server. Each running php-cgi by phpfpm, memcached, mongodb. And these servers are not running in a high load state. After running several days. The server will halt. No service and ...
2
votes
1answer
692 views

Using different versions of PHP with virtual domains/hosts

I'm hosting several websites in a single directory, using Apache virtualHosts. Some of them need PHP 5.2 and others are fine with PHP 5.3. How can I specify which directories use each version and how ...
1
vote
2answers
995 views

nginx http upload module config

I recently put nginx in front of apache to act as a reverse proxy. Up until now Apache handled directly the requests and file uploads Now, I need to configure nginx so that it sends file upload ...
1
vote
2answers
1k views

php-cgi shows mysql modules but throws “Call to undefined function mysql_connect()” error

I have compiled PHP 5.3.6 from source on Mac OS X 10.6 using the --with-mysqli=mysqlnd option. The output of both php -m and php-cgi -m show the mysqli and mysqlnd modules. When I run a simple test ...
3
votes
2answers
442 views

PHP as a CGI binary vs. PHP as an Apache module

What are the benefits of running PHP as a CGI binary compared to running PHP as an Apache module? Are there: Security benefits? Stability benefits? Performance benefits? I've always installed and ...
1
vote
1answer
481 views

ESMTP MailEnable with PHP

I am running a windows server (windows 7) with IIS 7. ESMTP MailEnable is running on port 25. I am also running apache and php on the server. When I use php's mail() it returns false indicating ...
0
votes
1answer
244 views

Configuring apache/php to work with mail on windows

I am not a server admin at all, so forgive me. I uploaded my website to a new windows server and am using mail(), but it's returning false. This indicates to me that the server is not properly set ...
2
votes
2answers
586 views

php is running scripts forever, but i have max_execution_time set to 30

I've got a dedicated box (so I can edit all settings) running PHP 5.2.16. I have both Max_execution_time and max_input_time set to under 60, restarted apache (using apachectl -k graceful) but scripts ...
0
votes
2answers
961 views

Apache2-Prefork & FastCGI

I Have Apache2-Prefork running using mod_php and php 5.2. And i also have php-fpm with php 5.3 running inside a chrooted environment (listening to an unix socket which would be reachable for apache) ...
0
votes
2answers
68 views

Installing mod_wsgi in addition to PHP

I would like to use some python scripts with my PHP-based application. I don't want to install Django; just mod_wsgi, so Apache can execute my python scripts as well as the rest of my PHP site. How do ...
2
votes
2answers
90 views

create subdomain to point to mail server APACHE

I have 2 servers. The MX records are pointing to server1 (which also has webmail on it). The A record is pointing to server2. Now if I type in the domain, it takes me to server2. if I type of the ...
0
votes
1answer
791 views

Completely locked out of MySQL via WAMP!

I've somehow managed to completely lock myself out of MySQL on WAMP. It seems all privileges are denied for all users. The only way I can get into MySQL is via the command prompt but without entering ...
0
votes
1answer
145 views

Is it possible to have both ion cube and zend loaders running on the same server?

For ion cube I need this line zend_extension = /usr/lib/php5/20060613+lfs/ioncube_loader_lin_5.2.so while for zend I need this one zend_extension = /etc/php5/ZendOptimizer.so Are these loaders ...
5
votes
7answers
5k views

Unable to remove limit on memory usage for PHP script

The Situation I am having an issue with a PHP script getting the following error message: Fatal error: Out of memory (allocated 359923712) (tried to allocate 72 bytes) in ...
0
votes
1answer
453 views

index.php not displaying when navigating to directory with iis6

Found that IIS was looking for iistart.htm before looking for index.php! I am building an application on a iis 6 server and I am running into a problem. When I type in http://server/index.php, I ...
1
vote
1answer
80 views

get list of php files consuming resources

Does there exist a way to output a list of currently executing PHP files, in Apache in debian? (and if it is possible, also listing the resources used by that instance). We are having some ...
1
vote
0answers
300 views

How to enable LDAP with php IIS 6 and windows server 2003

I have been reading this answer and trying to understand it: How can I enable LDAP in PHP - Windows Server 2008 LDAP is not showing up with phpinfo() I installed PHP the same way as this person with ...
1
vote
0answers
2k views

phpinfo reports no value for PDO MySQL driver

As per the title I'm having problems with PHP 5.2.10 and getting PDO MySQL to be recognised. My configure command contains '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' ...
0
votes
1answer
77 views

disable open_base_dir restriction in plesk for EVERY subdomain

I have an open_base_dir restriction in affect on my server. I can disable this by adding a vhost.conf file to each domain but I need a way to stop this happening by default. My php.ini file is set to ...
0
votes
1answer
275 views

How to configure Postfix mail to act as a SMTP server for my Windows PHP to send mail?

I am trying to send mail from PHP on Windows. I want to configure my Ubuntu to accept requests from Windows PHP mail(). How can I do it?
2
votes
1answer
870 views

nginx PHP files 404

I am getting 404 not found on php files with my nginx/php-fastcgi install. I have tried several variations of declaring root in different places but cant find one that works, and I suspect this is ...
1
vote
2answers
1k views

Should I use suphp or mod_php for shared hosting?

I am considering using suphp. It seems that newly created files in php get ownership apache.apache and this can become an issue. Also it seems that monitoring of spam sent and load usage by php ...
2
votes
2answers
14k views

PECL install/phpize error

This is my PHP setup ################################################################## # setup PHP ################################################################## # we use this to make inline ...
1
vote
1answer
297 views

32bit or 64bit PHP on 64bit capable processor/64-bit Windows Server 2008/IIS7

I plan to install PHP on a system running on AMD Opteron/Windows Server 2008/IIS7. According to the device manager the OS is a 64-bit Operating System. So which flavor of PHP should I install on it. ...
0
votes
1answer
408 views

php5-fpm not working without restarting twice every time

I'm on ubuntu (10.10) and I've got php5-fpm installed. Whenever I restart it, I get no errors, just a successful restart message. But it's not really working (I only know this because php pages get an ...
0
votes
1answer
321 views

Htaccess: Rewrite a subdirectory within a domain to the main domain

I have to rewrite a sub directory to go the main domain. For example, I have www.mysite.com and I want to rewrite www.mysite.com/newersite to www.mysite.com This is what I used in my htaccess file: ...
0
votes
1answer
132 views

Starting Up SQL Server 2008 in IIS

I'm a complete noob at windows servers and IIS so please be patient with me. I originally set up a website using php/mysql. I have the website running PHP with FastCGI through IIS already, but the ...
1
vote
1answer
5k views

NGINX does not pass POST request when posted to /

The issue occurs when sending a post request {username:'admin', password: 'password'} to http://guy.lt/fbb?foo=bar. The output is {"foo":"bar"}, though the expected output is: ...
4
votes
4answers
617 views

Apache LAMP permisson issues on Ubuntu server

I have been trawling the internet for a few days now and think I've tried almost everything to get some virtual hosts set up on my Ubuntu server but everything short of chmod 777 on the webroot fails. ...