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

2
votes
1answer
33 views

Cygwin OpenSSH server does not respond after first command from PHP (Using phpseclib)

I got cygwin and sshd working fine. And there are no issues at all when using putty. It responds as expected even for multiple commands. But when using phpseclib , A response is received only for the ...
0
votes
1answer
41 views

Make error_log readable by apache

Setup: CentOS 6.6, Apache 2.2.15, php 5.5.21 I 'm building a php script that displays the content of the /var/log/httpd/error_log file. Unfortunately, it does not work. The error message states: ...
0
votes
0answers
121 views

Using apache with hhvm

I've tried to test hhvm (on my local machine), but did not manage to get it working. Important side-note: I need to run mod_php and fcgi at the same time. It's not possible to abandon mod_php for me ...
0
votes
2answers
307 views

PHP memcached session redundancy

I'm trying to follow How To Share PHP Sessions on Multiple Memcached Servers article and implement that to my environment: /etc/php.d/memcache.ini: # grep -v ^\; /etc/php.d/memcache.ini ...
0
votes
0answers
32 views

Supersede the default Apache config on a different config file

I'm using Ubuntu with Apache 2.4. The config file for Apache is found at /etc/apache2/apache2.conf at the end of this config file it's written # Current File: /etc/apache2/apache2.conf <Directory ...
0
votes
0answers
165 views

PHP Warning: Unknown: Failed to write session data (memcached). Very infrequent

I installed memcached (2.2.0) libmemached (1.0.18) a few weeks ago. (Apache/2.4.10 and PHP 5.5.20), mostly for php session management. Generally I'm really pleased with performance but I notice this ...
0
votes
1answer
96 views

PHP Session sharing between HTTP and HTTPS

I am setting up a shopping cart website however I am having issues with sharing PHP Sessions between HTTPS and HTTP. My secure address: https://secure.domain.com My regular address: http://domain.com ...
0
votes
1answer
41 views

WHM - php.ini in public_html stops default php.ini [closed]

I have a server with WHM panel. OS is CentOS. When I put a php.ini in public_html PHP stops reading /usr/local/lib/php.ini. When I compare results of phpinfo() what I see is; error_log error_log ...
0
votes
0answers
56 views

Client denied by server configuration, after upgrade

Yesterday, after upgrade my development machine, received this messages on intermittent mode. Client denied by server configuration. I working for years with the same configuration without problems. ...
1
vote
0answers
47 views

Atomatic SaaS scaling

I'm thinking about how to best setup my SaaS application for automatic scaling and have reached a step I'm unsure of how to tackle. To properly describe the problem, I better start by explaining how ...
1
vote
1answer
91 views

Error 500 / 503

I get an Error 500 / 503. My theory was that php5-fpm was being killed and re-spawned every second due to messages like this in php5-fpm.log [27-Jan-2015 08:21:34] NOTICE: fpm is running, pid 30045 ...
0
votes
0answers
41 views

Long process PHP stops after several minutes

