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
0answers
22 views

php-cgi is running in multiple threads - but it shouldn't

I have a webserver - Apache (2.2.29) + PHP (in this case 5.4.37) and sometimes, i found PHP processes running in multiple threads. But I believe this shouldn't be possible. The server is used as ...
1
vote
1answer
11 views

Automate SVN UP process on multiple application servers

I have multiple PHP application servers having their own svn checkout copy. Now when i need to deploy anything i have to do svn up on all servers one by one. Is there any way to automate this process ...
0
votes
1answer
28 views

SMTP-Mailing with PHP works - but not with PHP-Cli

I mentioned a strange behavior on my webpage: If I try to use Joomla to send Mails via SMTP it works fine; no problem at all. But: If I try to use a PHP-CLI-Script the action fails (same source ...
1
vote
0answers
29 views

IIS 7.5 - Windows Authetication FQDN

Currently, I have to implement an auto login function for my mediawiki and I have enabled windows authentication on my IIS 7.5. It is working on localhost without any prompt. However, when I tried ...
0
votes
0answers
21 views

No script name passed to php-fpm via nginx/FastCGI

I run a PHP 5.6 instance over php-fpm without a problem (unix sockets and nginx). Today I compiled PHP 7 and also started it as a second PHP instance. While requests get served fine with the PHP 5.6 ...
0
votes
0answers
56 views

.htaccess rules not working or renaming

I am deploying a legacy site on a server running Ubuntu 14.04 version. This site was developed using Symfony framework 1.4 and it was originally deployed at a shared server, thus redirections between ...
1
vote
2answers
35 views

Trying to mirror a legacy PHP 5.3.29 app on CentOS 7 (strange I know!)

I'm wondering if any linux/php gurus out there could help. Long story short, i've been tasked with creating a mirror/backup of a website which is made in PHP 5.3.29 to mitigate any risks if the ...
0
votes
0answers
6 views

PHP absolute path not working [migrated]

I have set up a simple virtual host. JUST added these lines at the bottom <VirtualHost *:80> ServerAdmin webmaster@yourdomain.com DocumentRoot "/var/www/Reminder/" <Directory ...
0
votes
0answers
65 views

PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)

Currently I am setting up a server to run a web site built on Symfony framework (1.4 version). After tuning Apache2 to work with needed folders, and setting proper permissions on every chunk of path ...
1
vote
1answer
20 views

PHP timeout is zero and memory limit is 1024M and script timeout?

on my work server i set PHP settings to be 1024M memory limit and max execution time to zero after all this the script still timeout !! what are other options to make script runs forever if i want ...
0
votes
1answer
34 views

Monit unable to restart php5-fpm

Monit is correctly detecting that php5-fpm is unavailable as seen in the logs. However, it does not seem to be able to restart the service. log: [EDT Jun 11 18:04:20] error : 'php5-fpm' failed, ...
2
votes
3answers
55 views

SELinux restrict Apache/PHP access

I installed a minimal CentOS system with Apache, PHP and SELinux in a default configuration: SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root ...
-1
votes
0answers
21 views

Optimize IIS for PHP and Symfony2

We have a symfony2 application that is installed on an IIS. We are facing performance issues: opening a single page take about 1s, but if 4 users open a page at the same time it really takes a lot of ...
0
votes
0answers
66 views

View PHP error logs on VM - Vagrant CentOS via Puphpet

I have a Vagrant VM running CentOS, which was built from a puphpet file (config.yaml), and I'm trying to get the PHP error logs setup and accessible. config.yaml - PHP section: php: install: '1' ...
0
votes
0answers
23 views

PHP5 FastCGI too slow Page loading

My Websites loading time is really terrible (too slow) so I started a Benchmark to check what is going on. The CPU is running 100% and Memory usage seems to be good. Read a lot of Documentations and ...
0
votes
0answers
20 views

How to restart EasyPHP from command line

I have a SBS2011 server with EasyPHP 1.8.0.0 installed serving a simple website for company use (not working as a service, but from the GUI provided by EasyPHP). Sometimes MySQL stops and the site ...
0
votes
1answer
67 views

How do I set variables in bat file and pass them to php variables? [closed]

