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
17 views

Dokuwiki: Moving Just the data directory on other server

I have installed dokuwiki on IIS7. As per my teams requirement we have to move just the Data directory to other server location. e.g IIS7 installed Dokuwiki location: ...
1
vote
3answers
59 views

Load Balancing - PHP/Mysql [closed]

I have a server which relies heavily on a MYSQL database. Recently, there have been load issues and max mysql connection issues. My idea is to have a primary server with the php code and files and a ...
0
votes
0answers
28 views

Running two different PHP fast-cgi instances on windows with OPCache enabled

I'm trying to run two different php 5.5 instances on Windows (one with XDebug, one without, same php executable, different php.ini files) over fast-cgi in Apache 2.4, ideally both with opcache ...
-1
votes
1answer
26 views

mails doesn't fire from php script - some issue with vps configuration

I am unable to fire any email from the php scripts on my vps server. I went to check in the logs and found this: Mar 26 05:53:30 corporatepixels sendmail[23772]: STARTTLS=client, ...
0
votes
1answer
34 views

nginx rewrite rules for tweetnest

Recently I migrated my last apache to nginx (+ php-fpm). Everything works fine except tweetnest by month links (tweetnest/yyyy/mm). tweetnest provides apache rewrite rules (.htaccess) which works ...
0
votes
0answers
6 views

Add Wordpress to Meteor js site [migrated]

I have a Meteor app that I want to add Wordpress blogging platform to. There doesn't need to be any integration, just: http://example.com/blog/ Anything behind blog/ belongs to WP. How would I go ...
-1
votes
1answer
39 views

Cpanel + CSF + suPHP = no php brute force protection?

I have NOT found anyone else talking about brute force detection in CSF with suPHP enabled. Maybe I'm not seeing the real picture or need but it feels that suPHP is weak at brute force detection. Is ...
0
votes
1answer
26 views

ISPconfig removing newly added database column causes SQL Replicate error

Recently, I added a "mongo_plugin" column into mysql on my IspConfig server. But after not having achieved the intended goal, I removed the "mongo_plugin" column from each table. And the error ...
1
vote
1answer
55 views

Reliably running background operations

I'm looking for a recommendation on how to reliably run background operations. I have many servers posting operation messages to AWS SQS, and I have another server which will run these CPU intensive ...
1
vote
0answers
34 views

Need a PHP version manager to deploy multiple versions of PHP on production servers

I'm currently running a few LAMP stacks, where I've setup PHP 5.2, 5.3 and 5.4 by hand. All servers are running Ubuntu 12.04 LTS. 5.3 is currently installed via apt-get but all other PHP versions are ...
1
vote
1answer
33 views

Can't send email via PHPMailer

I'm using the PHPMailer class to send email from an online application, it works fine on development server, and if I disable iptables. However whenever iptables is started, no mail sends - it seems ...
2
votes
2answers
56 views

PHP locking up webserver [closed]

