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

email goes to spam when email body contain a anchor tag [duplicate]

i am facing a problem about email sending with a module named phpmailer. the problem is that, when i am tying to send a email contain a anchor tag as like <a href="example.com" ...
-1
votes
0answers
25 views

Apache webserver configuration/access to only index.php

I'm trying to the below with Apache/2.4.6 (CentOS) webserver installed using yum. I've got my php pages served from /var/ww/html/project1 index.php is a symbolic link that points to a login page ...
1
vote
0answers
89 views

Why do I get an OpenSSL Error when connecting PHPMyAdmin through SSL?

I'm running PHP 5.6.11 on Apache 2.2 with OpenSSL 1.0.1 on Ubuntu 12. I've sucessfully setup SSL in Apache and MySQL. Now I want to set up a PHPMyAdmin and connect it through SSL. I don't really need ...
0
votes
1answer
83 views

Can't connect to mysql using ssl with compiled php [closed]

I have been bashing my head against a wall for a couple of days now. I just cant figure it out. I Run ubuntu 12 with plesk 12 and apache 2.2. I have tried compiled PHP 5.6.10 and PHP 5.6.11 with ...
7
votes
8answers
610 views

Multi-site hosting - important vulnerability being missed to secure sites from each other?

EDIT #2 July 23, 2015: Looking for a new answer that identifies an important security item missed in the below setup or can give reason to believe everything's covered. EDIT #3 July 29, 2015: I'm ...
1
vote
1answer
37 views

Issue with local php fopen scripts returning 404 on CentOS

I'm having some trouble today with php scripts running on our server which use file_get_contents or similar fopen functions. I think this is an openssl or firewall error but I'm quite new to server ...
-1
votes
0answers
15 views

Schannel Fatal Alert 48 from failed LDAP connection over TLS, but Domain computers only [duplicate]

So I am setting up a service using PHP and it's LDAP functions to edit AD user accounts. I want to change account passwords and that requires an encrypted connection, so I use TLS. Now here's where ...
0
votes
0answers
27 views

