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.

865 questions
3
votes
1 answer

Get apache2 load new PHP5

This server is running ubuntu 9.04, apache 2 and running running PHP 5.2.6-3ubuntu4.4 from the repository. I installed another a new version of PHP (5.3.1, compiled from source), I then replaced the link of this version with /usr/bin/php5. Now cli…
user28770
3
votes
1 answer

Getting HTTP/2 Working on Apache 2.4.29 on Debian 8

I am trying to update my apache2 (Apache/2.4.29 (Debian 8)) server to support http2 but after enabling http2 with following code, it does not work because of mpm_prefork does not support http2 ProtocolsHonorOrder On …
Rinav
  • 131
  • 1
  • 5
3
votes
3 answers

enabling mysqli extension on centos server

I want to enable mysqli extension on Centos server where PHP 5 is installed. After searching online, I saw many people talking about uncommenting mysqli related line in the php.ini and I couldn't find anything related to mysqli in my php.ini…
Tan
  • 139
  • 1
  • 3
  • 8
3
votes
1 answer

Certain sensitive PHP files overwritten with garbage. Hard-drive fault? How could this happen? Should I be worried?

I was trying to upgrade a Prestashop store in a local copy in my machine. Running XAMPP under Windows 7. I put that on hold for a while while I browsed some websites with Firefox. When I came back and reloaded Prestashop, I got a very strange…
loko
  • 31
  • 1
3
votes
0 answers

How to harden nginx vhosts (hosting WordPress) from other users in hacked WP installs

Overview: I have a dozen or so WP installs hosted on an Ubuntu 14.04 LTS, w/ PHP 5.5.9 & Nginx 1.4.6. MySQL runs on alternate node, not on public network. Goal: To have directories & files of each WP install NOT be world-readable. If a malicious…
3
votes
3 answers

Why is this mod_rewrite RewriteRule directive not working in the .htaccess file?

I've got a site that was hosted on a linux el cheapo hosting service that I'm migrating to my Mac OS X 10.5 Leopard Server server running Apache 2.2.8 & PHP 5.2.5 w/rewrite_module enabled and AllowOverride All, but I'm running into an issue with the…
morgant
  • 1,470
  • 6
  • 23
  • 33
3
votes
1 answer

Environment variables for PHP applications

A PHP application requires me to set several environment variables with things like database credentials, SMTP server, etc. Examples of variables…
3
votes
3 answers

206 Partial Content returned with Content-Length: 0

I'm serving large audio files on an Apache server using mod_xsendfile (version >= 0.10). The files are served fine when I use header( 'HTTP/1.1 200 OK' ); However, those files are served in full. Because I want to allow visitors to seek in the audio…
Marc Dingena
  • 31
  • 1
  • 8
3
votes
1 answer

How can I specify which php.ini file to use in my nginx conf file?

I'm running 2 PHP sites on the same server. I would like to use 2 different php.ini files for them. I've googled this issue with no luck. Here is what my php location looks like: location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; …
Aust
  • 161
  • 1
  • 8
3
votes
2 answers

Upgrading to PHP 5.6 using Yum (REMI repo)

I would like to ask how to upgrade to PHP 5.6 on my CentOS machine using Yum + REMI repo. For example, I already use the REMI repo for everything. Now, after I change this line in /etc/yum.repos.d/remi.repo: [remi-php56] enabled=0 to enabled=1 I…
fizzy drink
  • 385
  • 4
  • 8
  • 22
3
votes
3 answers

Howto make MCrypt and PHP work together on CentOS

I've installed mcrypt on CentOS ( via yum ), but when I try to do a dl() call in A), I get the message in B). A) dl( mcrypt.so ) or die('The Mcrypt module could not be loaded ['. $prefix . 'mcrypt.' . PHP_SHLIB_SUFFIX .']'); B) The Mcrypt…
Tim
3
votes
2 answers

Getting "The page you are looking for is temporarily unavailable. Please try again later"

I have a vps running Ubuntu+LEMP+Varnish. Everything was fine untill I updated the server software. Now I am getting "The page you are looking for is temporarily unavailable. Please try again later" on every pages. (Header response is 502) I tried…
Anand Kumar
  • 145
  • 1
  • 1
  • 7
3
votes
1 answer

Downgrading PHP 5.4 to 5.3 on CentOS 6.5?

I am trying to downgrade PHP from 5.5.8 to 5.3.x. I have tried this but it dint work for me. yum downgrade php The error I have got is Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Downgrade Process Loading mirror speeds…
Ramesh Somalagari
  • 133
  • 1
  • 1
  • 4
3
votes
1 answer

PECL APC install --- ERROR: 'make' failed

I get the following error when running sudo pecl install apc. /var/tmp/APC/apc_cache.c: In function '_apc_cache_user_update': /var/tmp/APC/apc_cache.c:818: error: 'IS_CONSTANT_INDEX' undeclared (first use in this…
pufAmuf
  • 105
  • 1
  • 3
  • 14
3
votes
2 answers

How to have multiple PHP on Webmin/Virtualmin

I've scoured the internet for 4 hours now trying to find how to get newer PHP Versions on Webmin. No luck! Ideally, how do you get PHP 5.5 on Webmin/Virtualmin? If this is not available yet the latest possible version This is for ubuntu server.…
Anon343224user
  • 131
  • 1
  • 1
  • 4