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

0
votes
2answers
215 views

Nginx PHP-fpm permission

When i'm setting the user in nginx.conf to root root: user root root; then my website is working, but when i set it to nginx nginx i get error in the logs: connect() to ...
0
votes
1answer
48 views

Connection timing out on webserver?

My server is currently timing out when I try to view the site. I tried restarting nginx. I tried restarting php-fpm. I tried restarting mysql. No dice. I tried rebooting the box. Still no dice. ...
2
votes
2answers
49 views

Using newer version of php on server

What are my options if the version of PHP packaged with Debian Wheezy is too old and I want to run something newer? Besides switching to Ubuntu stable or running Debian Jessie (not great for ...
1
vote
1answer
33 views

How to change protected config files via web/php interface?

I'm looking for way to modify configuration file that resides below /etc directory via web (in particular case PHP) interface. While it's not a problem to read (if you set up file permissions ...
0
votes
1answer
23 views

Open_Basdir Restriction in effect File(/foo/bar) is not within the allowed paths (…/foo/bar)

I am running PHP 5.2.6 with open_basedir set. Now I get the following message of a path not being in the the list of allowed dirs, but it is in the list: "is_dir() [function.is-dir]: open_basedir ...
0
votes
0answers
61 views

How to install gearman on Ubuntu12.04 and php54?

I am trying to install gearman on my Ubuntu12.04 machine. I have upgraded php to version 5.4 via the ppa php5-oldstable. I downloaded the source of gearmand-1.1.12 and compiled it and installed it ...
1
vote
0answers
43 views

PHP define in config file does not update with new value

I have just installed a new system and set up the configuration file (DB settings). the conf' file has the following definitions: define('DB_USER', 'user'); define('DB_PASS', 'pass!'); It all works ...
0
votes
1answer
117 views

Capistrano fails to delete folders/files created by Apache

Problem Capistrano deploys a web application via SSH using deploy user. Apache/PHP runs under typical www-data user. Web server is creating cache files and folders at runtime inside the app path. ...
1
vote
1answer
53 views

LAMP does not save any php logs

I have a brand new vps server with Ubuntu 14.04, i686, Apache 2.4.7, php 5.5.9 here's my virtual host: <VirtualHost *:80> ServerName example.com DocumentRoot "/home/drake/www/" ...
0
votes
0answers
29 views

Why are emails sent from postfix getting bounced from gmail as spam? [duplicate]

I am working on a codeigniter project in php that sends emails. In the email config file its setup to use sendmail but in the logs it shows that its going though postfix. I get a bounce back in the ...
1
vote
1answer
99 views

How to conditionally set php session cookie within php-fpm www.conf?

I need to set PHP session cookie domain dynamically using php-fpm configuration, pseudo code like this: <If "%{HTTP_HOST} !~ /[0-9]/"> php_value[session.cookie_domain] = ".mysite.com" ...
0
votes
0answers
142 views

include(SoapClient.php): failed to open stream: No such file or directory

I have problems with yum, 1st one is when i run yum "commmand" 2nd time, example, yum search php or sudo yum install php-gd i get the error msg, rpmdb: Thread/process ...
0
votes
0answers
25 views

New Relic PHP agent - ignoring deprecated messages

I'm running the New Relic agent on Linux with PHP 5.3.3. I'd like to stop PHP deprecated warnings from being shown in the New Relic monitor - they clutter up the graphs. I already have deprecated ...
0
votes
0answers
56 views

Passing authorization header to PHP - Flesk's fcgid seems to be in the way

I'm trying to configure a PHP application that requires passing through the Authorization header. The server in question is a production server, so there's little room for experiment - any changes ...
-3
votes
1answer
43 views

Replace of cron job/cron tabs— Windows Scheduler [closed]

I want to know that there is any way to create an script on windows machine in PHP that should run after an interval, let's say every after 15 minutes. Currently I'm doing it using javaScript, but ...
0
votes
0answers
134 views

Issue Running Imagick module (PHP 5.4.13, WAMP server)

I have been trying to solve the issue with my production server for the past few hours now. The issue I am encountering relates to the PHP module Imagick (Image Magick). I am running a WAMP server on ...
0
votes
0answers
25 views

Setting up php in apache2

There is probably a very simple solution for this particular issue, alas I ether have yet to find it or understand the solution if I did find it. Our server is Ubuntu 12.04. Apache2 is set up and ...
1
vote
1answer
58 views

nginx sites in subfolders

I have some trouble getting my nginx setup work the way I want. I have a site example.localhost that is located at /vagrant/frontend/www. My configuration for this, which is working, looks like this: ...
0
votes
2answers
132 views

Printing PDF - prints 50Mb from 1Mb PDF file ..

I have this PDF file which is just 1Mb - 30 pages . So when I send it to printer ( HP 1320 ) i see that computer sends almost 50Mb to the printer. How is that possible ? I know that PDF is ...
0
votes
0answers
22 views

Php, IIS8, and MS Sqlserver2008 driver installation

I am new to iis setup, so this is quickly turning into a nightmare. I have installed php using wpi (IIS8)(server 2012) everything is working fine. Now i would like to connect to the ms sql server (v ...
0
votes
0answers
86 views

Trying to find bottleneck… 60k onsite visitors

I know this will be hard, but I'm willing to try the Q&A route. I have a Wordpress site that currently has 60,000 visitors on the site at once. I'm using an EC2 m3.xlarge, php/php-fpm 5.5.10, ...
-1
votes
1answer
25 views

Disable custom php.ini

I want to disable custom php.ini inside my shared hosting. I dont want to allow my clients to use it. I could block the usage of htaccess using allowverride but I cant see someway to block php.ini!
0
votes
0answers
80 views

Using phpfarm to install multiple versions of php on Ubuntu behind a proxy

I'm attempting to use multiple PHP versions on the same Ubuntu 12.04 server. I've installed phpfarm (as suggested by this question). I've created a configuration file for my custom install, but the ...
-1
votes
1answer
345 views

Scheduled Task issue - /usr/bin/php/: No such file or directory

Can't get it working, I want to set up a cron job for a domain user in plesk 11.5, but seems that there's a problem to find the php executable. The command is: /usr/bin/php/ -f ...
2
votes
2answers
473 views

Adding “HttpOnly” and “Secure” cookie flags on Nginx & PHP

I have Nginx running with PHP and WordPress. Acunetix recommends setting these flags, but they provide no documentation. I have looked around a bit, but I have not seen anything that shows exactly how ...
1
vote
2answers
403 views

PECL command produces long list of errors

Currently running PHP 5.4 on CentOS 6.5. I installed the webtatic php55w package then installed PEAR+PECL without issue along with redis and mongo through PECL. Shortly after, I realized 5.5 is not ...
0
votes
2answers
133 views

MariaDB Permission denied when using socket

Here is the gist of my problem: I have a web application that won't connect when the database has the host is set as localhost, however it will if I use the address 127.0.0.1. The error that PHP ...
0
votes
0answers
87 views

Virtualmin/Webmin - How to install PHP 5.2 as secondary PHP version?

I know how to install additional PHP to exiting one in Virtualmin (actually I have 5.4 and 5.5 together) but how I can add PHP 5.2.17 to 5.4? The way which I have used is not working in this case I ...
0
votes
0answers
64 views

PHP: Session-related error, that occurs only in Internet Explorer?

I have PHP 5.4.7 with Yii framework and I'm experiencing problem described here. When I login to my Yii-powered website, I'm getting session_regenerate_id(): Session object destruction failed error. I ...
1
vote
1answer
121 views

unable to switch off expose_php in ubuntu 14.04 with nginx and php-fpm

According to phpinfo: Loaded Configuration File: /etc/php5/fpm/php.ini # grep expose_php /etc/php5/fpm -R /etc/php5/fpm/php.ini:expose_php = Off ...
0
votes
0answers
10 views

how to resolve yum replace php-common --replace-with=php55w-common error? [duplicate]

how to resolve yum replace php-common --replace-with=php55w-common error? on CentOS 6.5 root@server [~]# yum replace php-common --replace-with=php55w-common Loaded plugins: fastestmirror, replace, ...
0
votes
1answer
135 views

Plesk 11.5 multiple php installation fails as php_handler doesn't exist

I have done same operation successfully in the past in order to install multiple versions of php on plesk but when I try now at a new server I get the following error : -bash: ...
0
votes
2answers
97 views

Cron getting timeout when attempting to access url (wget).

I'm sure this is simple and I've been digging but no answer is quite as specific as I need it to be. The goal is easy, have Cron hit a url on my server every 5 minutes. All of that is set up and ...
0
votes
0answers
212 views

Apache 2.2.27 Crashes with CPU at 100%

We have a processor intensive web portal that can easily reach high CPU usage, when this happens the Apache (2.2.27) server crashes, before when using Apache 2.2.25 (with OpenSSL 0.9.8y) the server ...
1
vote
2answers
277 views

Why can nginx access /etc/passwd? [closed]

I'm trying to setup my new VPS with my couple sites. nginx, php-fpm and other needed services installed. I setup a nginx server block(virtual hosts) for my site, and then try to create a php file ...
0
votes
0answers
23 views

Prevent email spam from vhosts

We have a server with several vhosts (with php) running. Recently one vhost was overtaken from a "hacker" which manipulated the php scripts to send email spam. Because the other email servers blocked ...
0
votes
1answer
50 views

How to remove php modules from apache?

Looking at phpinfo() I found a lot of modules that I am not using and therefore they just waste memory. So I want to remove them, but the problem is that also there is huge amount of info about 'how ...
0
votes
2answers
391 views

Change apache (PHP) $PATH environment variable on CentOS with cPanel

I need to add a path to $PATH environment variable for PHP scripts on CentOS linux server with cPanel Pro 1.0 and Apache 2.2.27. For Ubuntu or SuSE it just means adding the row export ...
0
votes
0answers
14 views

Change tomcat security-roles by editing web.xml from PHP

When a user buys a product, I set up a new domain on the fly (by calling some API from PHP), and then I come to a point where I need to specify certain security roles in TomCat, preferably still from ...
1
vote
1answer
369 views

Heartbleed vulnerability when SSL provided by unaffected servers?

*I'd like to ask about two scenarios where a vulnerable version of OpenSSL is installed on a server, but that server is not providing SSL services. Scenario 1: I have an SSL certificate installed on ...
-1
votes
1answer
62 views

Is it possible to use PHP on a website hosted on AWS S3 without using EC2 or Elastic Beanstalk?

I have a bit of PHP (a contact form to be exact) that isn't working right now on my website. I'd like to activate the PHP and I heard one of the ways is to use Elastic Beanstalk. However, Elastic ...
0
votes
0answers
75 views

Can't write files with PHP on IIS

I have an IIS 7.5 web server running on Windows 2008r2. When I try to write to a file I get a Permission Denied error, but I can't figure out how to fix the permissions. I have PHP configured via ...
0
votes
0answers
157 views

Curl get of .cgi file, Always 504 gateway time out

I have a ip cam and I use Get method to switch on the alarm. When I use browser everything is ok http://da***.com:808/set_alarm.cgi?user=***&pwd=***&motion_armed=1" If a try to use this ...
1
vote
1answer
560 views

Apache 2.4 HHVM 3.1 Static content serving

I have set up apache 2.4 with HHVM 3.1.0 (nightly) on ubuntu 13.10 For some reason the server serves the hhvm files (.php) correctly, but when I try to load a .html/.css or any other static file it ...
0
votes
3answers
509 views

Apache 2.4 - 403 HTTP status code

I'm getting a 403 error message with Apache, in Debian Testing. Apache version: # aptitude show apache2 | grep -i version Version: 2.4.9-1 # ls -la /home/ total 28 drwxr-xr-x 4 root root ...
-1
votes
1answer
67 views

Running PHP/MySQL on Windows Server 2008 [closed]

I have a client that has a fairly basic web ordering system that was built for them many years ago. It is based on runs fine on PHP 5.3. Now, it connects to a (even older) warehouse management system ...
0
votes
0answers
42 views

best logic to Load balancing YiiFramework web app

I'm going to launch a Yii framework app next days, and i'm currently searching the best way to deploy it in order to scale and support high traffic. I use Amazon RDS to host the DB, and 2 Memcached ...
1
vote
0answers
118 views

Can't load Mongo extension in php.ini

I'm having some issues while try to load mongo.so extension at php.ini. Below is what I tried: Compile the mongo extension by following the documentation at php.net for MongoDB site. This resumed ...
0
votes
0answers
196 views

How to install a newer version of php on AWS Opsworks?

Our code base is using PHP 5.5 and we are wanting to deploy on AWS Opsworks however when selecting the PHP App Server layer we are told it has PHP 5.3. What I was hoping is that I could just use the ...
1
vote
4answers
119 views

Configure postfix to block PHP-sent mail() to certain recipients

I'm trying to prevent my CentOS 6.5 server from sending out emails to a certain list of recipients. (dont_contact_me@hotmail.com, dont_contact_me@gmail.com and so on). I've configured postfix like ...