Description of issue: So after "extensive" research I have determined that PHP on apache will not respond to multiple requests, only the request that its on. (So if your PHP server spends 5 seconds ...
1
vote
1answer
71 views

Can't login to remote MariaDB server with phpMyAdmin, but works in shell

I recently configured two servers. The first to use Apache and phpMyAdmin. On the other server I have a maria-DB server correctly configured. phpMyAdmin it's reading the config file, but I can't ...
1
vote
1answer
65 views

Use a PHP script to authenticate users on Linux

I have a web application running built in PHP using MySQL as database. I'm trying to give specific users access to a Linux system via SSH to perform simple command-line tasks. Since I do already have ...
-2
votes
2answers
30 views

Upgrading PHP on Fedora [closed]

I have a Fedora server running PHP 5.3.13 and Wordpress. I would like to upgrade the PHP version to 5.3.18 or higher. This is the system information: $ uname -a Linux xxx.com 2.6.40.6-0.fc15.x86_64 ...
0
votes
0answers
8 views

wordpress- pages not showing [duplicate]

I am having some problem with my wordpress. When I create a new page in wordpress the page gets saved but when try to access that page it show "500 Internal Server Error" Can anyone please help me ...
0
votes
1answer
14 views

php is not interpreting inpinfo on new centos install

I just installed latest centos as a desktop version. Then I installed php via yum and turned on httpd. Php code is being interpreted, but phpinfo() is messed up. I see all the html code as well as the ...
0
votes
1answer
16 views

Restrict PHP/filesystem from accessing the remaining subdomains

I am trying to setup something like: a.site.com b.site.com c.site.com Now, I want the data in a.site.com to be completely independent of b.site.com. Basically, I want to be able to provide FTP ...
0
votes
1answer
37 views

Exim rewrites from to default user

I am running a Centos 6.4 server with Directadmin and Exim installed. We are using outgoing filtering together with Spamexperts.com. Somehow when I send email with PHP the envelop sender is being ...
0
votes
0answers
15 views

Does Zend Optimizer share its memory across sites?

I have a virtualmin setup on Ubuntu 12.04. I recently installed PHP 5.5.3 with phpbrew and switched three of my wordpress sites in virtualmin over to PHP 5.5.3. Each of these sites has it's own ...
-1
votes
0answers
26 views

Start using second php server when requests/load on first are more than XXX

How to start using second php server when requests on first are more than XXX. For example: i ahve 20 000 requests and 20 001st will start using second one. I have 2 linux Debian servers with Apache. ...
0
votes
2answers
61 views

How to install multiple versions of PHP on one server?

I want to have two versions of PHP on one server and switch between them using a symlink. I have PHP 5.3.2 installed. I want to install PHP 1.4.6 along side it and be able to switch back and forth ...
1
vote
0answers
7 views

Supporting embedded PHP on a CGI app with IIS

We have a CGI pageserver (.exe) written in Delphi running on IIS. We'd like to be able to embed PHP in these pages at some point in the near future--say, for a captcha or CMS integration--but are ...
0
votes
0answers
22 views

SPDY & Nginx upload issues

I have this setting: an Nginx server with php-fpm and the http://blueimp.github.io/jQuery-File-Upload/ When I try to upload a file after about 10MB it fails. This happens when SPDY is activated. ...
0
votes
2answers
69 views

Zabbix not connecting to MySql database

I'm trying to get Zabbix running under Amazon Linux I've installed the following packages: zabbix20-server-2.0.11-1.el6.x86_64 zabbix20-server-pgsql-2.0.11-1.el6.x86_64 ...
0
votes
0answers
27 views

PHP upgrade always breaks session folder permissions

Every time I upgrade php (via yum upgrade) on my CentOS box, my /var/lib/session folder ownership becomes root:apache with 600 permissions. I use nginx as my web server. This breaks my site and ...
0
votes
0answers
19 views

Cannot enter “Umlaute” on php console

I do have a problem with german "umlaute" on the console. Whereas I have no problem entering them on the bash console, it is a problem on the php console PHP is all set to UTF-8 ...
0
votes
0answers
10 views

does “Filesmatch” provide the same protection as “open_basedir”

Does using Filematch in my apache virtual host config provide the same benefits as open_basedir (php)? I was originally trying to use open_basedir for something along the lines of ...
0
votes
0answers
48 views

Unable to install Phpmyadmin on Centos 5, missing dependency php-common

I keep getting this error when trying to install Phpmyadmin: Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package phpMyAdmin.noarch 0:2.11.11.3-2.el5 set ...
0
votes
2answers
68 views

Should i separate MYSQL from PHP and NODE JS to another server

I am a PHP Programmer and working on community website. I am using Apache NodeJS Php and Mysql on server: 24GB RAM Intel i7 950 8Cores 8Threads 3.06GHz, 120GB SSD HDD 12GB SWAP (dedicated server) OS: ...
0
votes
1answer
24 views

Configuration: DNS or Apache

I have the following problem. I have two domains: www.domain1.de and www.domain2.de I also have path is on Jelastic server where to find my PHP page myphpsite.jelastic.dogado.eu. Now I wanted to do ...
-1
votes
0answers
10 views

Centos error package installing php5w [duplicate]

--> Finished Dependency Resolution Error: Package: php54w-5.4.25-1.w6.x86_64 (webtatic) Requires: libssl.so.10(libssl.so.10)(64bit) Error: Package: php54w-cli-5.4.25-1.w6.x86_64 ...
1
vote
2answers
66 views

How to upgrade PHP version without any downtime?

Is it possible to upgrade the version of PHP running on my server without any significant downtime? What I want to avoid is my sites being down for minutes (or longer if something goes wrong) while I ...
1
vote
1answer
44 views

php-fpm process running when using mod_php

I've been having some out of memory issues. Pretty much there after tuning Apache but I have noticed something odd when analyzing memory usage. php-fpm is running in the background when, as far as I ...
0
votes
1answer
19 views

Nginx rewrite and 50x.html

I'm trying to set up a website where writing for example /users/add redirects me to /index.php?table=users&action=add I wrote the following rules: rewrite ^/(.+)/(.+)/$ ...
0
votes
0answers
21 views

APC Cache files expire Issue with FastCgi

we have properly installed APC cache on our WHM based server, we have set to expire each file in few hours, but all cached file lost in few seconds. Our APC Settings: apc.cache_by_default 1 ...
0
votes
1answer
35 views

Installing Ioncube on CentOS

I am trying to install Ioncube on one of my VPSs.Just a little background. This is a CentOS latest, running on an ESXi latest host. The machine has 2GB memory. I ran php-based loader wizard. I'm ...
0
votes
1answer
124 views

why isn't laravel's php artisan serve server being accessible from the WWW on IIS

I have a laravel application running through the laravel artisan server: php artisan serve and it works just fine if I go on my localhost:8000.. Further, I added an inbound rule in the IIS server ...
-3
votes
1answer
44 views

Horde Groupware in Synology [closed]

Need information to install Horde on Synology. I heard there is a Horde package for Synology, Can someone help me find the link. I am new and tried in many ways to find it myself before asking. Thank ...
1
vote
0answers
28 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
0
votes
2answers
28 views

Diabling Symfony2 sessions files

I'm looking for a way to disable the file saving of PHP sessions. (I do not need sessions in my application) I tried to set save_path = NULL, but it only set it to the default path (/tmp). Is there ...
0
votes
2answers
87 views

How do I remove 1 line of code from PHP files containing a specific string? [duplicate]

By coincidence I noticed that quite some of the PHP files of the sites I host have had malware injected: They all have the following line before the original/correct code: <?php ...
0
votes
0answers
17 views

Issue during long server requests, Apache, PHP, Cpanel

I have a cloud server hosted at Rackspace with cPanel installed on it. I have only one PHP app hosted on this machine. I've noticed that when I'm uploading a large file or executing a request that ...
0
votes
0answers
29 views

Using memcached in php.ini is ignoring gc_maxlifetime?

Using php-fastcgi with session.save_handler = memcached and session.gc_maxlifetime = 1440, my sessions are never expiring. Memcached Cache is running full and then starting to evict old items after a ...
0
votes
5answers
194 views

How to run su from PHP launched on Apache? [closed]

I tried to run su command with PHP shell_exec function. At first I tried: <?php echo(shell_exec('echo \'password\' | su user -c \'whoami\' 2>&1;')); ?> and I got: su: must be run from ...
0
votes
0answers
22 views

nginx wont cache images when they are read through php files

i have .php file wich is loading images to hide their location. Every images are correctly caching through this directive: location ^~ \.(jpg|jpeg|png|gif|ico|css|js)$ { expires max; ...
0
votes
0answers
24 views

Email not getting sent through the script on vps parallels

We have a web site hosted on the vps parallels server and we are trying to send mail to the email id which is hosted on godaddys email plan xyz@ourdomain.com , but we are unable to send mail through ...
1
vote
0answers
16 views

include_path not working in httpd.conf

I have a virtual host set in httpd.conf. The virtual host resolves properly, but it is ignoring my php_include path directive: php_value include_path .:/var/www/xxx/library/ The path works, I ...
1
vote
1answer
24 views

Is multiple php5-fpm processes normal

I'm running several wordpress sites in a LEMP (Ubuntu Linux, Nginx, MySQL, PHP) stack. Looking at the running processes I can see there are two php5-fpm processes. Is this normal or have I done ...
1
vote
1answer
60 views

What does ā€œuā€ in an rpm filename stand for?

I currently have PHP 5.4 installed. These packages are all prefixed with "php54-" (pecl, pear, pdo, fpm, gd, mysql, etc). I'd like to make the transition to 5.5. The packages are available... ...