Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php5]

The tag has no usage guidance.

0
votes
1answer
62 views

Parse POST parameter to PHP file using CLI

The content of my file: $ cat z-cmd.php <?php system($_POST['z']); ?> What I tried: $ QUERY_STRING='z=touch plm' php-cgi z-cmd.php X-Powered-By: PHP/5.6.36 Content-type: text/html; charset=...
0
votes
0answers
68 views

php 5 fpm not logging logs in file fpm-php.www.log

I have fpm-php.www.log file inside /var/log. But its not logging errors. I have set 777 permissions to fpm-php.www.log file and also ownership permissions are www-data www-data. My www.conf file ...
0
votes
0answers
11 views

Why I can't upload files in any other directory than directory named uploads?

I am using redhat 7 and php 5.6.25. I have a php file upload script which does upload a file but only to the directory named uploads. If I want to upload the file to any other directory it returns ...
1
vote
1answer
271 views

Windows 10 update, Imagick php not working anymore

Since the last update of Windows 10 (KB4016240), my xampp server does not launch any more imagick, it was working fine before this update. Now when I start Apache from Xampp I get the error message: ...
2
votes
1answer
479 views

Steps to install php mysql on centos 6.8

I have a server with centos 6.8 I am trying to install php 5.5. mysql 5.5 php-mbstring But it shows error message as: Error: php55w-common conflicts with php-common-5.3.3-48.el6_8.x86_64 Please ...
1
vote
0answers
347 views

How to fix AddType or AddHandler problems

I recently moved from an old Godaddy hosting account to a new Godaddy Cpanel hosting account. The menus on the website are generated by using php include statements which worked on the old hosting ...
0
votes
0answers
94 views

compile php5 on MacOS ElCapitan error

I'm trying to compile php 5.6.25 on MacOS Server 5 (aka ElCapitan) with these options: sudo ./configure \ --prefix=/usr/local/php5 \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --...
0
votes
1answer
324 views

PHP fast-cgi redirect loop apache2

Before anyone points out "why use X version of PHP" here is a short rundown; TL:DR it's temporary, I have to. The company I'm doing this "migration" for needs 5.3 with two sites that are running on ...
0
votes
0answers
774 views

Catchable fatal error: Object of class mysqli could not be converted to string

I have a issue with my PHP code. I'm trying to create a login system however when I execute the login i get this error Catchable fatal error: Object of class mysqli could not be converted to string ...
0
votes
1answer
84 views

debian error installing package php5-tidy

have an issue with php5-tidy. Looks something broke and I am not able to figure out. Have tried all options of --purge and so on to clean and re-install but to no avail. Following is the error I am ...
0
votes
1answer
3k views

PHP 5.6 OCI8 Install Issue:

I am trying to install the OCI8 extension on Red Hat 7 (PHP 5.6.x.) I have spent at least two days trying to figure this out including combing SuperUser and StackOverflow. So far none of the answers ...
3
votes
2answers
2k views

php 5.6.20 - /etc/php5/conf.d directory missing

I can't find /etc/php5/conf.d directory in my system. Do they change catalog structure ? I already read /usr/share/doc/php5-common/README.Debian.gz There is information about linking /etc/php5/$SAPI/...
1
vote
1answer
228 views

Debian: php and php5

I'm running a small private Debian Jessie server, acting as a private cloud / hosting platform. Often times, I've faced 'difficulties' installing services with recent PHP requirements because, while ...
0
votes
0answers
45 views

How to set Apache 2 to use the correct PHP version

I have Apache 2 installed in CentOS 6.7 and multiple PHP versions (it came with version 5.5). I have installed PHP 5.5 using YUM, but even when I see the PHP version is correctly installed by ...
0
votes
1answer
544 views

How do I Enable JSON support on nginx

On a raspberry pi I am trying to install ldap-account-manager, which is a php application. I can successfully browse a simple php script but when browsing to LAM I receive an error indicating Your ...
1
vote
1answer
164 views

validate a mysql regular expression

I have a php5 app which performs mysql searches, and I give the user the possibility to enter a regular expression to use with RLIKE. I want to be sure that the regular expression is valid, in order ...
1
vote
1answer
2k views

How can I install PHP 5.4 in Debian 7.5 (Wheezy)?

