Questions tagged [php5]

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
-1 votes
1 answer
653 views

Slow local request on apache server with php

I have a problem with my apache2 server and I'm not quite sure how to best debug it. What I'm seeing: I've got a PHP script that renders a barcode. When this script is requested externally to the ...
Fake51's user avatar
  • 132
5 votes
3 answers
15k views

How to configure Apache on Amazon Elastic Beanstalk

My PHP5.3 application is currently running on a Windows 2003 server running XAMPP 1.7.7 I've decided it will be better if I can get it moved onto the cloud, and Amazon Elastic Beanstalk looks like the ...
Ian's user avatar
  • 261
0 votes
1 answer
4k views

IIS 6.0 with PHP and FASTCGI - error exited unexpectedly

I have a windows 2003 server using IIS6 and PHP. I am using a PHP Framework and on loading a page of the framework, after 15 seconds I get the following error: FastCGI Error The FastCGI Handler was ...
Matt's user avatar
  • 101
1 vote
0 answers
471 views

Web Platform Installer PHP Updates

I have installed a version of PHP with the Microsoft Web Platform Installer v3.0. In this case it was version 5.3.10 and since then version 5.4.0 has come out. How do I use the Microsoft Web ...
John's user avatar
  • 2,276
0 votes
2 answers
2k views

2 php versions on same server

Is it possible to install 2 php versions on same server. I have some old sites on my local system which supports php5. But latest CMS and framework supports php5.3 . I don't want to change my old ...
user avatar
8 votes
6 answers
42k views

Downgrade PHP 5.4 to 5.3 in Debian

I had to do a Debian dist-upgrade on my server... in the process, PHP got upgraded to 5.4. We use ioncube which only supports up to 5.3 atm, and I'm having some trouble finding how to downgrade to 5....
Carnivoris's user avatar
0 votes
1 answer
236 views

A few questions about working with PHP 5.4

I installed PHP 5.4 on Debian from source and I run php scripts on the PHP Built-in web server with new php features without any error but php scripts do not run with apache2 with new php features. I ...
Mesut Tasci's user avatar
2 votes
0 answers
347 views

php5-geoip performance issue

I installed the php5-geoip module on Ubuntu 10.04 via apt-get install php5-geoip. I've updated the geocities.dat library The production server performance decreased and load average is soaring. ...
Niro's user avatar
  • 1,451
0 votes
1 answer
1k views

apache 2.4 with php on debian squeeze

I've just compiled and installed apache 2.4 on my debian squeeze machine. It was the first time I've compiled it on my own. My next step should be installing mod_php for the server. Now I was thinking ...
soupdiver's user avatar
  • 807
2 votes
1 answer
9k views

Can I limit the number of php-cgi.exe that run per website on IIS 7?

I wasn't sure which was best to post in so I posted here and on http://webmasters.stackexchange.com I will delete the other if this post is more relevant here. I'm having a slight issue with memory ...
Anthony's user avatar
  • 367
0 votes
1 answer
4k views

Receiving error php_mbstring.dll No such file or directory

I am receiving this error in apache error log during httpd restart process. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mbstring.dll' - /usr/lib64/php/...
Maca's user avatar
  • 1,063
1 vote
2 answers
6k views

PHP Warning: PHP Startup: Unable to load dynamic library

I have tried to run my script via cron, but it was not working... */1 * * * * /usr/local/bin/php -f /usr/local/www/maintain.php > /usr/local/www/php.log So I decided to try to run this script ...
Cyclone's user avatar
  • 260
3 votes
2 answers
6k views

$PHP_AUTOCONF errors on mac os x 10.7.3 when trying to install pecl extensions

I am trying to setup my machine with pecl_http and memcache and in both cases, I get similar errors. This is on MAC OS X 10.7.3 (lion) and I also have XCODE installed on it. I also installed Zend ...
krishna's user avatar
  • 131
1 vote
3 answers
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 ...
schneida's user avatar
  • 339
1 vote
1 answer
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 ...
The87Boy's user avatar
  • 155
1 vote
1 answer
2k 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 ...
daveycroqet's user avatar
0 votes
1 answer
1k 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 ...
balexandre's user avatar
1 vote
2 answers
3k 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 Apache2.conf)...
Chris's user avatar
  • 277
0 votes
1 answer
754 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 ...
Nicolas Zozol's user avatar
0 votes
1 answer
134 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 ...
Gajus's user avatar
  • 851
0 votes
1 answer
294 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 ...
Mr. Q's user avatar
  • 3
3 votes
2 answers
11k 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 ...
Whitey's user avatar
  • 61
3 votes
2 answers
282 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 ...
Jonah Bishop's user avatar
2 votes
4 answers
18k 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 can ...
user avatar
0 votes
1 answer
1k 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 ...
mr_schlomo's user avatar
1 vote
1 answer
399 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 ...
B14D3's user avatar
  • 5,258
4 votes
2 answers
706 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 --...
London's user avatar
  • 181
0 votes
2 answers
619 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 ...
Jauzsika's user avatar
  • 661
1 vote
1 answer
543 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 ...
a coder's user avatar
  • 799
11 votes
3 answers
10k 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?
gucki's user avatar
  • 828
0 votes
2 answers
4k 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 ...
why_u's user avatar
  • 1
2 votes
1 answer
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: /usr/include/php5/ext/pcre/...
Mikkel Rev's user avatar
0 votes
2 answers
410 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 ...
bugmagnet's user avatar
  • 246
1 vote
2 answers
3k 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 ...
jorrebor's user avatar
  • 113
2 votes
4 answers
12k 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 [~]#...
xaav's user avatar
  • 191
1 vote
1 answer
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 ...
FLY's user avatar
  • 159
-1 votes
1 answer
1k 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 ...
fiftyeight's user avatar
0 votes
1 answer
110 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 ...
Raphaël's user avatar
  • 143
-1 votes
1 answer
1k 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 /usr/bin/...
user avatar
0 votes
2 answers
517 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 ...
Josua Pedersen's user avatar
2 votes
1 answer
2k 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 ...
user avatar
3 votes
1 answer
18k 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. ...
jnbdz's user avatar
  • 947
0 votes
1 answer
359 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 ...
Yves-Pierre's user avatar
2 votes
3 answers
1k 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.. ...
Ryan D's user avatar
  • 21
1 vote
1 answer
372 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 ...
user472755's user avatar
2 votes
1 answer
319 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 ...
mohamed Ali 's user avatar
1 vote
1 answer
2k 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 to ...
LINUX4U's user avatar
  • 254
3 votes
1 answer
2k 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 ...
Eric's user avatar
  • 213
0 votes
2 answers
176 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 ...
Joe Schmoe's user avatar
1 vote
4 answers
6k 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: www....
stevs986's user avatar

1
10 11
12
13 14
18