All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
6k views

Why returns apache a http 500 but does not log any errors?

On a 12 year old (web) server is still 1 old (custom) PHP application hosted. We want to shutdown this server and remove it from the rack. Unfortunately we still need the application, is not actively ...
CodeNinja's user avatar
  • 315
0 votes
1 answer
154 views

nginx + php 5.6 serving empty pages, can't find error log

I have accidentally hosed a VPS which was hosting a website using nginx and PHP 5.6, and I'm attempting to recreate things on a new server running Ubuntu 18.04 (previous one was 12.04 - upgrade failed ...
John Moore's user avatar
1 vote
0 answers
45 views

install php5 but keep php7

I have upgraded, built a new one, my server (Ubuntu 18.04.6) which is running PHP Version 7.2. I would like to install PHP5 and keep PHP7 and have the option to switch back and forth. Have a site that ...
tpage's user avatar
  • 11
-1 votes
2 answers
1k views

crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash function [closed]

I'm getting the following password error. I have PHP 7.2 variant(to php version 5.5 does not appear to me this problem ), the following code : function make_key($length) { $valid_chars = '...
Andrei Constantin's user avatar
2 votes
1 answer
303 views

How to compile PHP 5.3 and PHP 5.4 release x64 with Visual Studio 2008 SP1? [closed]

I have successfully compiled Apache x64 then I use PHP 5.3.29 and 5.4.45 release x86 on it and get error that DLL files are not a valid Win32 application. I installed Visual Studio 2008 SP1, Visual C++...
Tần Quảng's user avatar
0 votes
0 answers
1k views

PHP FPM Very slow after some 20-30 minutes works after reload/restart (on high traffic website)

PHP is running very slow like loads forever. Below is the www.conf file values ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes ...
AngularDev's user avatar
0 votes
0 answers
3k views

SQLSRV PDO driver on PHP 5.6 with Docker

I am trying to move a legacy application (CakePHP 2.5.5) running on PHP 5.6 to a Docker container but I can't get the PDO driver for Microsoft SQL Server to work. I have been searching around for ...
Morten Twellmann's user avatar
1 vote
3 answers
2k views

PHP is stopping a web-based script after 60 seconds

I'm working in a Bitnami installation of Apache2 and PHP (5.6) and we have trouble with a script that's taking longer than 60 seconds to complete. This script in question is failing after 60 seconds, ...
Gabriel I.'s user avatar
0 votes
1 answer
4k views

Unable to enable mpm-event in httpd | centos 7

I am kind of new to mpm and all so please don't mind. I have a web server running 8 websites (php based) on it. And my RAM usage goes over 90 % and the swap usage goes over 80 %. And when i check ...
user avatar
0 votes
1 answer
964 views

Laravel Forge: Unable to create AWS EC2 instance in London Region

When I try to create a server on Laravel Forge for AWS in the London region I get the following error message: Whoops! There were some problems with your input. The server provider was unable ...
Zander Rootman's user avatar
0 votes
1 answer
2k views

Ubuntu 16.04 - Purge php completely but still shows PHP 5.4.15 (cli)

I want to purge PHP completely from my Ubuntu 16.04. I have did all the stuff to remove PHP which as below, sudo apt-get purge "php*" sudo apt-get purge "^php.*" sudo apt-get purge "^php*" sudo apt-...
Emipro Technologies Pvt. Ltd.'s user avatar
-1 votes
1 answer
360 views

Will apt-get upgrade modify symlinks? For example libphp7 symlinked instead of libphp5 under /etc/alternatives

I performed sudo apt-get upgrade. $ sudo apt-get upgrade After the upgrade, I noticed some php 5.7 files and folders in the etc directory For example: I saw /usr/bin/php7.1 and /etc/php/7.0, 7.1, 7....
Harish Chennamsetty's user avatar
0 votes
3 answers
901 views

RHEL 7.4 PHP Multi-versions

I have an RHEL 7.4 Server that currently hosting few web apps, one of these apps requires PHP Version <= v5.6 I'm going to add a new app that requires PHP version>=v7 Can I combine both these ...
megz's user avatar
  • 13
0 votes
1 answer
1k views

Apache X-Forward-For on https

I have a load balancing IP in front of 2 apache servers On the backend servers I'm using Apache 2.4 with mod_remoteip enabled to retrieve the real client IP which is working so long as the request is ...
asdasdasdasd's user avatar
0 votes
1 answer
2k views

Suppressing PHP errors with Nginx and php-fpm

Try as I may, I can't suppress error messages from PHP (using php-fpm) being displayed. Relevant files; /etc/php5/fpm/php.ini:display_errors = Off /etc/php5/fpm/pool.d/www.conf:php_flag[...
Ross's user avatar
  • 1
2 votes
1 answer
1k views

Install PHP-Mysql without mariadb-libs

I'm trying to install PHP on my server, running Centos 7.3; I've installed php 5.4, and have MySQL Server 5.6.28 running there too. When I'm trying to install php-mysql, it's trying to install ...
Mauricio Cacho's user avatar
0 votes
1 answer
1k views