php.d/*.ini files loading for root but not other users (CLI)

Using PHP from the commandline, as root, everything in the php.d/ directory is loaded as expected: root@tlsv2-eepweb-01:/home/web>php --ini Configuration File (php.ini) Path: /etc Loaded ...
0
votes
0answers
24 views

Using PostgreSQL at web host, editing pg_hba.conf

I have a domain at HelioHost.org, where I want to connect to a PostgreSQL server, which they supposedly support. But I get the following error message when looking at my PHP files in Firefox: ...
0
votes
0answers
26 views

Can you set up a reverse proxy to forward requests based on request content and/or parameters?

I'm trying to set up a reverse proxy that forwards requests to different servers based on content in the body of the request itself. For example, if the request has a parameter 'type' = 'A', I'd like ...
-5
votes
1answer
31 views

File not found when using PHP [closed]

Problem: PHP is not working right. My html file asks for a name and then calls the PHP will display a "Hello" message. What is happening is on the htm page I am putting in my name and hit go then ...
3
votes
0answers
44 views

LDAP over TLS fails to connect, Schannel Alert 48

I am trying to use PHP to edit users in active directory through LDAP. My test machine is using a simple WAMP setup and is NOT connected to the windows domain. This machine can connect to LDAP on the ...
0
votes
1answer
45 views

unable to find driver - lamp debian

This is my php sample script: <?php try{ $db=new PDO('mysql:dbname=_mydb;host=localhost', 'root', 'xxxxxx'); }catch(PDOException $e) { echo "Error: ".$e->getMessage(); } ?> And I ...
1
vote
1answer
18 views

Debian, kill java by it's jar name?

Okay, I am going to be running two java application on the same VPS one will be running nearly all the time. The other one will not need to be. I am wondering if there is away to kill java based on ...
0
votes
0answers
15 views

PHP extension wont load after installing MPM-ITK

I installed Phalcon on my dedicated server and everything was perfectly fine untill I installed MPM-ITK to host multiple sites with multiple users. After installing MPM-ITK phalcon is only loaded in ...
0
votes
1answer
47 views

php-fpm and Nginx dynamic environment variable

FPM configration stats that you can retrieve variables from your current environment. However, on ubuntu using Nginx and PHP-FPM, I can not find a way to retrieve the variable value from the ...
0
votes
0answers
21 views

rewrite nginx 2 parameters

server { listen 127.0.0.1:80; server_name ap5 www.ap5; root home/ap5/public_html; index index.php index.html; log_not_found off; access_log logs/ap5-access.log; error_log logs/error.log error; ...
1
vote
1answer
38 views

php slowlog causing ptrace error in docker container

I have an AWS Linux host machine running a centos 7 docker container with 5.5.25 and php-fpm running inside it. Php is exposed outside of the docker container over port 9000 and is serving requests to ...
1
vote
1answer
22 views

Webserver | IIS | Configuring to not run certain files

I currently have a webserver running Windows Server 2012 which is running IIS as its webserver and using PHP. Lets assume the a user is able to upload a trojan onto my server, either through a ...
0
votes
1answer
62 views

Postfix on CentOS 6.6 is overwriting my return-path header?

I'm dealing with this problem on my CentOS 6.6 server: when I send a mail with PHP/phpBB (mail() function), Postfix overwrites the return path with apache@servername. The issue is also expained in ...
0
votes
1answer
45 views

nginx reverse http proxy not caching php-generated images

I'm testing creating a cache in nginx and have it working great under both directories I have set up except the following: When I try to cache a php-generated image, it simply acts as a proxy to my ...
-2
votes
1answer
71 views

how to deploy Laravel 5 app on ubuntu pc for production?

i want to deploy a laravel 5 app on my ubuntu pc having php,mysql,apache,composer installed. one way is to use php artisan serve but i think it's not the best way to do that because it can only ...
-2
votes
0answers
40 views

How to enable GSS-Negotiate?

Please tell me how to enable the GSS-Negotiate in Curl OS Debian 8? The current build such: curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1k zlib/1.2.8 libidn/1.29 libssh2/1.4.3 ...
0
votes
0answers
46 views

Upgrade SQLite Library for php 5.4

My php version is 5.4 This is what I get in phpinfo pdo_sqlite PDO Driver for SQLite 3.x enabled SQLite Library 3.6.20 I really need to update this driver. On PHP 5.3 you could do this with ...
-2
votes
0answers
18 views

restore database in mysql without using query

Recently I formatted my computer. Unfortunately I forgot to get backups of my MySQL databases. But I have my previous xampp folder with me. To restore my previous database i copied my previous ...
-1
votes
0answers
11 views

Apache can't find QueXF in my installation

I am interested in installing QueXF on Ubuntu (Desktop, sadly) 15.04 64-bit. I followed these instructions, except with the newest versions of QueXF and its companions. I got to the point where I was ...
0
votes
0answers
4 views

read from memcache in Yii when put was from node [migrated]

We have a Yii application. And we use memcache. In our system node.js writes to cache and php reads from cache. But I get the following error in php: MemcachePool::get(): Failed to uncompress data ...
2
votes
1answer
79 views

Is it possible to connect to MySQL from PHP using the old password encryption protocol?

I am working on a front-end project with a legacy system. I have to access a MySQL 5.6.25 database, which is still using the old pre-4.1 password encryption protocol. In particular I have to write a ...
2
votes
1answer
71 views

Php's shell_exec() and apache [closed]

I'm running a ZMQ 'push' interface via Ratche on an Apache server, which works very well on the command line, interacting with my server exactly the way I'd like. Here's the code //script1.php ...
0
votes
1answer
59 views

Install memcache php ext on php 5.6

I have php 5.6.6 installed on Amazon Linux. I want to install memcache extension (not memcached server, we use Elasticache). I try # yum install php-pecl-memcache.x86_64 And get the following ...
0
votes
1answer
38 views

Nginx rewrite downloads php instead of running it

I have the following code to redirect users visiting login.php to another page: http { .... geo $bad_user { default 0; 1.2.3.4/32 1; 4.3.2.1/32 1; } server { .... location = /login.php { if ...
0
votes
1answer
21 views

Debug slow “git pull” operation executed by the Local System account on a Windows Server

On a Windows server, which runs Apache and PHP, the webserver executes a git pull through a PHP script. This is part of a deployment process. When the Apache2 service runs under the Local System ...
0
votes
0answers
8 views

php5-embed does not load extensions

While setting up php on my Ubuntu server (using php5-embed under uwsgi/nginx), I noticed curl.so was not being loaded. The file /etc/php5/embed/conf.d/20-curl.ini exists and contains ...
0
votes
1answer
17 views

Which Zend Server to install on CentOS having PHP 5.3.3

I have two linux servers CentOS 6.5 CentOS 6.6 I have PHP 5.3.3 on these servers Which version of Zend Server should I install it to these servers?
0
votes
1answer
67 views

Installing php 5.5+ on Centos 6 alongside 5.3

How can I install PHP 5.5+ alongside php 5.3 (or 5.4 with the EPEL repository) on a Centos 6 server? I don't want to remove or supersede the default version, but I would like to have both versions ...
0
votes
2answers
97 views

How can I check who created a file on server?

Looking through server logs I've noticed some mailicious PHP files hidden among WP and Joomla folders and I'm wondering how they got on the server. Is there a way to review that? It's a shared hosting ...
0
votes
0answers
21 views

Apache SSO (mod_sspi)

I am trying to implement an auto login function into my mediawiki by using their windows credentials. I am using Apache Server (V2.2). I have implemented the Auth remoteuser extension and has ...
0
votes
0answers
20 views

How can I su -l user -p password from a scripting language running by apache server? [duplicate]

I ahve been trying to run crontab by a PHP script that is run by my apache web server. The user is apache and I have found out by running shell_exec that apache cannot run crontab: $cmd='crontab ...
0
votes
0answers
37 views

nginx downloads .php files - error configured

I'm trying to follow this tutorial in order to create an amazon machine with nginx and php: http://stale.coffee/ec2-micro-instance-adventure-nginx-php-mysql.html All good, I opted to use ...
0
votes
1answer
130 views

how to remove .php extension using htaccess on godaddy linux hosting

How to remove .php extension using htaccess file. I have tried many codes (which I found on internet but not got success. An Internal server error is regularly showing. I am using Godaddy Linux ...
1
vote
2answers
88 views

Can't get apache working after installing nginx & hhvm

I had Apache2 running on my local ubuntu machine and I installed nginx & hhvm on my local for debugging purposes by following this tutorial. I would now like to switch back to Apache2 as I had it ...
0
votes
0answers
17 views

How do I set permissions on directory(folder) on IIS 6.0?

I am trying to set permissions on uploads folder. I have two projects - an original project and a pilot project. I am trying to upload images from php code. It works for me for the original project ...
0
votes
3answers
27 views

how to keep file and folder permissions from changing

I have a directory of files and folders that are added and removed and the permissions that I had set keep changing. How can I permanently keep the permissions on a specific path so that no matter ...
0
votes
0answers
41 views

IIS 7.5 - PHP environment variables at the site-level

I have two versions of the same application (demo & staging) running on the same IIS server. The application relies on an environment variable via getenv("APP_ENV") to set configuration ...
0
votes
0answers
22 views

Nginx User Directories

I am trying to configure nginx so that when going to http://example.com/~user/ it will load files from the /home/~user/www/ directory. I have found a script that seems to work for .html files but ...
0
votes
1answer
21 views

PHP 502 Server Error: Problems with code or server?

Not sure if this is the right forum, but I'm hoping someone can help me. We had a web app running on our web server for a while now. Suddenly it stopped working and displays a 502 error - Web server ...
0
votes
1answer
29 views

RHEL and PHP versions

RHEL 7.1 ships with PHP 5.4 and that version is going out of support soon. Based on historical trends, will RHEL upgrade to a new major version of PHP? UPDATE RHEL 7.1 - PHP 5.4.16 RHEL 7.0 - PHP ...
2
votes
1answer
58 views

Reading 65k rows hangs PHP/MySQL

I am developing a PHP application that processes IP adresses. I am working with mysql tables containing up to 4 billion rows. I have a script that currently needs to fetch 65536 adresses from this ...
2
votes
1answer
28 views

PHP/FastCgi - Which is the threshold over which to use nginx instead of apache

I'm a PHP developer, I have always developed on a LAMP environment and it's all gone well 'til now. At the moment, I am developing a PHP web application, still on apache and without the use of any ...
0
votes
1answer
19 views

Block/Prevent Adminer - Apache [duplicate]

I found out that if someone was able to hack any FTP account on my server and upload Adminer they could alter the database. I tried Google'ing a way to block or prevent Adminer from working, but got ...