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
2answers
28 views

How to Disable ModSecurity without any Errors

I've enabled Mod_Security on my VPS which runs an Ubuntu OS with an apache web server. Now, I want to disable it because I setup another firewall to protect my server. I've tried preforming the steps ...
0
votes
0answers
44 views

json works on localhost but not working on my real server

I have an application that is getting information from my server (online), I have a version of that website in my computer (localhost), The application is working on localhost can get the json, But I ...
0
votes
0answers
11 views

How to use AppCmd on Windows Server for IIS with a site

I came across this ServerFault Article entitled show PHP error message on IIS 7, which was expanded a bit by Anton Staykov. I also searched a couple of other articles, such as this one by Microsoft. ...
-1
votes
1answer
40 views

Sending email from PHP through exchange [closed]

I figured serverfault might be a better fit for this question. I'm trying to send emails with PHP mail() function. PHP returns no errors and says the email has been accepted whether it sends or not. ...
0
votes
0answers
17 views

Set php-fpm slow log file permissions

I have a setup of php-fpm on CentOS 7 with each user having their own pool and log files. I want to make sure that each user is able to view their own log files. This works great for the PHP ...
1
vote
2answers
47 views

Deleting phpMyAdmin setup.php

My website log files show many requests looking for: /phpmyadmin/scripts/setup.php I have phpmyadmin on my website. Am I supposed to delete that setup.php file or just let them keep on requesting ...
0
votes
0answers
41 views

php curl does not execute url

Im writing a php cron script that needs to run a url After some database modifications the php script needs to execute an url $url = ...
1
vote
0answers
25 views

Couldn't bind LDAP using PHP [migrated]

I try to bind LDAP using PHP and I getting this error Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server on line 21 and the script on line 21 is ...
0
votes
0answers
32 views

TYPO3 installation and apache's DocumentRoot permissions

I just installed TYPO3 7.1.0 and managed to resolve all the issues (e.g. missing system libraries, php-open_basedir-issue and so on) during and after the installation. But there is one issue that ...
0
votes
2answers
53 views

How to let PHP connect to database by using UNIX socket (Joomla)

I'd like to have my PHP applications such as Joomla make use of the UNIX socket to connect to the local mysql database. I've already configured the php.ini with: mysqli.default_socket = ...
-1
votes
1answer
29 views

how to check if openvpn is active

i am runnning multiple openvpn instances each connected to different servers let's assume there are 3 and i am using a simple php script with this command system('openvpn config1'); system('openvpn ...
0
votes
0answers
32 views

“PEAR package PHP_Archive not installed” after upgrade php to 5.4.38 on centos6.6

if I havn't install php before, everything is OK. When I upgrade php from 5.4.36 to 5.4.38, it says PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be ...
-1
votes
0answers
25 views

Wich PHP Module to Install on CentOS to Execute Php Files

I have installed CentOS 5 (32 bit) on my VPS that contains basic php files with no database. I have installed PHP as well but the specific module needs to be installed. What module would be necessary ...
0
votes
1answer
30 views

virtual hosts with Apache 2.4 windows

Trying to upgrade the PHP version from 5.3 to 5.5 Environment: Windows 2012 Server, Apache 2.4, PHP 5.5, Upgrading from PHP 5.3 and Apache 2.2 for *MySQL and *Drupal I was able to get the ...
0
votes
0answers
13 views

How to get the real path on FS of an Apache2 Alias from php script?

All is in the question, no ? I searched for it and the only solution I found is to use apache mod_info to generate a file with apache config then read into it from php via the url, then parse it ...
0
votes
0answers
47 views

NGINX: add_before_body with .php

