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

1
vote
1answer
13 views

PHP/mail is sending emails to wrong mail server

Recently we have switched our email Exchange server from Intermedia to the Office 365. After that change web server (LAMP) is still sending emails to Intermedia. I have check dig MX for our domain and ...
0
votes
0answers
2 views

PHP PDO Drivers to access MSSQL DB from OSX 10.6 (snow leopard)

I've seen many a post but none make it clear or provide proof that MSSQL drivers are supported on OSX. So has anyone had any success in connecting to SQL Server using PDO Drivers? If so it would be ...
-1
votes
0answers
7 views

Difference of --enable and --with flag on PHP build from source

I am trying to build PHP from source bug it seems that in an example of .configure I see to flags which is --with and --enable what are the difference of these two flags?
0
votes
0answers
11 views

Combining .htaccess with http.conf to set https and direct all routes to index.php

I'm sure this question has been asked before, and I have tried to understand many of the answers given, however none of them seem to work with my particular set up. If the question can be answered ...
0
votes
0answers
5 views

ispconfig PHP not parsing on apache2 virtual host [on hold]

I have trouble installing ispconfig 3 on my (L)Ubuntu 15.04. I can fully install ispconfig but I can't reach the website when viewing the virtual host of apache2. I can open ispconfig from ...
-2
votes
0answers
17 views

iptables shell command from php, does not apply fully?

I run a shell script from php. shell_exec("/abs_path_to/lorem.sh"); When I run the script in Terminal # sh "/abs_path_to/lorem.sh", it works. The script consists in iptables rules. I checked it is ...
-1
votes
1answer
11 views

PHP session error: Failed to write session data (files)

I have a problem that I cannot resolve. All PHP sessions are stored in the directory /var/lib/php5/sessions/ and session files are stored there. But completely randomly I see the following error: ...
-1
votes
0answers
5 views

Including PageAttachment Extension MediaWiki

I have an apache server, to run a localhost. I am trying to build-up MediaWiki. MediaWiki part was easy, but now I am trying to add an extension, PageAttachment. There is a configuration file, which I ...
-4
votes
0answers
27 views

A hacker changed my hosting password [on hold]

Im developing my own website from a template i bought from HTML5UP, my web is still under constructon, but it is uploaded to my server for testing. First suspicios things happend just after i bought ...
0
votes
0answers
10 views

install php with nginx [on hold]

I'm new to all things related to webservers. Until now, I used apache. But I want to give a try to nginx. So I decided to install it, alongside PHP. This are the steps I followed (I mention that I use ...
0
votes
0answers
14 views

Nginx with Python and Wordpress same server

I have a aplication with Python/Django running in www.mydomain.com. I want to create a blog with WordPress in the same server and I want my domain looks like this: www.mydomain.com/blog In nginx how ...
1
vote
1answer
17 views

install sql server driver on ubuntu

I want to connect to sql server database which is placed on a remote server while my php code has been installed on an ubuntu server. I found that it needs to install sqlsrv driver or mssql driver ...
-1
votes
0answers
32 views

I can only access my wordpress site using IP address but not with domain

I uploaded a fresh copy of the latest wordpress 4.2.3 and uploaded it to a domain folder in /home/abc.com/public_html/ using Kloxo-MR file manager. After setting up the wp-config file and setting up ...
0
votes
0answers
10 views

How to install a PHP - PECL extension in Webuzo Server - Installation steps [on hold]

I have a Webuzo Server, tried installing a php extension following the steps given here.. but couldnt http://www.softaculous.com/board/index.php?tid=6034&title=Help_me_instal_pecl_apn apt-get ...
-1
votes
0answers
18 views

MultiCraft ascii codec error [on hold]

Im trying to get minecraft working on this server, but im getting this error when trying to start a new minecraft server instance through the program. Starting daemon 07.24 23:17:37 INFO ...
1
vote
0answers
16 views

Environment variables for PHP applications

A PHP application requires me to set several environment variables with things like database credentials, SMTP server, etc. Examples of variables include: ...
0
votes
1answer
12 views

How to point domain/path to a different folders inside the DocumentRoot

I have Apache 2.4 installed on Windows Server 2008. This server is dedecated for one site only i.e. https://subdomain.example.com all my files that will be executed when a user reach ...
0
votes
0answers
8 views

dnsmasq, dynamically add addresses?

