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.

learn more… | top users | synonyms

-1
votes
0answers
17 views

http conf setting to redirect pages

I have an old url ext.examplecom/xyz-abc/ which i want to redirect it to permanent address ext.examplecom/xyz-abc/newlink/ when i type url ext.examplecom/xyz-abc/ it gives me error The requested page ...
1
vote
0answers
18 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 ...
0
votes
0answers
38 views

PHP Glob does not show symlinks on external drives

I have run into a problem using glob function. I use it to scan the entire directory contents and everything is shown except for the symlinks that are mapped from an external hdd or the other ...
0
votes
1answer
14 views

php:5-apache docker image no /etc/php/apache2/php.ini

I just pulled docker image php:5-apache and it runs well and all but there is no /etc/php5/apache2/php.ini file so I can't add extension=mongodb.so even if it is installed with PECL.
0
votes
2answers
20 views

Create and save mail to inbox locally with Postfix

Apparently it's as simple as just sending an e-mail to a local account, and configuring Postfix to receive mail for the local account. Not too shabby! Original Question This hypothetic server would ...
1
vote
2answers
30 views

Apache webserver HTTPS port redirects to HTTP with port 443

At my work I installed Mediawiki (latest version) on a Apache webserver 2.4.6 with PHP 5. Everthing works fine when I want to access the wiki pages locally and I configure a hostname in Mediawiki ...
0
votes
1answer
16 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 ...
0
votes
0answers
25 views

laravel site using hhvm broke rewriting url

I tried to find a solution everywhere, even if the answers look close to my issue I was not able to have the correct solution. I built a website with laravel. My config is the following : laravel ...
0
votes
0answers
35 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 ...
0
votes
0answers
16 views

PHP session inconsistent persistence on server

I don't like the term "random" for bugs, but this is how it is presenting itself: for some users, irrespective of browser, location or other considerations are having sessions be set and persist over ...
2
votes
2answers
107 views

CentOS 7.2, PHP 5.4 - MySQL extension is missing [closed]

I'm trying to install a Wordpress blog on my Linux server (CentOS 7.2), using PHP 5.4 and MariaDB, but I keep running into this error: Your PHP installation appears to be missing the MySQL extension ...
2
votes
1answer
41 views

Issue installing Ioncube with PHP 5.6.11 with Apache 2.4.16 on centOS 6.7

This is how I am compiling PHP 5.6.11 with apache2 2.4.16 on cenOS 6.7: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/lib --with-mysql --with-curl ...
0
votes
1answer
40 views

Are the php-zts extensions needed when the mpm is event?

my php is correctly installed and working, but at Apache startup I have all the current loaded extensions with warning messages like... [23-Dec-2015 21:47:45 UTC] PHP Warning: PHP Startup: bz2: ...
-1
votes
1answer
29 views

FreeBSD -no internet access -no packages

I just used this command: make -DBATCH install clean and realized that I don't have access to internet from FreeBSD. If I type the address manually the browser doesn't let me see them. Can ...
0
votes
0answers
34 views

Using multiple versions of php

I have gone through the linked SO question already. I want to use php 5.6.16 as the default one on my debian installation. I've compiled it already with the --with-apxs2=/opt/httpd/bin/apxs parameter ...
1
vote
0answers
18 views

Website trying to pull up a page from a different site

We've had an issue come up a couple times in the past month or so, and I don't know what is causing it. After the first time, we wrote it off as a fluke, but it happened again today, so I'm looking ...
0
votes
1answer
35 views

PHP Fatal error: Directive 'register_globals' is no longer available in PHP in Unknown on line 0 [duplicate]