worker_processes 8; events { worker_connections 1024; } http { gzip off; root htdocs; add_before_body subsites/dropletlocal/library/global/func-global.class.php; #DOESN'T ...
0
votes
0answers
24 views

Apache mod_ssl StdEnvVars appear not to be set?

I have a CentOS 6.5 server running Apache 2.2.15 with mod_ssl and PHP 5.3.3. My problem is that PHP does not seem to recognize the HTTPS connection. I have the following in my ...
0
votes
2answers
21 views

Try to secure file system root with Apache2/Debian: all virtualhosts return 403 forbidden

I have Apache2 running on a Debian server. My virtualhost (one for now) are already configured in /etc/apache2/sites-available/default and are working fine: # /etc/apache2/sites-available/default ...
-2
votes
1answer
54 views

nginx SSL not working (404 error)

On a CentOS 6.6 box I have nginx set to serve two virtual hosts. One for SSL and one for basic HTTP. /etc/nginx/default.conf: server { listen 80 default_server; server_name _; #charset ...
0
votes
0answers
18 views

Per-pool php.ini with PHP-FPM without php_value workaround

I'd like to use separate php.ini files for each PHP-FPM pool. I've checked similar questions and they all say to use php_value, but that's a really dirty workaround and would require to manually (or ...
0
votes
1answer
21 views

Debugging inconsistent PHPUnit behaviour on different systems

This question has been originally asked in Stackoverflow but then I decided it might fit Serverfault better so I moved it here. I am trying to rearrange my Jenkins projects by moving some of them to ...
0
votes
0answers
14 views

lp printing crossdomain on local printer

How can files located on web server (.png or .pdf) be printed on local printer ? I have a DYMO LabelWriter 450 attached to a local POS sytem, running LAMP / Debian wheezy. Currently product labels ...
0
votes
1answer
29 views

IIS | Block execution of files in directory

I am dealing with user uploads via a PHP application. I want to secure the server so no exploits are available to the user, such as uploading a php shell and executing it. I have set it so all ...
0
votes
0answers
23 views

PHP error reporting without notices

I have been trying to set up php.ini file for error reporting. I wanted for my log file to show everything except notices. Referring to my researches, solution was to use this command: ...
1
vote
0answers
87 views

End of script output before headers: php5

I've inherited the sysadmin role on a server that's running a wordpress website on top of Apache 2.4/Debian. It almost works, but it is issuing "500 internal server error" from time to time. In my ...
-1
votes
2answers
19 views

Symlink in crontab, script not found [duplicate]

I'm running Debian testing and can't get a simple cron to run a symlinked PHP script. I've a php script in a subdirectory in my home folder /home/foobar/dir/script.php (which starts with the ...
0
votes
1answer
43 views

Public and Private keys incorrect for user

I've followed this tutorial (which worked for me on several VPS's) to configure a secure way to install and update themes and plugins in Wordpress. Basically: sudo adduser wp-user cd /var/www sudo ...
0
votes
0answers
32 views

secure cookie in Apache => php session resets on every page load

I have set secure cookie in Apache based on this tutorial. But php session resets on every page load. for example this sample code: <?php session_start(); echo session_id(); ?> displays ...
-1
votes
0answers
31 views

Web Socket server using up extreme amounts of RAM

I am using this web sockets server from google https://code.google.com/p/phpwebsocket/ The default maximum frame size is 100000 bytes. When I send a ~100kb message and issue a peak memory command I ...
-3
votes
0answers
55 views

Error while installing PostgreSQL PHP PDO driver, at running ./configure

I have found a tutorial, installing PostgreSQL's PDO driver on PHP. I couldn't do without a tutorial, because yum and other repo's couldn't find required pdo packages. It starts with wget ...
0
votes
0answers
22 views

Run php as CGI with Apache 2.4 on Debian returns not found error

I am trying to run php build from source as CGI. I've added this to apache config ScriptAlias /cgi-bin/ /usr/share/php54/bin/ AddHandler handle .php Action handle /cgi-bin/php-cgi virtual ...
-1
votes
0answers
22 views

openshift php script not able to write files.

I want to install contao on openshift, but the install script stops and the check script shows error on php writing files: http://spahn-pointout.rhcloud.com/check/ All php-fles have 600 and orders 700 ...
1
vote
1answer
96 views

Nginx and different versions of PHP FPM + PHP

Due to a better understanding of what I wish to achieve thanks to Mark and his previous answer, I am posting a (hopefully) clearer and slightly different variation of my previous question as that ...
0
votes
0answers
14 views

open_basedir in different apache vhosts

Just playing around with open_basedir settings in some Apache vhosts. I created two identical vhosts for testing with differing ServerNames. Only one of that vhosts contains the open_basedir ...
0
votes
0answers
28 views

AVG Antivirus causes slow PHP response time

My PHP website has suffered from really slow response times, and after a long research I finally found out the culprit is AVG Antivirus installed on the web server. The website is running on IIS 7.5 ...
2
votes
1answer
43 views

Limit the total memory usage of PHP-FPM

I'm running PHP-FPM on my Debian servers. My question is about the memory usage. I can only set the memory_limit inside PHP, and that shouldn't be too low for some requests. I also can only set the ...
0
votes
0answers
43 views

PHP session handler using redis not work

I was sets 3 servers : 192.168.7.147:6379 <-- redis server 192.168.7.162 <-- web server 1 (using phpredis, with local devdomain jttest.com ) 192.168.7.218 <-- web server 1 (using phpredis, ...
0
votes
0answers
26 views

PHPPGAdmin on Windows - authenticate users against Active Directory

I installed PHP, Apache 2.4, and PostgreSQL 9.4.1 on Windows machine which belongs to Windows domain. My pg_hba.conf: hostnossl all postgres 127.0.0.1/32 md5 hostnossl all all ...
-1
votes
1answer
128 views

Multiple versions of PHP through nginx

EDIT: For future reference Multiple versions of PHP through nginx Nginx and different versions of PHP FPM + PHP I am running Ubuntu 14.10 with a LEMP stack using PHP 5.5.12. I have a number of ...
-2
votes
1answer
72 views

Accidently removed all PHP dynamic libraries [closed]

I was trying to remove a startup module folder(ioncube) and accidently removed the PHP startup modules/extensions folder (debian) Now I'm getting this PHP Warning: PHP Startup: Unable to load ...
0
votes
2answers
46 views

What happens when you update PHP while your server is running?

I'm serving files with Apache and PHP-FPM via FCGI. When I run yum update on a live server, what happens when PHP gets updated? I can imagine three scenarios: php-fpm is stopped, then restarted ...
0
votes
1answer
34 views

WordPress permalinks are not working

I am having a problem with WordPress permalink redirects not working correctly. I was able to specify the permalink convension through settings interface. WordPress properly names hyperlink. However, ...
2
votes
0answers
35 views

Apache rewrite works under FreeBSD, not under CentOS

I have 5 production servers which are running FreeBSD 9.2, but we are planning on transitioning to CentOS. Because of this, I am attempting to set up some virtual machines to emulate our production ...
0
votes
0answers
22 views

What would cause /app/code/core/Mage/Checkout/Model/Type/Onepage.php to truncate? [closed]

This morning we started getting calls from customers stating that the checkout page was returning a white screen. We turned on errors in Magento and were greeted with the following error: Parse ...
0
votes
1answer
36 views

PHP scripts fail after adding .htaccess to password protect a dir

I added .htaccess and .htpasswd to a dir in order to password protect it. That part works. AuthType Basic AuthName "Password Protected Area" AuthUserFile /path/.htpasswd Require valid-user But ...
0
votes
1answer
20 views

Php fatal error loading 'Mail/mimeDecode' even with php-pear install

I have centos machine where I have install using yum install php-pear. So I tried this in my php page require_once 'Mail/RFC822.php'; require_once 'Mail/mimeDecode.php'; I get this error "Warning: ...
0
votes
4answers
437 views

Permissions set to 555. How can another user modify the files? [duplicate]

I run an Ubuntu 12.04 x64 VPS with Vesta, and a site in PHP. It has been hacked several times with injected code that looks like this: <?php ...
0
votes
0answers
78 views

SoapFault Can't Connect to Host

I am attempting to get the Woocommerce Fedex shipping plugin for Woothemes working against the error SoapFault Can't Connect to Host. The previous developer who tried it took out the barest details ...
2
votes
1answer
111 views

How to Upgrade to PHP 5.5 on Windows Server 2008

What is the proper way to upgrade from PHP Version 5.4.32 to PHP Version 5.5.22 on Windows? All that I can find is how to to install. PHP is already running on Windows Server 2008 R2 64 bit alongside ...
0
votes
0answers
46 views

php55-session fails to initialize, freebsd / ports

I have installed the extensions, base library and php55-session via ports https://forums.freebsd.org/threads/no-session-support-in-default-php-installation.12565/ but a basic session fails to ...