I am working on a script in Windows to get system information , I want to store the result of each command in a bat variable, then pass them to php variables. Here the script that I tried: for /f ...
1
vote
1answer
27 views

Laravel 5 CSRF on prod server, not dev

I develop locally with Laravel Homestead and then have a remote server I push to for production. On my local copy, everything works with no issues. On the prod, I get a Token Mismatch exception on any ...
1
vote
2answers
49 views

Complete LAMP package

I was told to install a LAMP setup on one of our Red Hat servers by my boss. I started by installing the generic httpd, php and mysql packages but he keeps telling me there is one package that ...
-2
votes
0answers
18 views

cakephp - hacked… but how and what [duplicate]

I got an email from my host which says that a cakephp app which I built has been hacked and some bad files found so they've taken me offline. the problems are in the following files: ...
1
vote
1answer
61 views

How to fix Docker build error

I'm trying to create an apache + php docker container, but I am getting a build error. Here's my dockerfile, FROM ubuntu:14.04 MAINTAINER Mizanur Rahman RUN apt-get update RUN apt-get -y upgrade ...
0
votes
0answers
23 views

PHP-FPM + Apache (403 forbidden message)

Im having trouble installing php-fpm. When ever I install it and open a php file i get a 403 forbiden status code Looking at the logs is see client denied by server configuration: ...
0
votes
1answer
92 views

nginx after time not work and suddenly show error

my site is joomla and i config windows server 2008 r2 to mysql php and nginx it work ok but after 1 or 2 hour suddenly show error page?! worker_processes 32; events { worker_connections 1024; } ...
0
votes
0answers
22 views

Zend Framework 2 Deployment to Zend Server Fails with Runtime Error

I am running WAMP server inside Windows Server 2012 R2 and Apache is listening at localhost:82. I installed Zend Server and have attempted to launch a ZF2 application from Studio to Server. ...
0
votes
0answers
20 views

apache rewrite rule to a file out of DocumentRoot

[Ubuntu14/Apache2.4] I would like to use a Rewrite rule to a file out of DocumentRoot: RewriteEngine On RewriteRule (.*).abc /etc/myproject/myfile.php?File=$1.abc [NC,L] But, I can't because ...
0
votes
0answers
33 views

opcache causing errors: Allowed memory size, and malloc: *** error for object 0x10b4cbaf8: pointer being freed was not allocated

Since I installed opcache I am getting these errors: [Thu Jun 04 17:31:02 2015] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate ...
-1
votes
0answers
22 views

Not enough MySQL connections

I am using clearDB database for my windows azure based php application. I am getting intermittent error on mysql connections. Currently we have nearly 2000 online customers. And we have 30 connections ...
0
votes
1answer
36 views

PHP Trouble Configuring SQLSRV

I am working on learning PHP, and one of my goals is to be able to connect to an SQL Server database. I am on a virtual Windows 2008 Server and have 32-bit PHP 5.6.0 installed. I have downloaded the ...
1
vote
2answers
124 views

How do I check server tokens are off?

We had feedback from our pentest report saying we should turn off server tokens. This is stop people being able to see which version of PHP we are using, and limit their ability to target the specific ...
0
votes
0answers
12 views

Apache server not handling load

I have something set up incorrectly on a server and I cannot figure out what it is. The server is an Intel Xeon E3-1270 V2 3.5GHZ with 16gb memory. The software is Apache 2.4 PHP 5.5 using DSO for the ...
0
votes
1answer
18 views

postfix cannot send emails [duplicate]

I recently migrated some sites from my old server to a new one with the same configuration on DigitalOcean. The sites working great except for the php mail() function that isn't sending emails. The ...
1
vote
2answers
65 views

Nginx location block - only match actual files