Is it possible, with dnsmasq, to dynamically add/remove addresses ? For instance, executing a script from php (it's maybe bad, but theorically, is it possible ?) to add: address=/altern.org/100.2.3.4 ...
1
vote
3answers
28 views

How do I replace self compiled packages (php, mysql, memcahed) with yum version in centos6.5

I have at least 5 development servers (dev, QA, staging) that have php and other packages compiled from source. I would like to remove all of them and update those servers with yum packages. If I can ...
-1
votes
0answers
29 views

User logged in can't access .php files [on hold]

I'm using a Web server with xampp. I wrote a .htaccess to block access to the folder where my php files are. However, when a user is logged in my website, I can't access the php files. Is there any ...
-1
votes
0answers
15 views

Safe way to access phpmyadmin on EC2 [on hold]

I have a website hosted on a xampp server on ec2. How can I grant permission for a specific user or IP to access phpmyadmin ?
0
votes
0answers
13 views

E: Unable to locate package php5-apcu

trying to install APCu on Ubuntu: apt-get install php5-apcu Getting an error: E: Unable to locate package php5-apcu Following someone's suggestion I added: deb http://packages.dotdeb.org ...
-1
votes
1answer
34 views

PHP/APACHE and MySQL SERVER Setup [duplicate]

I'm about to setup a server hosting MySQL, Apache/PHP, File Uploads, and probably CCTV Storage. Planned Personal Server Specifications: ASUS H97M-E INTEL i7-4790 2 x 4GB 1600MHz RAM ...
0
votes
1answer
32 views

After upgrade of NGINX and PHP-FPM, PHP stopped working and there is no error anywhere

PHP-FPM is running, NGINX is running. NGINX does read the socket for PHP-FPM. I stopped PHP-FPM and I got bad gateway error. However, nothing gets displayed. I have checked nginx/error.log and ...
-1
votes
1answer
35 views

PHP applications worked fine on Godaddy dedicated server (which failed), now don't work at all on shared Linux hosting [closed]

The drives on the dedicated server we had with Godaddy failed (according to them) and we ended up having to get shared Linux hosting for two sites we needed up ASAP. Godaddy copied all the files over, ...
0
votes
1answer
32 views

Installed new version of php but Apache still using the old version

I manually installed php 5.4 on Ubuntu 10.04. The old version was 5.3.2. Now if i check the php version it shows 5.4: max@ubuntu:/etc/php5$ php -v PHP 5.4.0 (cli) (built: Jul 21 2015 14:04:16) ...
0
votes
0answers
52 views

Upgrade PHP 5.5.x to 5.6.11 on windows 7 manually [closed]

I'm trying to upgrade my existing PHP 5.5.x to 5.6.11 on windows 7 manually. I'm not interested in XAMPP for now. PHP 5.5.x is currently installed and works fine locally on my machine i.e. ...
2
votes
0answers
29 views

Server “shows signs of being infected” - how to resolve email blacklisting

I help manage 178.32.51.182 and noticed we were getting bounced emails because of several blacklists those are: CBL FABELSOURCES Spamhaus ZEN so I checked the first blacklist here: ...
0
votes
0answers
3 views

Apache2.2-PHP include from root folder [migrated]

I currently learning HTML, JS and PHP all at the same time (cus why not?) And implementing the header.html in PHP is not so fun. It works on the main page or "index.php" by just adding: <?php ...
0
votes
1answer
37 views

Stop Apache from spawning 100's of processes

Context: I have a video game client that requests a php page from the server to process user logins. This happens in a loop (terrible) and is therefore making MANY requests, per client. I plan to fix ...
0
votes
1answer
20 views

Apache ForceType / SetHandler not responding as expected

I am trying to force apache to handle a file (or directory of files) as php regardless of file extension. The link to the file should be as follows, Http://mysitehere.info/sig2/name.png I have ...
-1
votes
1answer
18 views

Having issues installing Pecl Phar package - make failed

On Centos 6, php 5.5 I am trying to install the PHAR package with PECL. During the installation I get an "make failed" error: creating libtool appending configuration tag "CXX" to libtool configure: ...
1
vote
0answers
38 views

Install PHP7 from Remi repo

I installed PHP7 from Remi repo with sudo yum -y install httpd sudo yum -y install epel-release wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm ...
0
votes
2answers
39 views

Nginx. Config two sites on the same port

I'm trying to add a wikimedia site on my server, which already has another site (which doesn't use PHP) on it. I want to put it on a different folder like www.hostname.com/wiki but it would be ...
0
votes
0answers
28 views

How do I enable opcache php 5.6?

I added the zend_extension=opcache_location line to php.ini. However when I ran php -m it says that the Zend framework too new for the extension to run on. So I tried to download the latest one ...
0
votes
1answer
116 views

Yum: php55w-common conflicts with php-common-5.4

I am trying to install mysqli on a CentOS machine using yum install php-mysqlnd.x86_64 on the command line but I keep getting the message: Error: php55w-common conflicts with ...
-1
votes
1answer
14 views

`PHP Not Running` Error [on hold]

I've successfully completed installing a LAMP stack on my brand new CentOS 7 VPS setup. After that, I went on and started installing Wordpress. Everything went fine in the terminal but when I visited ...
0
votes
0answers
15 views

PHP allow_url_fopen seciurity risks

There is theory (among some admins) that allow_url_fopen will put your server at risk because you can include external scripts (prior to PHP 5.2.0). Since PHP 5.2 there is different option ...
3
votes
1answer
64 views

/usr/bin/host executed by hacked PHP script

Today I noticed unusual high request rate on Apache webserver and also quite high incoming network traffic. Upon checking Apache's mod_status page, I found the offending URLs to be from path ...
-2
votes
0answers
17 views

Ubuntu Server; Email from PHP stopped working

I currently have a VPS server running Ubuntu. I have used this server for a while and have was using the built in mail function for PHP. Now for reason, emails are no longer sent. According to PHP, ...
0
votes
1answer
51 views

Out of memory for Wordpress sites on cPanel Nginx Hybrid VPS

I have a cPanel Hybrid VPS below are the specs: CPU (16 Core Xeon) dedicated 4GB Guaranteed RAM (dedicated) 6GB Burstable RAM 1Gbps Port Speed Installed cPanel and NginxCP All sites on server ...
-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
24 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
79 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
71 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 ...
6
votes
7answers
485 views
+500

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. This is multi-site / shared ...
1
vote
1answer
36 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
20 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: ...