The php5 tag has no wiki summary.
0
votes
3answers
36 views
Exclude a specific repo from YUM Update
I am doing a system wide yum update on RHEL 5.5 and the IUS EPEL repository is throwing a missing dependency error:
php53-mcrypt-5.3.3-4.ius.el5.x86_64 from installed has depsolving problems
--> ...
0
votes
0answers
24 views
PHP5 OCI8 FreeBSD
I'm running a FreeBSD server with Apache and PHP 5.3. I'm trying to get the Oracle DB extension (OCI8) running with PHP but I can't find a port or anything for it. Half of the Internet says it's no ...
0
votes
3answers
19 views
PHP using lots of memory/time outside of script?
I'm working with a site that was built in Drupal and generally runs well. After some optimization it takes 20-75MB of memory and 0.5-2s for most requests. But once in a while it will take 15-20s and ...
0
votes
1answer
31 views
Apache 2.2 on CentOS 5.5 doesn't serve PHP files after upgrade to php53
I just upgraded a CentOS 5.5 server (using Apache 2.2) to PHP53 (using the php53u set of packages).
All of a sudden, Apache doesn't appear to recognize .php files. It's just delivering the source.
...
1
vote
0answers
36 views
phpinfo() memory limit will not change after php.ini edits and restarts [Solved]
Currently, I'm having an issue changing the memory limit for my dev server. Anyway, according to my phpinfo() the Loaded Configuration File is /etc/php5/apache2/php.ini and memory_limit is 128M. Now ...
0
votes
0answers
25 views
PHP sqlite3 : INSERT statement works in command line but not in browser
When I execute the following script via the command line (php5 script.php), it works fine, but when I run it via the web browser, only the first statement is executed.
<?
$DBNAME='astbase.db';
...
0
votes
2answers
141 views
Install php-mssql in CentOS 6.2
I have a server running CentOS 6.2 with Plesk 10.4. When I SSH in, and try and install ms-sql extension it says "No package php-mssql available."
I can't seem to find much on Google for this, and I ...
0
votes
0answers
49 views
Internal Server Error - Stack smashing detected
On certain pages on my VPS I get the following error. This happens with multiple VHOSTs. It has happened on both Wordpress and vanilla forums.
It only happens when I run suphp rather than normal ...
1
vote
1answer
105 views
mod_vhost_alias + suEXEC: auto selecting uid/gid
I'm trying to configure Debian 6.0.4 for massive shared hosting with PHP5.
Packages apache2-mpm-worker libapache2-mod-fcgid apache2-suexec are installed.
I successfully loaded mod_vhost_alias and ...
-6
votes
0answers
30 views
Does this dedicated server enough for my website ? Social Networking [closed]
I developed this social networking project, I want to test it for our college. We have 5000 students in our newsletter that will join the site in the first 6 months of launching it. It doesn't offer ...
0
votes
0answers
27 views
Apache2 filtering Auth headers
I'm running PHP 5.3.6 as Apache 2 module (phpinfo ServerAPI says "Apache 2.0 Filter") in a Ubuntu machine. I have a PHP application and I want a iOS client to send it information under https. ...
0
votes
0answers
39 views
PHP 5.4 after-install: preg_match(): Compilation failed: unknown option bit(s) set at offset 0
I recently upgraded my PHP to version 5.4.1 on my Lion OS X 64bit, I'm getting an error thrown in Codeigniter:
Severity: Warning
Message: preg_match(): Compilation failed: unknown option bit(s) set ...
0
votes
1answer
140 views
php5-mysqlnd on debian wheezy/sid?
I am trying to install php5-mysqlnd on a fresh install of Wheezy (/etc/debian_version refers to it as wheezy/sid) and I'm having a problem:
root@debian:/var/www/lottery1# apt-get install php5-mysqlnd
...
0
votes
1answer
31 views
Using a custom PHP.INI for a single site. Windows 2003, 64bit, IIS7.5, PHP 5.3.6
I have a single PHP script on a single site that requires me to set the upload size maximum fairly high. I would prefer not to do this globally.
According to the PHP docs, I can not set the values ...
-1
votes
1answer
79 views
too many 408 error codes in access log
Apache access log is showing too many 408 error codes,nearly 400 per day.
x-x-x-x - - [25/Apr/2012:22:43:06 -0600] "-" 408 0 "-" "-"
there are around 400 of these kind of request from different ip ...
0
votes
1answer
25 views
(Apache) Weird characters with Roundcube (PHP)
Yes, i saw all the questions about the weird characters at the end of a PHP script.
I will ask here because no solution from the internet and serverfault worked.
At this page: ...
0
votes
0answers
63 views
PHP + PHP-FPM: php.ini file not being loaded
I have compiled PHP 5.3.10 with --enable-fpm and --prefix=/usr/local/php flags.
I have copied php.ini from sources directory to /usr/local/php/lib directory, created symlinks into /etc, ...
0
votes
0answers
82 views
Set the php.ini default_socket_timeout to an infinite value for DNode
I'm using a library called DNode for php which connects with Node.js, a javascript library to handle web-sockets. When I start the script which is meant to serve as a daemon and listen for requests ...
1
vote
0answers
29 views
Request server url without explicit file name doesn't parse index.* files
I've set up a new vServer with apache2, php5 and mysql.
When I enter my server url (e.g. example.org) in the browser it starts downloading the index.php instead of parsing it. But when I request a ...
2
votes
0answers
62 views
PHP + ImageMagick Performance Issues
Good Day,
I have two environments: OpenVZ VPS and Pentium 4 local dev machine.
They have all packages installed the same way. ImageMagick is compiled from sources without OpenMP support.
When I run ...
0
votes
1answer
114 views
How to reduce memory usage per virtual server
On CentOS 5.8/Apache 2.2.3/FastCGI/PHP 5.3.10 virtual machine I have the original and a cloned Magento install (to be used as a staging server). I would like to minimize memory usage by apache and php ...
2
votes
2answers
44 views
How can I override mod-php5's .php mapping to php4-cgi per VirtualHost or Directory?
I am running Debian Linux with apache2 and libapache2-mod-php5 5.3.3-7.
I have one VirtualHost which requires php4.
So I researched and compiled php4-cgi.
However, I cannot seem to:
Override ...
-1
votes
1answer
71 views
PHP 5.4 can't include file with permissions 777
I'm working on setting up PHP 5.4, and I've set a library up in /usr/share/php/
I've set include_path='.:/usr/share/php', and was not able to include anything with a relative require_once.
I've set ...
1
vote
1answer
96 views
How to free PHP-FPM memory?
There are several discussions complaining high memory usage of PHP-FPM, without any practical approach to overcome. As I explored the problem with numerous tests, the problem is related to the age of ...
1
vote
1answer
147 views
Hide STRICT errors on PHP 5.4
I've upgraded from PHP 5.3 to PHP 5.4 today. Now my script is displaying a lot of error messages. How to hide them without using error_reporting(0); inside php file ?
I use this:
error_reporting = ...
0
votes
0answers
39 views
Dependency issue when installing some packages with apt
We have a little trouble installing some php5-* packages.
I am reallt not sure what is going on. We have the latest version
of php5-common.
# apt-get install php5-mcrypt
Reading package lists... Done
...
0
votes
1answer
273 views
PHP 5.2 installation with GD on CentOS 6
I am trying to install PHP 5.2.17 on CentOS 6.2. I have downloaded RPMs from http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMs/
Problem is that the PHP RPM seems to have GD disabled by ...
1
vote
2answers
75 views
500 internal server error php long running process
I am trying to run a long php process and it ends with the 500 internal server error. It executes fine for about 8 mins. I have rebooted the machine after changing the php settings.
PHP Config:
...
0
votes
0answers
33 views
apache2.2 + php5 , process never die and stay blocked to LOCK_SH
Server version: Apache/2.2.22 (Unix)
Server built: Mar 28 2012 16:31:45
Server's Module Magic Number: 20051115:30
Server loaded: APR 1.4.6, APR-Util 1.4.1
Compiled using: APR 1.4.6, APR-Util 1.4.1
...
0
votes
3answers
115 views
PHP max_execution_time, what is the best tune for large uploaded files
I have a WordPress installed and I use a web form to upload images in my web site. The web form allowing the end user to upload more than one files at a time.
The problem is that one of my users had ...
0
votes
0answers
220 views
APC on PHP 5.4 does not seem to be installed after installation
I've recently upgraded to PHP 5.4 from 5.3.6, I did the command apt-get upgrade php5 with the custom PHP 5.4 repo which I added to the apt-get repositories, now that I upgraded, I restarted ...
0
votes
1answer
24 views
How to create the folder using php code under the user perm in developement server?
We have Development Server with apache 2.2 and php5. Here developers are accessing the server using the individual samba login for uploading the files into the server. But when creating the folder and ...
0
votes
1answer
59 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 ...
1
vote
1answer
207 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 ...
0
votes
0answers
226 views
Ubuntu 11.10 php 5.4 symfony2 nginx error
I have updated to php 5.4 on my local ubuntu 11.10 this morning. My symfony application which was working before update is now giving me 500 internal server error. Another symfony2 application on same ...
0
votes
1answer
121 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 ...
1
vote
0answers
97 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 ...
0
votes
2answers
68 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 ...
0
votes
2answers
838 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 ...
0
votes
1answer
130 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 ...
2
votes
0answers
59 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. ...
0
votes
1answer
724 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 ...
0
votes
1answer
133 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 ...
0
votes
1answer
94 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' -
...
0
votes
2answers
229 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 ...
3
votes
2answers
594 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 ...
0
votes
0answers
77 views
Not Sure: How to flush cache or who is caching files
We got wordpress stack running for one of our corporate blog. We recently upgrade the whole cluster from RHEL 5 to RHEL 6. Everything is working fine. But, now we have a new problem. Our setup is as ...
0
votes
2answers
134 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 ...
0
votes
1answer
310 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
179 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 ...