I wonder if you have any way to install PHP 5.4 on Debian 7.5 via apt-get, adding some URL in sources.list. I added the following lines however it asks a lot of dependencies: deb http://packages....
0
votes
1answer
487 views

PHP 744 | Create or write permission by script security issue? [closed]

Given security permission of 744 in linux for PHP. To enable create and write files by PHP script. Also given create/write permission to folder where files going to be create/write. Does this ...
5
votes
1answer
20k views

PHP 5.3.10 on Debian Jessie

By default in Debian Jessie, I get PHP 5.6 installed by using apt-get install php5 . The problem is that the project that I'm working on has severely deprecated functions to the point that the ...
1
vote
1answer
843 views

Impact of adding a 32-Bit ODBC driver to a 64-Bit Win Server 2008 R2

Would there be no problem if i ADD another ODBC driver to a server (a 32bit version to cater my 32bit PHP application) with an existing ODBC 64bit version? Would it not create confilict to other ...
0
votes
0answers
71 views

exception to domain forwarding

I have forwarded a domain from a hosting site to our own http server. I would now like to host some pages directly on host server to take advantage of some of the services they have; for example - a ...
0
votes
1answer
855 views

PHPFarm with jpeg integration

So I'm attempting to get phpfarm up and running, but for some reason can't get jpeg support from gd to work... Here are my config options configoptions="\ --enable-bcmath \ --enable-calendar \ --...
0
votes
1answer
709 views

Unable to start VM from php

From a php page I am trying to start Virtual Machine using virsh tool on KVM hypervisor but I am getting this error. error: Failed to connect socket to '@/var/www/.libvirt/libvirt-sock': Connection ...
0
votes
1answer
1k views

How To Upgrade Pear To Send Email With Smtp send() Function In PHP

I want to send e-mail on ubuntu 14.04 with smtp php. But I can't send e-mail because smtp-->send function doesn't work. So that I decided to install pear mail packages. But when ı want to install php ...
0
votes
3answers
156 views

Building PHP For MacOS

I was using XAMPP and decided to uninstall it and use MacOS' in-built apache and php modules. But while uninstalling XAMPP I deleted /usr/bin/php files and other PHP-CLI files accidentally. And I ...
2
votes
2answers
8k views

How to install latest stable release of PHP on Ubuntu 14.04

I've installed PHP on Ubuntu14.04 as shown in this link. I currently have PHP 5.5.9 installed, but the current stable release is 5.5.12, is there any way to install current stable release on Ubuntu 14....
1
vote
0answers
31 views

Implications of Increasing Max File Size In php.ini

For example, is there a risk for data corruption that increases as you allow larger file sizes to be uploaded to the server?
0
votes
1answer
3k views

Upgrade to PHP 5.3.23 on Ubuntu 12.04

I want to use Zend Framework 2. I have installed the ZendSkeleton Application. When I try to install Framework, I get the following error: #> php composer.phar install Warning: This development build ...
0
votes
2answers
77 views

Linux server update

I know that for security reasons the server services have to be up to date, and since my server was attacked by a virus I think this a good time to upgrade the system. Linux sytem: Distributor ID: ...
1
vote
0answers
1k views

php PDO sqlsrv “could not find driver”

My configuration: - Windows Server 2012 - SQL Server 2012 - Apache 2.4.9 - PHP 5.5.10 My php.ini includes the line - extension=php_pdo_sqlsrv_55_ts.dll My "ext" folder includes the file - ...
0
votes
1answer
1k views

How do I fix the default version of PHP after uninstalling PHP OSX?

I installed PHP OSX because I wanted to test some PHP 5.5 code on the command-line/interactive shell. On my local web server, I started receiving errors in functional code from before I installed PHP ...
0
votes
1answer
2k views

Mamp server is compiling very slow

I'm running PHP 5.5.3 on a MAMP server, and the "compiling" of my php-file takes quite a lot of time. I've heard that I should disable the caching in the php.ini file, but I can't seem to find ...
0
votes
1answer
335 views

Updating php 5.3.x to 5.4.x

Currently I'm on PHP 5.3.6 and would like to upgrade to 5.4.x or 5.5.x Trough this website: http://php-osx.liip.ch/ I've installed PHP 5.5 and when I log in my terminal (php -v) I get this: PHP 5....
1
vote
1answer
5k views

