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.
0
votes
0answers
9 views
Eaccelerator.set_magic_quotes_runtime() is deprecated
I want to install eaccelerator onto my system(Fedora 15).
I'v compiled it. And everything is great until I want to use it directly:
Every time I include eaccelerator.ini into php.d folder after ...
0
votes
0answers
31 views
PHP page not displaying formatting on external slow connection, but does on internal fast connection
Hopefully this is simple.
If I access a webpage served using apache2 and php5 via a mobile device with a slower connection like an android phone, the display and formatting of the php page does not ...
0
votes
0answers
87 views
php gnupg = unable to load warning
End goal: use PHP GnuPG library in my Mediawiki extension
I have installed
gpgme with dependencies
run pecl install gnupg = no errors
added extension=gnupg.so to my php.ini
:
[root@dev-lamp01]# ...
0
votes
0answers
238 views
Avoiding memory full -> swap full -> crash
I'm experiencing an issue when sometimes the memory gets 100% full, and the swap file also, and the server becomes non-responsive and has to be restarted (causing also problems in database). This is ...
0
votes
0answers
41 views
PHP app is single-threaded and ignores timeouts
I have a PHP application installed (TNG) that only answers one request at a time, and if the PHP takes a long time it never times out.
How do I need to confgure Apache/PHP so that several ...
0
votes
0answers
41 views
VPS upgrading, actually using the capacity PHP
We have a PHP webserver (debian 6) running on a VPS.
The site hosted on it is rather heavy.
The VPS specs are:
1 CPU Core
1024MB RAM
100GB HDD
When loading the website the CPU would jump ...
0
votes
0answers
17 views
web app 'pending' because of another tab that is running a long script from same server
Is there any server configuration that can cause a web app to stay in 'pending' state due to a different tab that is open with and waiting for the server to respond to his request? Just simple GET ...
0
votes
0answers
104 views
500 error “Premature end of script headers: cgi_wrapper” - PHP, Joomla
I'm experiencing a 500, Internal Server error on my website. The error logs show the following error: "Premature end of script headers: cgi_wrapper", in my Joomla application.
It only occurs when one ...
0
votes
0answers
48 views
Manage a PHP background process
When you have a PHP background process running, what are recommended approaches to:
1/ Monitor that the process is alive and/or automatically launch a new one if it dies
2/ Make sure that there are ...
0
votes
0answers
106 views
Security issues with using Yii Framework
Basically, I want to ask if anyone had security issues with Yii Framework when creating large-scale e-commerce projects. My clients want this framework to be used in these projects and with my ...
0
votes
0answers
64 views
strange difference with php -m and phpinfo.php and apc
i have few servers where i found that apc is working but its not in php -m list. Instead i see php -i shows me eaccelertor. File phpinfo.php shows me that i have apc enabled and ioncube as well, but ...
0
votes
0answers
111 views
Handling file upload with nginx+php-fpm with accelerated file upload support
I have been trying to get accelerated file upload to work with nginx for a while now and I can't figure out what I'm doing wrong. (Basically in order to support huge uploads without increasing the ...
0
votes
0answers
59 views
Sleep processes in MySQL workbench
When I view server status in MySQL workbench I found out that there are a large number of proceeses with command "sleep". No active query is going on and I fear would it be the case that I ...
0
votes
0answers
64 views
iis7 + php + ffmpeg extension
i'm trying to install the ffmpeg extension on my win2008 server (running on IIS7) -
unfortunately it won't load - i'm getting this error:
PHP Warning: PHP Startup: Unable to load dynamic library ...
0
votes
0answers
92 views
Using PHP to connect to RADIUS works on one server but not another
I have a fleet of webservers that server a LAMP webapp broken into multiple customer apps by virtualhost/domain. The platform is Ubuntu 10.04 VM + PHP 5.3 + Apache 2.2.14, on top of VMware ESX (v4 I ...
0
votes
0answers
62 views
Apache2, php-fpm, APC
I was wondering if anyone has had any experience with the above setup.
I have an EC2 instance (Large) running the above setup and it appears to be working....OK.
I have been monitoring the ...
0
votes
0answers
26 views
Installing OAuth on Mac Leopard
I'm trying to install OAuth on Mac 10.5. I've tried various online tutorials to no avail. I'm not using MAMP because I feel it takes too much control away from the user.
Does anyone have experience ...
0
votes
0answers
68 views
How to get uncaught PHP errors from fcgi server
My web hosting company recently replaced suPHP with fcgi on my dedicated server because I needed opcode functionality. Since then I see loads of 500 errors in apache error and php error log is empty. ...
0
votes
0answers
72 views
File exists but is unreadable by PHP
More than once I have ran into this issue: I have a cache file that is automatically generated by PHP. It contains some generated PHP code. However for some reason the file cannot be read and parsed ...
0
votes
0answers
107 views
using PDO->fetch-method causes apache Segmentation fault
I cannot use any of the fetching-methods from PDO.
Trying this:
$DBH = new PDO('odbc:Driver=FreeTDS; Server=192.168.2.3; Port=1433; Database=DB; UID=sa; PWD=pw;');
$STH = $DBH->query("SELECT TOP ...
0
votes
0answers
12 views
Search files,images samba via web-browser
Looking for web application (php), which will allow you to view and search files from samba server resource.
Mainly depends on my search of the name and display their thumbnails.
0
votes
0answers
31 views
PHP version conflict in ubuntu
I am uploading my php web site in ubuntu. When I press php -version command I get the version 5.3 but when I use phpinfo() in my public_html folder I get version 4.4!
How can I solve the problem and ...
0
votes
0answers
45 views
Connection time out error even though php set time limit is set to 0
I get following message in my php application:
This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to ...
0
votes
0answers
54 views
APC serving old code intermittently running with Lighttpd and PHP Fast CGI
I recently started facing this problem that APC shows old code when we upload a html template file to fix/ change something on our websites. We run APC with Stat=0 and want to keep it that way because ...
0
votes
0answers
163 views
nginx strange connection reset by peer
i'm using nginx + php-cgi.
lately my server has been exhibiting weird behavior. for example, if you close the page you're on on my website.. then wait a little bit and go back to it, the first ...
0
votes
0answers
221 views
Trying to run chrooted suPHP with UserDir, getting 500 server error
I've managed to get suPHP working fine with UserDir (i.e. PHP files run from the /home/$username/public_html) directory, but I can't get it to work when I chroot it to the user's home directory.
I've ...
0
votes
0answers
93 views
Varnish cache and PHP session; setting header?
Varnish by default would not cache page with cookies. I read on some posts that one workaround for PHP pages is to set
header('Cache-Control: public, s-maxage=60');
in php pages. But would it ...
0
votes
0answers
30 views
Fopen sudden change in latency
Yesterday morning everything was fine. With any coding changes sudden the servers started experiencing massive lag. The processing wasn't up, so I restarted both servers involved.
After that ...
0
votes
0answers
47 views
Weird PHP upload behaviour
We are uploading 10 files to our PHP frontend (4MB total) and Chrome always return "Connection closed" like the server dropped the http request. Of course we tried all the browsers and both Windows ...
0
votes
0answers
69 views
Read raw POST stream in nginx
I want to capture the raw POST stream in PHP via nginx and fastCGI. In Apache with mod_php I could add a SetEnvIf rule to replace the multipart header which would allow me to open php://input and read ...
0
votes
0answers
487 views
cPanel/WHM not honoring php config for turning off magic quotes
I have set in my WHM php configuration for magic quotes to be off, however phpinfo is reporting that '--enable-magic-quotes' is set in the Configure Command section, and I'm having issues that lead ...
0
votes
0answers
167 views
mod_fcgid: can't apply process slot
I have a little trouble with my server again. My load raises up very much and my cpu is also at 99%. That all happens if i enable one vhost. I get this error messages in my apache error logs:
...
0
votes
0answers
99 views
APC 99% Misses on Filecache
I have installed APC Cache in an Ubuntu + Zend Server enviroment.
But it seems the APC does not Cache any File or does not use the cached files.
After some Requests:
File Cache:
Cached Files 419 ...
0
votes
0answers
124 views
Loading PHP Extensions using Plesk
I am trying to load the php_memcache.dll extension using the Plesk Additional Directives section under the PHP Settings for a domain, subscription or subdomain. No matter what I do, I cannot get Plesk ...
0
votes
0answers
72 views
apache process never ends- any way to put a watchdog?
On a busy server I sometime have an apache process that hangs.
I'm looking for a way to add a watchdog that say - if a process is a live for more than 5 minutes kill it.
Is there a know solution for ...
0
votes
0answers
94 views
How well does php sqlsrv caching work?
According to this page:
http://msdn.microsoft.com/en-us/library/hh487160(v=sql.105).aspx
unless I am misreading it, if you pass array("Scrollable"=>"buffered") (or do I have to use ...
0
votes
0answers
19 views
Getting SEC to only monitor latest version of a log file?
I have been tasked with running SEC to help correlate PHP logs. The basic setup is pretty straightforward, the problem I'm having is that we want to monitor a log file whose name contains the ...
0
votes
0answers
537 views
Using pg_connect() with wamp server and postgresql
Help! I am trying to connect to a Postgres database and can't get the server to connect. When I execute this php script:
$conn = pg_connect("dbname=wikimap user=postgres password=postgis ...
0
votes
0answers
274 views
Upgraded to PHP 5.4.7 via cPanel EasyApache now have SQLite extension mismatch
I have used Eayapache via cPanel WHM to rebuild Apache with PHP 5.4.7 (upgrading from 5.3.17)
All went well during the rebuild. However my error logs now show the following message :-
[Fri Sep 28 ...
0
votes
0answers
150 views
How Do I Use Multiple Versions of OpenSSL … One for Apache and one for PHP
I have an Apache 2.2 (self-compiled version) server that is getting dinged during a PCI scan because it does not support TLS 1.1 or 1.2 ciphers. After some digging I found that the installed version ...
0
votes
0answers
35 views
Default documentroot apache does not work
I have apache version 2.2 and php 5.3.15 on a single server.
I configured virtual hosting and a default vhost.
0_default_.conf -> goes to /var/www/default
sub.domain.com.conf -> goes to ...
0
votes
0answers
75 views
Change folder of PHP5-FPM status/ping output on Nginx
I'm trying to change the directory of PHP5-FPM status/ping output. I have a dir 'stats' on HOSTNAME/stats/ protected by auth_basic and I'd like to move the output there! These are my current configs ...
0
votes
0answers
14 views
Any experience with the Powertack LAMP installer?
I was searching for articles that would cover installing PHP 5.3 and MySQL on CentOS 5.8 and I came across the following website on Powerstack. Evidently its a repository for installing the lastest ...
0
votes
0answers
34 views
wamp php scan additional php.ini file
In addition to the main php.ini file. I would like to scan a php.ini file located in the root directory of a website on localhost. Is this possible?
I have just done a lot of reading about this, but ...
0
votes
0answers
65 views
Can't get PHP-Xdebuger installed
I've seen the similar post's but none seem to regard exactly my situation.
I'm running apache over Windows 7 and downloaded PHP 5.3 VC9 TS (64 bit).
Here are the lines I inserted into ...
0
votes
0answers
41 views
ldap_search hanging in poll
My ldap_search call is hanging in a poll statement. The relevant gdb backtrace of my tcp connection is as follows.
(gdb) bt
#0 0x00002ba073e16eff in poll () from /lib64/libc.so.6
#1 ...
0
votes
0answers
120 views
PHP 5.2 to 5.3 upgrade Solaris 9
I am trying to upgrade PHP 5.2.13 to 5.3.16 in Solaris 9 SPARC box. I have installed many extensions in the current version (5.2.13). The installation of PHP 5.2.13 was through binaries and not ...
0
votes
0answers
172 views
SoapClient cannot connect via SSL - Windows/Apache/PHP
Whilst trying to use a Soap Client to connect to an address over SSL, a SoapFault exception is thrown:
$client = new SoapClient(
...
0
votes
0answers
36 views
ZendServer on linux without mysql native driver
I just re-installed ZendServer CE on my Ubuntu VM and started developing, when I suddenly noticed that it does not support mysqlnd on Linux.
Why is this and is there a way to add mysqlnd support to ...
0
votes
0answers
386 views
utf8_mime2text() error when try to compile PHP 5.3.2
Trying to enable php 5.3.2 FTP support on old machine
configuration command
./configure --prefix=/usr/local/php532 --with-apc --with-ctype --with-curl --with-date --with-dom --with-filter --with-gd ...