HTTP Post randomly cut (begins with PhpMyAdmin mysterious error)

This is the strangest error I have ever seen. I have a problem with PhpMyAdmin. When I tried to export the database, I got an HTML file with an error message instead an SQL file. The message is: SET ...
Theos's user avatar
  • 51
0 votes
1 answer
101 views

RHSCL - php55-tidy extension not available via RHSCL

Alright, so my high level question essentially is that the php55 tidy extension is not available via RHSCL? I've already setup a new instance of httpd24 & php55 everything on this server is ...
Mr.J's user avatar
  • 123
0 votes
0 answers
1k views

looking to upgrade php 5.4 to php 5.5 or greater on centos7

New to this, so please bear with me. Reviewed the php stats of the server, with yum list installed : php.x86_64 5.4.16-42.el7 @base php-cli.x86_64 ...
mcv's user avatar
  • 945
-2 votes
1 answer
115 views

Why PHP is not installing in my Ubuntu server and how can I install it now?

Everytime when I try to install php using this command, it shows me "E: Package 'php5-mcrypt' has no installation candidate". Here is the command below what I used for installing php- sudo apt-get ...
Bangladesh 71's user avatar
0 votes
1 answer
4k views

How to change php version used by apache on debian

My server is running debian 7 and I have php 5.4.45 installed via apt-get. I need php 5.6 for some other service to run properly, but unfortunately I couldn't find any way to install it via apt-get. I'...
fulaphex's user avatar
  • 101
0 votes
1 answer
2k views

"Class 'XMLWriter' not found" Error in php | php55w-xml-5.5.24-1.w6.x86_64.rpm is missing

I am getting this error in PHP in server Fatal Error (E_ERROR): Class 'XMLWriter' not found . we are using Cent OS 6 After exploring some sites, we found that we need to install php55w-xml-5.5.24-1....
Hitesh's user avatar
  • 111
1 vote
2 answers
165 views

hhvm binding on port 80 preventing nginx from binding on that port

I am running hhvm on ubuntu14 with the following server.ini config: server.ini ; php options pid = /var/run/hhvm/pid ; hhvm specific ;hhvm.server.port = 9000 hhvm.server.file.socket=/var/run/...
ali haider's user avatar
  • 1,150
3 votes
0 answers
263 views

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 ...
user2977468's user avatar
1 vote
2 answers
13k views

PHP parse error syntax error, unexpected end of file

I keep getting this error when i was on a LEMP setup nginx 1.10/PHP 7 and i thought it was because of PHP 7 and now i setup a new server with nginx 1.4.6/PHP 5.5.9 2016/06/19 15:45:18 [error] 4094#0: ...
uberrebu's user avatar
  • 503
0 votes
1 answer
72 views

A Website in my Centos 6 server is picking incorrect PHP version

I have a CentOS 6 server that has PHP 5.6.20 installed: # php -v PHP 5.6.20 (cli) (built: Apr 2 2016 08:28:23) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend ...
jstuardo's user avatar
  • 155
1 vote
0 answers
740 views

PHP unable to load dynamic library's library