What is the reason for process to end? Here is the part from log_file when this happened.. 2015-01-28 13:28:19.808 [INFO] [62.54.16.41:52122-0#APVH_mysecrets.omg] Connection idle time: 901 while in ...
0
votes
1answer
65 views

Add a PHP Handler to a website or even a folder only via AppCmd

I am trying to automatically deploy an IIS webserver (currently 8.5, will need to work it out all the way down to 7.5 as well), using AppCmd.exe I am using PHP's FastCGI to handle requests. I have ...
0
votes
1answer
30 views

mail.log for PHP mails [closed]

I got a new server. When I get a new server I always activate mail.log in php.ini. I did again too. Path is /var/log/phpmaillog I restart httpd and I also created the file with touch ...
1
vote
1answer
120 views

Can't Install freetds php-mssql on Centos7

I am at my wits end... Newbie to Linux... please help me... Goal is to connect to MS SQL Server 2005 using PHP. I have installed PHP and ODBC. I am running CentOS7. PHP Version => 5.4.16 .... ...
0
votes
0answers
77 views

Running Python and PHP on the same server

I've got Django, Gunicorn, and Nginx set up and working nicely together. I'm only going to have a few pages on this Django website, so I'm trying to I'm trying to set up the server such that files ...
0
votes
0answers
127 views

And another FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream,

having some issues with 'file not found' or FastCGI sent in stderr. From what I have searched and researched about the issue it's due to the fastcgi_param SCRIPT_FILENAME not being able to locate the ...
0
votes
1answer
140 views

nginx: url rewriting not working

I'm using Jelastic with nginx 1.6.1 and would like to use friendly urls without the .php extension. So if someone visits for example https://domain.com/faq.php nginx should rewrite it to ...
-5
votes
1answer
39 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 ...
-1
votes
1answer
190 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 ...
-2
votes
2answers
307 views

How to set custom $_SERVER variable for PHP

I'm working on a PHP web app which ALSO has some command line tools. I need the command line tools to detect the environment so that they connect with the correct DB credentials etc. The web app does ...
0
votes
1answer
48 views

Nginx Cache with PHP-FPM

I have the folowing niginx config file: server { listen 80; server_name pajilleros.com www.pajilleros.com; access_log off; location / { root ...
0
votes
0answers
67 views

Ubuntu 12.02 to 14.04, Wordpress tries to use wrong MySQL user on single post pages

I just ran an update to Ubuntu 14.04 on my web server. It went super smooth and I thought all was well, but I just noticed the inner most pages of my Wordpress site throw an unusual error. Access ...
0
votes
1answer
98 views

Compile php with latest openssl and curl

I am trying to compile php 5.4.36 with latest curl and openssl (1.0.1l), i have compiled openssl into a separated folder My system is CentOS. When i try to compile php with ./configure ...etc... ...
0
votes
0answers
77 views

How to enable apache userdir when using nginx as reverse proxy

I have a setup using apache 2.4, php-fpm, and nginx. I need to enable the apache userdir module so http://ip-of-server/~user would be equivalent to the http://example.com normal site. I can't get it ...
0
votes
1answer
62 views

Execute PHP script when someone requested a certain file in another Folder

I am building a WebHosting service. Users can create a Account and upload Files with FTP and access them by visiting username.mywebsite.com (just an example). I would like to record the number of ...
0
votes
1answer
198 views

PHP cant write files regardless of permissions

On a Centos 7x64 box apache/php is unable to write files regardless of permissions. I set the directory to apache:apache and even set it to 777 and php is still getting permission errors. What else ...
2
votes
2answers
65 views

apache worker + php fastcgi, long script [closed]

My problem is that long php scripts (several hours) are exiting early. (FireFox says "connection to the server was reset while the page was loading"). They exit sometimes after 30 minutes, sometimes ...
0
votes
2answers
93 views

nginx with php5-fpm and multiple Wordpress in subdirectories

I have a running nginx server with php5-fpm on a debian wheezy. I want /var/www/devel/ to be my development folder served at http://devel.example.com. In this directory I have multiple projects like ...
0
votes
0answers
185 views

PHP upgrade to 5.3.3 stopped sessions working

I can't login to any of my PHP applications now (phpmyadmin, mediaWiki) after using yum to update PHP to 5.3.3 I've looked at other posts but there doesn't seem to be a general fix to the problem, ...
0
votes
1answer
88 views

Upstart service was running, stopped and will no longer run

I feel sure that someone, somewhere changed something on the server but I cannot identify what occurred. Keep in mind the service was working perfectly prior to the beginning of this week. (NOTE: this ...
0
votes
1answer
72 views

Two browser windows hitting same MySQL app, both can't run at the same time

I have a LAMP web application that has some pages that do quite a bit of processing and take a while to complete. Sometimes as the developer I like to do two things at once as I'm working on a ...
0
votes
1answer
69 views

Protect /analytics on Nginx with basic authentication, but allow access to .php and .js files?

Hope this is the right place to ask. I have Piwik setup and running on a Nginx webserver that I protected with HTTP basic authentication, as seen below. location /analytics { alias ...
0
votes
1answer
38 views

SimpleSAMLphp OpenID Consumer

I'm using SimpleSAMLphp as an OpenID Consumer and no openID provider I tried seems to work. I always get the following error: Exception during login: SimpleSAML_Error_BadRequest: ...
0
votes
0answers
33 views

Performance degradation using PHP APC

Having configured and deployed PHP APC on a Windows server, the sites running PHP seem to have taken a hit in performance. They are slower than what they used to be. Disabling APC, returns them to ...
0
votes
1answer
148 views

PHP not executing in installed phpMyAdmin directory [closed]

I installed phpmyadmin on centos via yum and can access it via //ip/phpMyAdmin. However, it shows the source code instead of the interpreted PHP code result. I tested this again by adding another ...
0
votes
1answer
513 views

Running PHP and Node.js on the same Nginx server

is it possible to run PHP and Node.js on the same Nginx Server and VPS? I already manage to make nginx as reverse proxy for node.js but my question is how to run it alongside with PHP? I want node.js ...
0
votes
1answer
84 views

PHPIZE dont working on plesk whit 2 php version, imposible install extension [closed]

first sorry for my bad English, try to explain my problem as clearly as possible. I have a strange problem on one of my servers, I run a plesk 12 server, I have 2 php versions. The default php ...
0
votes
1answer
230 views

Ubuntu 12.04 unmet dependencies [closed]

I have a VPS which is running plesk, I wanted to use a nginx web server and update the php version but I believe there could've been some sort of conflict with plesk when I tried to install nginx. I ...
0
votes
2answers
101 views

PHP file Upload & execution Prevention

I am security administrator for a shared Linux web hosting. I have done my level best to secure the server in many ways within the possible limitation. Means, As it is shared hosting, there will be ...
2
votes
1answer
140 views

Nginx treating old PHP urls as Files

Having a very hard to trying to figure this out. I have changed my website from another platform to Joomla and now Nginx is unable to handle old urls. My Old Urls were like this: ...
0
votes
1answer
387 views

No package php-imap available on CentOS 7

I'm running a dedicated server with CentOS 7 64bit, here is the output when trying to install IMAP: yum install php-imap Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile ...
2
votes
1answer
225 views

HHVM randomly stops running

The Background Recently I've changed php5-fpm in favor of hhvm, that is really what they said, a "holly performance grial" I've installed hhvm remove php5-fpm (is really a fallback needed??) ...
-2
votes
1answer
50 views

PHP website grinds to halt for an hour, then runs fine…how to debug?

I have a PHP website which uses $_SESSION variables. It runs on Apache, Mysql and Ubuntu 14.04 on a very resourceful server (Amazon EC2 - M3.X-large) For some unknown reason, the website virtually ...
0
votes
1answer
94 views

Enable curl_exec() in a sub-folder

Curl is enabled on the server but curl_exec function is disabled for security reasons. disable_functions = exec,passthru,shell_exec,system,proc_open,popen, ...
0
votes
1answer
806 views

yum dependancy error - looking for the wrong version of php-mysql

So I was trying to upgrade from MariaDB 5.5 to 10.0. (which is essentially MySQL fork) The installation instructions say to yum remove mariadb-server mariadb-common mariadb-compat then re-install ...
5
votes
1answer
1k views

Roundcube & Postfix SMTP: SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c

I have a Postfix / Dovecot / Roundcube setup that I use personally, as well as provide to other users. I am attempting to transfer this entire setup to a new box, but having some issues. Mail ...
0
votes
1answer
188 views

Install php-soap56w on CentOS 7 x64 not working [closed]

I followed the guide located here to install PHP 5.6 with Apache on CentOS 7. Everything went along smoothly. I now need to install PHP-SOAP and it's gave me dependancy conflicts. So I used this ...
0
votes
1answer
38 views

Apache proxy to subdomain (vhost)

I need to proxy to a webserver were I don't have control over it. The problem is that the webserver hosts more than 1 domain and subdomains on the same IP. This means that when I use apache proxy I ...
2
votes
0answers
94 views

nginx with php and two node.js routes

I have two routes i want to pass two node processes(websocket route, angular app), while a 3rd route needs to pass to a php application that acts as a rest api to the angular app. i'm not terribly ...