Tagged Questions

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
3answers
1k views

APC minimal shm size

What is the minimal amount of shm Space APC needs to operate properly? I'm currently running a Wordpress blog on a VPS based on virtuozzo and I can't set kernel shm to anything above 32 mb. Is there ...
1
vote
1answer
1k views

PHPMyAdmin is being attacked

I am running a Debian server with PHP5, Apache 2.2.16 and PHPMyAdmin (I don't know how to check the version number), Logcheck and some other programs. Today Logcheck begin to attach multiple lines ...
0
votes
1answer
1k views

Enable PHP-ZTS and MPM Workers in Apache to lower memory footprint, but still keep MySQL?

My question is quite similar to this one in that I'm trying to reduce the memory footprint of my website on a somewhat meager shared hosting solution. I'm going to be playing around with my own ...
0
votes
1answer
178 views

How can I redirect the contents of a folder to other domain?

We have moved our website to wordpress but we do rely on several folders and we already have link and images pointing to the old locations. for example: http://domain.com/t/image_001.png but I do ...
1
vote
2answers
303 views

PHP add virtual host dynamically

I'm developing a PHP web application that, among other things, needs to allow the user to add, edit and delete Apache virtual host entries. (I'm Including a web-writable config file in my ...
0
votes
1answer
321 views

Can't change PHP.ini in my own server

I have a Development platform with magic_quotes_gpc Off, and I can't turn it Off on my Validation server. Both are Ubuntu 11.04 (thought the Validation server is mount under VMWare). The Dev is uses ...
0
votes
1answer
42 views

Does installing additional PHP extensions make it work slower?

Does the fact that I install unnecessary modules make PHP overall slower? e.g. php-tidy, php-xmlrpc, php-bcmath. I use the latter only on very rare occasions. Would like to have it (and at least 5 ...
0
votes
1answer
246 views

Add Httpd service by linking to source install apache2

As title says, i need to add a service httpd to get the php and apache2 talking to one another it seems (by line in httpd.conf: AddType application/x-httpd-php .php) I uninstalled the default httpd ...
3
votes
2answers
6k views

Couldn't find package php5-fpm

I'm trying to set up nginx with PHP5 and MySQL on my production VPS. The reason I chose nginx over Apache was because the VPS isn't high spec. nginx is installed, and is successfully serving static ...
3
votes
2answers
185 views

Upgrading PHP 5.3.6 to 5.3.8 (Windows)

Is there an easy way to upgrade from one PHP maintenance level to another in Windows (i.e. 5.3.6 to 5.3.8)? Or is the only option to rename my current install folder, and install a fresh copy? I ...
0
votes
4answers
1k views

can't access the site without WWW in the url [duplicate]

Possible Duplicate: Enable access without “www.” on Ubuntu I just got set-up my first website and bought my own first domain name , but problem has showed up. I noticed that i ...
0
votes
1answer
533 views

nginx reverse proxy to apache: php doesn't work

I'm trying to make a reverse proxy from nginx to apache on my Ubuntu 10.04 server. It is working fine right now with HTML files... the requests are sent directly to apache. But whenever I visit a PHP ...
1
vote
1answer
231 views

PHP 5.3.8 doesn't load module xapian.so

I have web server on fedora 16 nginx + php-fpm (PHP 5.3.8),all installed with yum from standard repo. I'm trying to use xapian.so module so I istalled php-xapian and added extension=xapian.so to my ...
4
votes
2answers
375 views

Installing PHP on linux

I'm trying to setup php with oci8 support. I think I've configured all correctly before starting with oci, here is how I tried to start the install : ./configure -prefix=/common_share/APACHE/server ...
0
votes
1answer
264 views

Efficient privilege separation under Apache2 + PHP 5.3

What's the preferred way to setup a privilege separated, shared environment with Apache2 security and performance wise? I'd like to run each virtualhost under a different user/group and handle PHP ...
1
vote
1answer
383 views

php5 and HTML Tidy - without compiling?

I have an existing installation of PHP5 on my RHEL server. It's managed via yum, so security updates are applied as usual. I have need for HTML Tidy functionality, and was dismayed to learn that ...
8
votes
3answers
4k views

apache2 and php5: module or filter

What the difference between the php5 module (libapache2-mod-php5) and the php5 filter module (libapache2-mod-php5filter) for apache2? Which one should I use in which environment?
0
votes
2answers
2k views

How To Remove/Uninstall PHP in RHEL4

i wanna ask how to remove/uninstall php5 from my RHEL4 i've install it, using # ./configure # make # make install i've tried #make uninstall but there's following error, i've tried it in ...
1
vote
1answer
2k views

I cannot install APC

I have php 5.3.6 and ubuntu. I want to install APC. When I do the $ pecl install apc, I eventually get an error: In file included from /tmp/pear/temp/APC/apc.c:44:0: ...
0
votes
2answers
330 views

How do I set up IIS7 to pass everything through to Joomla?

Context: IIS7, Win7, Joomla 1.5 With this URL, http://website/foo , if I have a subdirectory called "foo" in the root of the Joomla install, IIS7 tries to find index.php in it and returns a 403 ...
1
vote
2answers
1k views

PHP is not executed on apache2

I run apache (Apache/2.2.14 Ubuntu). PHP is not executed. I noticed that the line AddType application/x-httpd-php .php .html .htm was missing from /etc/apache2/apache.conf I tried adding the line ...
2
votes
4answers
3k views

APC does not load when calling PHP from cli

After installing APC on CentOS 5 via pecl install apc, APC does not load when PHP is called from the CLI (when called from apache, it loads without any problems). The error I get is: root@server ...
1
vote
1answer
2k views

Unable to load dynamic libraries (pcre,spl,gettaxt,mhash,snmp,sockets,tokenizer)

I'm a bit new to freeBSD and trying to set up a webserver. I've managed to get phpmyadmin installed and phpinfo(); works fine. But when i typ in 'php -v' i get some warnings: PHP Warning: PHP ...
-1
votes
1answer
303 views

Why are there tons of PHP processes open on my server?

Today I saw that a website of mine isn't working so I ssh'd to the server and executed ps -eF. I see about 200 PHP processes that are running all for 4 hours. Apache is built with mpm event and mod ...
0
votes
1answer
90 views

mydomain.com/info.php doesn't works but mydomain.com:8008/info.php works

Sorry the title, but I don't know how to name this question. I'm on a dedicated server on ubuntu 11.04. It runs with plesk 10.3. I change the listen port of apache 80 -> 8008 When I go into my ...
-1
votes
1answer
365 views

Cpu usage from top command

How can i get the result like example following. Any command or scripts? Snapshot u1234 3971 1.9 0.0 0 0 ? Z 20:00 0:00 [php] <defunct> u1234 4243 3.8 0.2 64128 43064 ? D 20:00 0:00 ...
0
votes
2answers
379 views

Adding a CLI for PHP5 on live server

I want to add command-line support for PHP5 on my server. When I run aptitude install php5-cli I get a message saying that my PHP modules/packages have unmet dependencies. Here is a list of packages ...
1
vote
1answer
427 views

Intermittent error 404 during higher loads. (nginx/php/apc/mysql)

I have a 4 cpu core VPS with 4GB ram. It is running Ubuntu 10.04 with nginx/0.7.65, PHP 5.3.2, and MySQL. I use php5-fpm for the communication to nginx. I also have php5-apc complimenting with php ...
1
vote
1answer
3k views

How can I protect files on my NGiNX server?

I am trying to protect files on my server (multiple types), with NGiNX and PHP. Basically I want people to have to sign in to the website if they want to access those static files like images. ...
0
votes
1answer
251 views

PHP in Windows 2008 64-bit slow

I have un 4GB RAM AMD Opteron machine (3.2GHz quad) on 64-bit Win2k8 RS2 -- installed Apache Lounge 32-bit version (as general consensus is no big speed win between 32-bit and 64-bit) with thread-safe ...
2
votes
3answers
801 views

Unknown Apache2 + PHP5 FastCGI 500 error .. caused by search engine bots?

My Ubuntu server is configured with Apache 2.2.8 and PHP 5.2.4-2ubuntu5.18 in FastCGI mode. Everything works well, except I am seeing 500 errors that only seem to come from bots accessing the server.. ...
1
vote
1answer
155 views

Running PHP 4 and PHP 5 at the same time on the same site using Apache on Windows

Most results I get on google is how to get both versions running simultaneously on the same server but at different URLS but that's not what I want. I'd like, for example, to get http://localhost to ...
2
votes
1answer
205 views

apache 2.2 with php 5.3 and miscrosoft sql 2008 crash

I am using Apache 2.2 with PHP 5.3 and Microsoft SQL Server 2008 on Windows Server 2008 64-bit. Every 3 to 5 hours, I get the error in the event viewer that Apache crashed for 20 seconds and then ...
1
vote
1answer
429 views

php session_start() permisson denied

PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied I am getting it in my apache error log /var/lib/php5 owner and group is root, so is it fine ...
-1
votes
2answers
2k views

unable to start wamp server [closed]

problem to start wamp server error log is [Sat Nov 12 22:01:00 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations [Sat Nov 12 22:01:00 2011] [notice] Server ...
3
votes
1answer
1k views

IP flooding despite mod_evasive?

I have an Apache 2 server running PHP5, prefork MPM, eaccelerator and modevasive. My server sometimes goes down, apparently due to flooding from some IPs. At least this is what I understand from ...
0
votes
2answers
126 views

Memory requirements for PHP + MySQL on Windows platform

I have cloud server at RackSpace that has 2GB of memory. OS is Windows Server 2008 R2 x64. As of now server is pretty fast. I plan to configure IIS and install SQL Server Express 2008 R2 x64, so ...
0
votes
2answers
290 views

Only allow access to /directory from a specific domain?

I have multiple domains pointing to the same site. Example: I have www.admin-domain.com pointing to /var/www I have www.test.com pointing to /var/www/test directory and this is OK. Example: ...
2
votes
3answers
3k views

Linux SUSE - How to install PHP 5.3.x on SUSE?

I'm trying to install php 5.3.x on Suse/linux platform, but whenever I install and check it with phpinfo(); it shows php 5.2. Any idea how to deal with it? please provide the detailed instructions. ...
1
vote
1answer
1k views

Mounting an S3 bucket onto a AWS Ubuntu instance issues

i'm using s3fuse to mount an s3 bucket onto ubuntu, so that i can take advantage of the storage space. here are some environment info: System Info: Linux ip-xxx-xxx-xxx-xxx 2.6.38-8-virtual ...
-2
votes
2answers
1k views

Need help updating PHP 5.2 to 5.3 (on Debian Lenny)

I need to update 5.2 to 5.3 in one of our servers urgently. My unix skills are limited so please be as specific as possible. Is there any way to do this easily with apt-get upgrade ?
5
votes
1answer
2k views

PHP5-FPM does not create unix socket directory within /var/run

I've set up my php5-fpm to bind to a unix domain socket within /var/run/php5-fpm. /etc/php5/fpm/pool.d/www.conf listen = /var/run/php5-fpm/$pool.sock The problem is that it will not automatically ...
0
votes
1answer
180 views

Error 500 message - but only for certain pages/ operations

I'm a bit confused and bewildered by a problem I seem to be having with Apache/ PHP. Whenever I try to open certain pages, I'm confronted by an error 500 message. For example, if I try to edit a View ...
3
votes
2answers
4k views

Configure php5-fpm for many concurrent users

EDIT: Added some configs and a clarification on how many is "many", as requested by anthonysomerset. EDIT 2: Added fastcgi_cache to nginx config, as suggested by SleighBoy. I run a server for a ...
0
votes
2answers
548 views

Apache/Linux CentOS (32bit) Not Loading PHP Modules

This is probably an easy question, but I've been at it for days with no luck. I need soap enabled to run an application on linux CentOS/Apache. I have PHP installed and have loaded soap.so in ...
0
votes
2answers
1k views

Enabling dBase on PHP installed on Centos

I have php 5.3.6 installed on Centos 5.5 (from iucommunity repository). Now when I want to enable dBase by yum install php-dbase, I get this error: Package php-dbase is obsoleted by php-common, ...
-3
votes
1answer
270 views

Apache not working

i have centos 5...php 5.3.8 and apache 2.2.21...I had this problem now i have another problem... first of all i see apache test page even though my script is still there ( but that problem i can fix), ...
0
votes
2answers
125 views

installing php/apache from source

I've just made a new instance via AWS EC2 - opting for the most recent stable release of ubuntu - 11.04. I now need to install the latest versions of PHP and Apache. I've run an apt-get update etc.. ...
2
votes
3answers
2k views

Enabling phar on Dreamhost shared hosting?

So, i'm trying to use Silex on my dreamhost account and I'm getting an error Fatal error: Class 'Phar' not found in blah blah blah... when I try to include the Silex.phar file. When I look at ...
1
vote
1answer
2k views

Zend Optimizer not compatible with PHP+APC+Drupal. Can I disable it for Drupal-run domains?

I use the following set up: PHP Version 5.2.17 Apache/2 Zend Optimizer v3.3.3 Drupal 7.8 As far as I read other articles and questions, Zend Optimizer doesn't do any good neither for PHP5 ...