I have been trying to get imagick to work on a normal lamp server. What I did: sudo apt-get --purge remove "imagemagick" sudo apt-get --purge remove "php5-imagick*" service apache2 restart (lib not ...
user2693017's user avatar
1 vote
0 answers
207 views

Getting 404 Not Found while PHP works in background - Nginx

I have noticed that I get 404 - Not Found when calling a .php file even if the script works in background. The php file downloads a long Json and populates a db until I close the window. I am using ...
UserK's user avatar
  • 111
0 votes
1 answer
130 views

Php can't find hash function

I'm using apache with php on amazon linux. I've updated php from 5.3 to 5.5 and apache from 2.2 to 2.4. Now calling echo hash('sha256','wtf'); is behaving in a strange way. It works for a while and ...
clorz's user avatar
  • 269
0 votes
0 answers
348 views

Apache + PHP Memory Limit Upload Issue

My environment is Fedora 20, Apache 2.4.10, and php 5.5.26 and I am having an issue with uploading a file that is greater than 2 GB's. If I upload a file greater than 2 gb's I'm noticing that while ...
Chance's user avatar
  • 118
2 votes
1 answer
2k views

Inconsistent download size with PHP + NGINX configuration

I'm building a Joomla website using docman for document management/downloading. The site is built on a Ubuntu 14.04 server running Nginx 1.4.2 and PHP5 (FPM). The issue i'm having is that files are ...
Jonathan Coe's user avatar
2 votes
1 answer
86 views

Why is my connection to php-fpm.sock being refused?

I've seen a bunch of questions about this problem on here but none of those had answers that helped me out. I kept getting a 502 error from nginx so I took a look at the access.log and saw I kept ...
benbot's user avatar
  • 121
0 votes
1 answer
1k views

Getting soap to run on a Vagrant CentOs machine

I have a vagrant machine on my local computer and I am testing an API that requires Soap. For the life of me I cant get soap to install on the machine. Checking phpinfo, I note: SOAP Brad ...
HappyCoder's user avatar
1 vote
0 answers
655 views

Installing an intermediate cert on Debian 8 for curl/openssl connections.

I am trying to contact a url via php's stream_socket_client() command which is failing with no error code or msg. Does this use openssl, curl or something else? The site uses https and works fine from ...
AdamG's user avatar
  • 181
1 vote
3 answers
5k views

How to disable some extensions in php 5.6?

I have installed php 5.6 in centos 6.7 server using yum --enablerepo=remi,remi-php56 install -y php-mysqlnd php-gd php-mbstring php-mcrypt php-xml php-fpm I have the following php extensions ...
Arnold's user avatar
  • 129
0 votes
1 answer
1k views

Apache and php5 fail on ubuntu server

I update a PHP 5.5.28-1+deb.sury.org~precise+1 (cli) and have apache Apache/2.2.22 but when run a restart apache2 apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Syntax error on ...
Users for programing's user avatar
3 votes
1 answer
785 views

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 include: FOO_DATABASE_URL=mysql://user:pass@host:...
rink.attendant.6's user avatar
0 votes
1 answer
334 views

Installing php 5.5+ on Centos 6 alongside 5.3

How can I install PHP 5.5+ alongside php 5.3 (or 5.4 with the EPEL repository) on a Centos 6 server? I don't want to remove or supersede the default version, but I would like to have both versions ...
jeremiahs's user avatar
  • 101
1 vote
1 answer
1k views

APC - tuning apc.mmap_file_mask

When configuring APC as an opcode cache for PHP, there's a configuration setting called apc.mmap_file_mask. From what I've read there are three ways you can configure it but I don't really understand ...
sa289's user avatar
  • 1,318
1 vote
1 answer
1k views

Install memcached PHP extension on openSUSE 13.2

Is there a standard/supported way to get the memcached extension for PHP installed on openSUSE 13.2? On CentOS this was a case of yum -y install php-pecl-memcached. But it doesn't look like the ...
leonstr's user avatar
  • 63
0 votes
0 answers
481 views

Php5-CGI is using 100% CPU on a single hit. How do I track down the culprit?

I ran into a strange problem with a Magento Store. The server was crashing when we hat a little traffic-peak so I checked what was going on. Using htop I found out that PHP5 CGI is using up to 100% ...
Øle Bjarnstroem's user avatar
0 votes
0 answers
1k views

Bus error during PHP5 is running a simple script - what?

When working with PHP scripts, I usually do not have to bother with the underlying system. Today, I have to. A PHP script (cronjob) that has worked fine is crashing since 2 days ago. The cronjob mail ...
BurninLeo's user avatar
  • 900
-2 votes
3 answers
727 views

Upgrade php version on centos 6.5

On the current stack i hv centos 6.5 (64 bit) , PHP 5.3 available. I'm a linux new bee & need to perform php upgrade to PHP 5.5. Tried following but that returned error: wget http://dl....
echoashu's user avatar
  • 115
-1 votes
1 answer
758 views

Accidently removed all PHP dynamic libraries [closed]

I was trying to remove a startup module folder(ioncube) and accidently removed the PHP startup modules/extensions folder (debian) Now I'm getting this PHP Warning: PHP Startup: Unable to load ...
Osa's user avatar
  • 131
5 votes
3 answers
25k views

How to Upgrade to PHP 5.5 on Windows Server 2008

What is the proper way to upgrade from PHP Version 5.4.32 to PHP Version 5.5.22 on Windows? All that I can find is how to to install. PHP is already running on Windows Server 2008 R2 64 bit alongside ...
crjunk's user avatar
  • 101
-5 votes
1 answer
357 views

Deleted php5 www.conf help please [closed]

I accidentally deleted the php5 www.conf file located at: /etc/php5/fpm/pool.d/www.conf is there any way to get a copy of the original file back? I believe there is an answer to my question ...
Adrian's user avatar
  • 67
-1 votes
1 answer
1k views

php-fpm using 100% CPU and nginx gives 404

I am playing around with Magento CE on Nginx and its working fine. Problem starts when I do a 500 user load test. The php-fpm process hogs up all the CPUs to 100% and I start getting 404 as the ...
Салман's user avatar
-2 votes
2 answers
2k views

How do i install another version of PhP?

I would like to have installed WHMCS on my dedicated server. (I already have installed apache2) How do I install PhP 5.4 as WHMCS not support PhP 5.5? WHMCS System requirements: http://docs.whmcs.com/...
Andreas1803's user avatar
-5 votes
1 answer
3k views

php5.6.2 installation with httpd24 ( apache version 2.4.10 ) on centos/rhel [closed]

using this repo : http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm for php installation , and for apache i am using amazon linux repo current ...
Ashish Singh's user avatar
0 votes
1 answer
243 views

Nginx virtual host servername, root

I installed nginx-1.6.2,2 on FreeBSD-9.2-RELEASE-p5 and here is my configuration: # tail -2 nginx.conf include _includes/*.conf; } # cat _includes/XXX.conf server { server_name XXX; root ...
alexus's user avatar
  • 13.2k

1
2 3 4 5 6