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
21 views
Can't configure PHP error log
I'm running apache2 with php5 on Linux Mint 13 Maya. I have defined a virtual host and these two entries there:
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
...
1
vote
1answer
15 views
PHP Mail ssmtp wont work
I can send an email through the terminal command ssmtp just fine but I cant send an email through PHP with the mail() function. I have configured it to do so correctly (afaik) through php.ini.
...
0
votes
0answers
9 views
php-fpm, cannot turn of display_error
I was getting "Strict standards..." errors with php-fpm but I can't turn this off even though I set:
php_flag[display_errors] = off
My config file is /etc/php-fpm.d/www.conf and I'm sure that ...
0
votes
0answers
37 views
PHP 5.4 Apache 5.4.4 Installation error in Windows
While I am trying to install Apache with command httpd -k install I am getting an error:
C:\Program Files\Apache24\bin>httpd -k install
Installing the Apache2.4 service
The Apache2.4 service is ...
0
votes
1answer
42 views
Trying to install phpmyadmin - getting error 500
(Using PHP 5.4.15, Apache 2.2, CentOS 6.4 minimal)
I'm having trouble installing phpMyadmin, I followed the instructions here, specifically:
I uploaded the phpMyAdmin-*.tar.gz & unzipped it to ...
0
votes
0answers
11 views
Regular Error 500 with SOLR-Server
In the recent weeks the SOLR server system of our customers have the same error regularly, increasingly often. By now it's almost daily. In the client, the SOLR 3.6 throws this exception to the PHP ...
-1
votes
0answers
13 views
404 when trying to use PHPFarm with Apache2 [closed]
I followed this tutorial:
http://www.metod.si/multiple-php-versions-with-apache-2-fastcgi-phpfarm-on-ubuntu/
All is similar, then I put php file (info.php) to /var/www, but when trying to access
...
-1
votes
0answers
22 views
Security regarding Apache and PHP-FPM [duplicate]
I have a small personal mediawiki site. It is hosted in a Centos 6.3 with Apache 2.4.4 + php-fpm + php 5.4.15. I'm worried about security... (specifically about arbitrary code execution)
I would like ...
0
votes
1answer
15 views
PHP 5.4 not showing up on localhost after upgrade from php 5.3.15
I used this tutorial and this post to upgrade mountain lion from php 5.3 to 5.4.
Now after sym linking, when I do php -v, I get:
PHP 5.4.15 (cli) (built: May 29 2013 18:56:58)
Copyright (c) ...
0
votes
0answers
33 views
Ubuntu install php5-ffmpeg
When I try to install php5-ffmpeg:
apt-get install php5-ffmpeg
I get an error:
The following packages have unmet dependencies:
php5-ffmpeg : Depends: phpapi-20090626+lfs
As I understand my ...
1
vote
0answers
41 views
IIS server restart required to convert web pages to PDF using COM
Have an annoying issue with our production web servers. Windows 2008 R2 x64, fully patched, using php 5. Also installed is ABC PDF, php will call the COM object to convert a web page to PDF and ...
0
votes
1answer
39 views
Enabling PDO for CLI in vagrant box precise64 (Ubuntu server 12.04 LTS)
I have vagrant box (precise64) utilizing Ubuntu server 12.04.
I have installed manually (no use of LAMP) on the server the following:
MySql server / MySql client - Server version: ...
-1
votes
0answers
20 views
WSO2 WSF/PHP is not installing on my windows7 [closed]
I downloaded wso2 wsf/PHP framework, and followed every step in the installation guide. wsf extension is activated in my PHP extensions. But the thing is it is not working when I try to execute my ...
0
votes
1answer
86 views
safe_mode problems after upgrade from PHP 5.3 to 5.4 with Plesk 11
I just updated my server (running with Plesk 11) from PHP 5.3 to 5.4 via the dotdeb sources.
Everything was fine except a few things.
I had to disable all safe_modes in several vhosts. Plesk has the ...
0
votes
0answers
22 views
PHP5.2 and PHP5.3 Maxing CPU on IIS7.5 Server 2008 R2
I have a shared server running Server 2008 R2 with IIS7.5 - the server has about 200GB ram, Several hundred websites dual Xeon 8 core hyperthreaded processors, so CPU shouldn't be a problem; What is ...
1
vote
1answer
33 views
mod_fcgid error after upgrading from PHP5.3 to 5.4
I just made an upgrade from PHP 5.3 to 5.4 via dotdeb.org sources.
After that, I get errors on vhosts with active FastCGI-Application.
[Mon May 20 21:05:15 2013] [warn] [client xxx.xxx.xxx.xxx] ...
1
vote
1answer
82 views
Error after trying to install php5-mcrypt on Debian Squeeze
I want to install php5-mcrypt, but I get this error after entering a
apt-get install php5-mcrypt
Error:
php5-mcrypt : Hängt ab von: php5-common (= 5.3.3-7+squeeze15) aber 5.3.9-1~dotdeb.2 soll ...
-2
votes
0answers
33 views
php5-gd for PHP 5.4.9-4 oneiric [closed]
How can I install php-gd for PHP 5.4.9-4 oneiric (Ubuntu 11.10)?
The packages that I've found are for others Ubuntu versions, or for others versions of php5-common.
I tried to install using PPA ...
0
votes
2answers
107 views
Unmet dependencies when updating PHP 5.4.8 to 5.4.15 using dotdeb on debian
I'm not quite sure how to act here. I installed php5 as dotdeb package. I'm on debian squeeze 686. Now I try to update from 5.4.8 to 5.4.15 and get the following output after running aptitude install ...
-1
votes
0answers
22 views
POST data not being sent to iframe in 0,2% of cases on a apache2 / PHP setup
I have an admin page with a form that uses tinymce. The POST data is sent to an iframe that both offers a preview of the changes and saves the data. Sometimes when a users press the submit button to ...
0
votes
1answer
58 views
CentOS 5.9 Apache mod_php issues
I'm currently using NGINX with FastCGI and PHP 5.4 on the production server.
Lately we've been getting mass CPU usage spikes and I'd like to spend a few days using Apache and mod_php again to see if ...
0
votes
1answer
61 views
How to install Apache and PHP by using only packages on FreeBSD?
Is there a way to install without compiling them through the ports? I installed Apache from packages and it works, but 'pkg_add -r php53' doesn't install mod_php5.so/libphp5.so. I experiment on ...
0
votes
1answer
49 views
redis shows an error when class initiated [closed]
Its my fifth day trying to fix this on my mac mountain-lion.
I used home brew to install phpredis using this http://www.astonishdesign.com/blog/native-lamp-stack-mac-os-x. By the way home brew was ...
0
votes
0answers
15 views
Unable to successfully switch from mod_php to fastCGI and suExec?
So I followed the guidelines on THIS page but can't seem to get it to work properly. The directions assume that no prior installation of apache2 and php exist. But I have been running mod_php on ...
0
votes
1answer
35 views
PHP-FPM Loading Wrong Configuration File
Value of CLI running php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: /usr/local/lib/php.ini
Value of phpinfo from my nginx/php-fpm web server page:
...
-2
votes
1answer
55 views
Installing PHP 5.4 on Samsung Chromebook 3 which runs chroot Ubuntu Crouton [closed]
I am trying to install PHP 5.4 on a Samsung chromebook 3 running crouton.c (Crouton link: https://github.com/dnschneid/crouton)
I am following the instructions for the upgrade from ...
0
votes
0answers
21 views
Cannot run php from /usr/share after upgrade to Ubuntu 12.10
I had phppgadmin and phpmyadmin running on Ubuntu 12.04
After upgrading to 12.10 (using do-release-upgrade), when I try to go to localhost/phppgadmin I get the source code of index.php instead of the ...
1
vote
1answer
60 views
CentOS 6.4 PHP code not executing
I'm quite new to Linux so please excuse my ignorance, and accept my apology for what is likely a very lame question.
I have setup a Centos 6.4 server and also installed LAMP, phpmyadmin, mod_ssl and ...
0
votes
1answer
38 views
suphp error Directory / is not owned by admin
I'm trying to run a test phpinfo page from:
/home/admin/testdomain.com
But it displays such error:
Internal Server Error
Directory / is not owned by admin
suPHP 0.7.1
My /etc/suphp.conf is like ...
-1
votes
1answer
37 views
code generates a segmentation fault [closed]
Good day,
This comes from stackoverflow, but I think it will have a better chance of find an answer here.
So:
I am getting a segmentation fault from the PHP ternary operation. I'm using PHP ...
0
votes
2answers
39 views
IIS 7.5 with php on Windows server 2008 R2
I have installed php 5.4.9 with iis 7.5 on Windows server 2008 R2 with web platform installer.
phpinfo() is working file. But when i upload our web pages getting error.
Here I've attached error ...
1
vote
1answer
308 views
How downgrade PHP 5.5 to 5.4 or 5.3 on centos6
I have server running centos 6, i recently upgraded the php on the server to version 5.5 and noticed that some of the scripts in laravel framework i use are breaking.
i get this error
Parse error: ...
0
votes
0answers
30 views
pecl_http : Apache is unable to load http.so
I'm using MAMP 2.1.3 with Mac OS 10.8.3.
I've just installed the pecl_http extension with Mac Ports + PECL.
The http.so exists and is in (correctly set in php.ini) :
...
1
vote
1answer
41 views
Apache / PHP memory limit exhasted when rendering report with dompdf
I'm developing a web application, and using a typical lamp stack. I'm using dompdf to generate some reports to pdf. In one case, I have a simple table list (think list of clients) with some simple ...
0
votes
0answers
39 views
Upgrading RHEL 5.9, php 5.16 to 5.5
I have been tasked with upgrading the php version on a 5.9 RHEL to 5.5 for security reasons.
I Used the remi Repository and sucessfully updated php to 5.5 checked with
php -v
However on ...
0
votes
0answers
14 views
Why is apache crashing with Zend Debugger?
After installing zend debugger, downloaded from zend.com, apache2 just crashes with
apache2[7256]: segfault at 94 ip b7778ab0 sp bfa22ac0 error 4 in ld-2.15.so[b776d000+20000]
I'm running Ubuntu ...
0
votes
1answer
73 views
How do i set a open_basedir with php using fastcgi/apache2 on linux?
I tried to add this line to my virtual hosts in Apache, but failed:
php_admin_value open_basedir "/var/www/users/test"
My installation:
root# apt-get install apache2 apache2-suexec ...
0
votes
0answers
242 views
PHP 5.4.13 “procedure entry point could not be located in the dll php5ts.dll”
I did a manual install of PHP 5.4.13 on Windows Server 2008 R2 on D drive.
Today I tried to run a script directly using php.exe through the command line but got two error pop up windows:
The ...
-1
votes
1answer
39 views
Finding how the attacker creates malicious files [duplicate]
I am dealing with a troubling LAMP server which runs Apache 2.2, MySQL 5.1 and PHP 5.2.7 (runs as nobody) and most of its sites using vulnerable versions of known scripts such as Joomla, Wordpress ...
0
votes
0answers
42 views
PHP include() through HTTP makes Apache time out
I have a problem with ExpressionEngine2 after moving from an old server to WHM/cPanel running on CentOS6.4. Simple test code to reproduce that issue:
<?php
$protocol = ...
0
votes
0answers
60 views
PHP on Apache + FastCGI with multiple file extensions
Following the php documentation, I've set up PHP to work with Apache2+FastCGI with the following configuration (in httpd.conf):
LoadModule fcgid_module modules/mod_fcgid.so
FcgidInitialEnv PHPRC ...
0
votes
1answer
105 views
Can't connect to remote mssql server
I'm trying to connect to my remote mssql server for my GunZ private server, but for some reason i get the following error
Cannot connect to 94.xx.xx.xx.
ADDITIONAL INFORMATION:
A connection was ...
0
votes
1answer
37 views
How can I change path for xml2-config
I've already asked same question in stackoverflow.I need some more help.
I’m trying to upgrade libxml2 from 2.6.26 to 2.7.7 on CentOS5.5
I installed libxml2-2.7.7 in /opt/libxml2-2.7.7/bin/
I'd ...
0
votes
2answers
78 views
Cannot install php-intl on CentOS
When I run:
yum install php-intl
I get this error:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.as29550.net
* epel: ftp.nluug.nl
* extras: ...
0
votes
1answer
59 views
CentOS 6 recompile PHP and Freetds
I got something wrong with the default freetds (v 0.9.2) in my CentOS 6, reading the datetime from sql server is messed up in using mssql (dblib) extension, and it's said recompile php with current ...
1
vote
1answer
127 views
yum update php libjpeg dependency
I'm having a problem doing a yum update with php and it's having a dependency problem with libjpeg.so
here is the yum update output:
yum update
Resolving Dependencies
--> Running transaction ...
0
votes
2answers
232 views
How do I disable functions on servers for particular directories?
I want to disable some functions on server to improve security of server. I followed these steps:
STEP: 1
Open php.ini file:
vi /etc/php.ini
STEP: 2
Find disable_functions and set new list as ...
0
votes
2answers
65 views
What might be causing this intermittent PHP stalling event?
I wish I could be more specific about this issue and I am really asking for suggestions on where to look next.
We are running a PHP web app that is integrated with WordPress and that is serving a ...
1
vote
1answer
185 views
How to enable streaming when file is delivered through PHP script?
I'm trying to enable mp4 streaming on my content server. Due to some security fanatics whom I working with all files are delivered through a php script and have the following url format:
...
0
votes
0answers
60 views
Phpmyadmin not working after Virtualmin security update
I updated Virtualmin a few days ago, but have a problem now with PhpMyAdmin.
After the update (which could have been from a while ago as I didn't run an update for a while) there were security ...