Cron [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean PHP Fatal error: Directive 'register_globals' is no longer available in PHP in Unknown on line 0 Hi, root get above ...
0
votes
0answers
49 views

How do I install PDO drivers for PHP on Windows?

I installed Apache, PHP 5.6 and MySQL 5.7 on a Windows server. In php.ini, I enabled the following: extension=php_mysql.dll extension=php_mysqli.dll extension=php_oci8_12c.dll ...
0
votes
2answers
83 views

Error with apache 2.4 and PHP 5.6.14-0+deb8u1 With fpm

I have a Vagrant machine with: Apache/2.4.10 (Debian) PHP 5.6.14-0+deb8u1 and PHP-FPM. In some case I get this error: 500 Internal Server Error. And I have this in message in php5-fpm.log ...
0
votes
0answers
28 views

Nginx - File uploading with a php backend?

I want to set up a simple nginx server that takes uploaded files and runs a few checks and shell commands on them before moving them to the /files directory. Is it possible to do this with a php file ...
0
votes
0answers
17 views

PHP files downloading instead of executing [duplicate]

I have what I understand to be a reasonably common problem-- Apache is downloading PHP files instead of executing them. I've used the solutions on other threads as best as I was able and learned the ...
0
votes
1answer
58 views

Apache serves PHP file as plain text if %20 is added to the file extension [closed]

I've never seen this before and Google didn't lead to any results so far. I am almost sure it is a mistake so stupid that I should see it but I just don't. I have a very basic Apache server with PHP, ...
0
votes
0answers
28 views

Run a different version of PHP on a domain directory?

I'm aware that it's perfectly possible to run different PHP versions on different domains/vhosts. But, someone is asking me to run a different PHP version on a domain directory because "there are ...
0
votes
0answers
24 views

postfix / php mail() on ubuntu 14.04: no mail sent, no trace in log

Setup: Ubuntu 14.04 postfix 2.11.0 php 5.6.15 Php's mail() function does not send out emails on my VPS and no issue appears on the log. My test script is very basic: <?php ...
0
votes
1answer
480 views

Ubuntu 12.04 PHP 5.3 to 5.5 update fails

on a Ubuntu 12.04 Server I´m trying to update PHP 5.3 to 5.5 this is what I have done: sudo add-apt-repository ppa:ondrej/php5 sudo apt-get update sudo apt-get install php5 unfortuntely the ...
2
votes
1answer
49 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 ...
1
vote
0answers
16 views

upgrading PHP from 5.3.3 to 5.4.40 breaks

I have a RHEL 6.7 server running: Apache: 2.2.15 PHP 5.3.3 getenforce => Disabled As is, its working fine. The web master for the server tells me that PHP-5.3 will no longer work with Facebook's API ...
0
votes
0answers
202 views

500 Internal Server Laravel 4 on Apache

I have project in Laravel 4. It's on bitbucket. I've downloaded it from my repo on my local machine, crated a local virtual host, working fine. But when I cloned the same project on my server and ...
0
votes
1answer
95 views

sqlsrv not showing up in phpinfo.

I'm using Win server 2k12, php 5.5.12, on wamp. Edited php.ini (both on apache dir and php dir) to add php_sqlsrv_55_ts.dll and the php_pdo_sqlsrv_55_ts.dll, and configured the extension dir path ...
2
votes
1answer
26 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 ...
0
votes
0answers
14 views

webpage issue after enabling ssl, all i see is files and folders on my webpage

I installed Teampass on my lamp server and it was all good on http. now that i have enabled ssl for https all i see are the files on the webpage. not more graphics etc. I need help please.
0
votes
1answer
19 views

PHP session files unable to save after a mass deletion

I had an excess of php sessions files created on a server in /var/lib/php5/ so I deleted them, but now php5-fpm and my server refuse to write sessions files. I assumed that the session files would be ...
0
votes
1answer
68 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 ...
-1
votes
1answer
119 views

Bash command in PATH to be run from PHP script [closed]

in Debian 8, I'm trying to create a script I can put under /sbin (which is in my $PATH environment variable), so it can be run, the command is a simple echo of a few lines. I've created a bash script ...
0
votes
1answer
19 views

How is leading slashes handled in server and in client?

I am trying to create a RewriteRule, but it's unreliable and I can't figure out what is happening. Here's my rule: RewriteRule ^docs/(......)/$ index.php?docid=$1 [L] the problem is leading ...
0
votes
0answers
45 views

How to Install XCache on BlueHost VPS

I have a VPS account on BlueHost. The OS is CentOS6.7 x86_64 and PHP version is 5.4.28. I followed instructions from here to install XCache and the installation failed. The installation failed ...
0
votes
2answers
115 views

symbol xmlOutputBufferGetSize, version LIBXML2_2.9.0 not defined in file libxml2.so.2 with link time reference

I've installed Apache2 and PHP5 via apt-get on Ubuntu 14 (amd64), and I get this error message on an attempted restart (in addition to php files being served without being processed by php): ...
0
votes
0answers
51 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 ...
0
votes
2answers
137 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 ...
1
vote
0answers
328 views

mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

I have been struggling for weeks with this error: (32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function followed sometimes with this error: (104)Connection reset by ...
1
vote
1answer
61 views

virtualbox ansible and PHP

I am trying to install Centos-7 on Ubuntu vivit in Virtual Box using Ansible. I get through a large amount of configuration and set up before it fails with the message below. I have searched for ...
1
vote
0answers
60 views

upload_max_filesize: php.ini or apache virtual host entry

I need a little perspective here as I am a bit confused. I was under the impression that adding a <IfModule mod_php5.c> php_value upload_max_filesize 200M php_value post_max_size 800M ...
0
votes
0answers
103 views

php 5.6 make test errors

I am in the process of doing php upgrades on our various servers from 5.5 to 5.6. I am down to the last 2 (out of like 8 or so) and running into the following when performing make test (after ...
0
votes
0answers
82 views

load php extensions in apache

*reposting from stack overflow as this is more a server setup than a programming issue. http://stackoverflow.com/questions/32523320/load-php-extensions-in-apache * Hi folks, I think i am almost ...
0
votes
0answers
85 views

Occasional OpCache Error, Apache 2.4 MPM Worker + PHP_FPM + PHP 5.4 undefined symbol: compiler_globals

We are receiving the following errors randomly on our server running Apache 2.4 MPM Worker + PHP_FPM + PHP 5.4 Failed loading /usr/lib64/php/modules/opcache.so: /usr/lib64/php/modules/opcache.so: ...
1
vote
1answer
85 views

How To Only Restrict PHP5/Apache to Send Mail Only To Local Users

I need some help. I am running lastest stable Ubuntu which hosts Apache/PHP5 and also delivers email. I host some WordPress sites for other users and have been waging a war for months now combatting ...
2
votes
0answers
280 views

php5 not working with nginx 1.9.3

I am new to nginx, and having some trouble with php5. (I had it sorta working, but cant seem to get it working again.) There are 2 files I am woring with, that seem to control nginx, and php5-fpm. ...
0
votes
1answer
276 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 ...
1
vote
1answer
173 views

Debugging slow server response time [closed]

I'm testing response time of my VPS server: curl -s -w %{time_total}\\n -o /dev/null http://www.example.com The values are typically round 300ms, Google suggests that it should be lower than 200. ...
1
vote
1answer
102 views

“Allowed memory size of 67108864 bytes exhausted” when PHP memory limit is set to 128mb

Forgive me if this is the wrong place; was unsure whether to post this on SO or here. I'm getting the above error from a script, implying that I've reached the limit of 64mb of memory for the script. ...