php5 ini file is blank

I have been building a Debian machine for test (Wheezy, x64) and have installed php5 and apache and successfully run phpinfo() to the browser, and php -v to the command line. From the details in ...
0
votes
1answer
75 views

Configure a Win server 2003 to php

We have a Win server 2003 SP2 that we do not use now but it would be great to turn this into a php server. What we would like is to use the latest php version 5.5.* and all the mod cons, but before i ...
1
vote
0answers
2k views

Installing php 5.5.4 on Debian 6.0.1 - “Undefined reference to gzopen64@ZLIB_1.2.3.3”

I'm trying to install/upgrade the version of PHP we're using on our internal server at work. Doing it from the tarball from php.net and when it comes time to run ./configure I get this error: ...
0
votes
2answers
1k views

How to choose php version in .htaccess

I would like to install my PHP web application on a service that has two PHP versions, 4 and 5. I need PHP5, and I don't have access to httpd.conf due to server restrictions. How can I tell the Apache ...
0
votes
1answer
2k views

Installing PHP accelerator on a WampServer running on Windows 7 x64

I have installed Symfony 2.3 on a WampServer but when I check for configuration warnings I have the following message Install and enable a PHP accelerator like APC I have tried many apc's version ...
0
votes
2answers
3k views

apt-get and php5 on Ubuntu - Impossible to install cause of dependencies

I am trying to run sudo apt-get install php5 And getting this error Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. ...
9
votes
2answers
66k views

Upgrading PHP 5.3.3 to 5.4.4 in CentOS 6.4

I'm using CentOS 6.4 (centos-release-6-4.el6.centos.10.x86_64). I'm trying to upgrade the php version from 5.3.3 to 5.4.4 by using: yum upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell ...
0
votes
2answers
681 views

php54 not recognizing php code in file with html extension

For example, echo phpinfo() returns nothing in my .html file but index.php returns with the info wich setting needs to be adjusted? thanks
0
votes
1answer
270 views

make error in PHP_PERL

I am following the answer in this thread to make the perl module for php. am using ubuntu 12.10. unable to use PHP_PERL extension. Unable to install the extension as well The short steps are: ...
2
votes
3answers
4k views

Can't link Xdebug to PHP 5.4

Today I installed/updated my previous php 5.3.x to 5.4.11. Did it accordingly how do I upgrade from php 5.3 to php 5.4.6 in ubuntu? Install was successful, but it seemed to me, that xdebug was ...
2
votes
1answer
642 views

Going crazy with php5apache2_4.dll not found

I have a computer with Win XP SP3 and I was going to install a WAMP system on it. I already had a pwerfectly working WAMP (Uniform Server, it is a portable wamp that works on usb stick) on another ...
2
votes
0answers
70 views

Apache2 and PHP5 repository down?

I've recently been trying to get PHP and Apache on my Raspberry Pi as to make it a web server but when I try to apt-get them from their respective repositories, it gives me a bunch of '404 not found'. ...
2
votes
0answers
451 views

how do I enable debug logging in php5-ldap

I have phabricator running on Ubuntu behind nginx and php5-fpm, and now trying to figure out why ldap logins fail. Is there a way to enable verbose logging of the php-ldap code? What file is the log ...
0
votes
1answer
42 views

What's preventing my php on Leopard (10.5) from running?

I have an old mini running a vanilla Leopard install that I use to host low-volume sites as I learn web dev. I have successfully set up virtual hosts and they are running static placeholder sites. In ...
5
votes
1answer
930 views

Making Apache use compiled PHP instead of bundled package on Debian

My ultimate goal is to install OwnCloud on my Debian box, a 64-bit squeeze. My setup is pretty simple. I have installed OpenPanel which in turn installs all of the required LAMP modules via APT-GET. ...
0
votes
1answer
731 views

Enable XSLT with Webmin on Ubuntu server

I am trying to install/enable XSLT for PHP on my webserver. I'm quite sure that it was running before I made an update, but now it does not work anymore. I have an Ubuntu webserver with Webmin ...
0
votes
1answer
2k views

Hiding .php extensions?

I'm having trouble hiding .php extensions on my site. for example: I want http://mysite.net/view_category.php?id=4 to show as http://mysite.net/view_category?id=4 I'm sure it's to do with the ....