I have the following nginx config: server { listen 8080; root /site_root/web; index index.html; server_name www.mysite.com; location / { try_files $uri @rewriteapp; ...
0
votes
0answers
28 views

Log Outgoing cURL Requests From PHP?

I currently have PHP set up to log all sent mail messages to a log file, using the following configuration in my php.ini: mail.log = /var/log/phpmail.log And it works incredibly well. It gives me a ...
0
votes
0answers
24 views

URL routing for domains

I have a site with 10's of thousands of users. Each user has their own site hosted by me at a subdomain of mysite.com/user1 or as an add on domain at user1.mysite.com or user1.com. This is all done ...
0
votes
0answers
32 views

PHP on Windows - ps_files_cleanup_dir error

I am occasionally getting the following error when loading a PHP page: PHP Notice: session_start(): ps_files_cleanup_dir: opendir(C:\Windows\TEMP) failed: No error (0) in C:\server\default.php on ...
0
votes
1answer
44 views

php-fpm: locale settings change themselves

I experienced a bug with php-fpm : locale settings change themselves randomly. Here are the correct locale settings: Array ( [decimal_point] => . [thousands_sep] => ...
0
votes
1answer
52 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 ...
0
votes
1answer
24 views

Couchbase php sdk 2 Generic Error

I am trying to test a couchbase connection in php v5.5 with the 2.0.7 cb sdk. I am getting the following out put when I run the code below. The server I am trying to connect to is remote and I do not ...
0
votes
1answer
96 views

Error installing php-devel 5.5 CentOS 6

I am trying to run pecl install couchbase but am having trouble with php-devel and its dependencies. When I try to run yum --enablerepo=remi-php55 install php-devel I get the following error. My ...
0
votes
1answer
85 views

php-fpm does not work me exec or shell_exec

I have OpenBSD 5.6 and php-fpm, nginx. Is chrooted by default on /var/www I try:(test.php) <?php if(function_exists('exec')) { echo "exec is enabled"; }else{ // it's not echo "exec is ...
0
votes
0answers
6 views

System's hardware requirements for Symfony2 [duplicate]

I have this web-blog I'm willing to deploy online. I have yet no idea what kind of hosting I should get. I'm sure shared-hosting is not one of them as SSH access is not possible. If I'm getting a ...
0
votes
1answer
104 views

nginx on fedora fastcgi not working

I'm running nginx on Fedora Server 22 and fastcgi scripts are not working. Under http://panel.minefight.org/ enter any login data, it doesn't load the password fail or success site. The same thing ...
0
votes
1answer
29 views

Dynamically modify DNS to add a subdomain

Is there a way to modify a domains DNS using PHP for example. I am not quite sure how a company can be in charge of a domains DNS (Can I be?) What processes do GoDaddy (for example) go through when ...
-1
votes
0answers
18 views

What is the best way to run PHP script every 30 seconds? [duplicate]

I have kind of a special requirement that is, I'm using a Raspberry Pi 2 B device to feed some data to a mysql database in a cloud serve. So I have installed LAMP stack on raspberry pi and config my ...
1
vote
1answer
38 views

Roundcube MySQL/session issues, “no valid session data found”

So Roundcube is connected to MySQL fine, and is running queries. However, whenever I login, I get a "Your session was invalid or expired." error. From some PHP debugging, I think it has something to ...
0
votes
1answer
31 views

cifs shared mount on linux doesn't read folder

I have CIFS share from EMC storage which is mounted on Linux and also on other windows & mac machines. At Linux server, CIFS share mounted with mount.cifs. My linux server has php code running on ...
1
vote
1answer
44 views

What is the best way to run unoconv in php on debian server?

I have a php script in which I need to convert doc documents to html files in order to show them in a web page. I'm doing the conversion with the php command: exec ( $Command, $Output, ...
1
vote
2answers
203 views

How to upgrade PHP 5.4 to PHP 5.6 on Debian GNU/Linux 7 (wheezy)

I've added these lines to /etc/apt/sources.list deb http://packages.dotdeb.org wheezy-php56 all deb-src http://packages.dotdeb.org wheezy-php56 all But still sudo apt-get update or sudo apt-get ...
-5
votes
2answers
40 views

Why isnt this sudoer command run as root? [closed]

I want to give PHP access to a very specific script using a configuration under /etc/sudoers.d. So I did the following: visudo -f /etc/sudoers.d/99-php And entered this sudo rule: www-data ALL = ...
0
votes
1answer
25 views

MySQL process in Sleep command and page is loading after 1 minute

I'm using VestCP which installed for me Apache2.2, PHP 5.5.25, MySQL Percona and Nginx. I have an app built in ZF1 which works fine on all my development computers but on this server the application ...