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
1answer
9 views

Can't send email to addresses from my own domain

I have a site hosted on a LAMP ec2 instance through AWS with a domain through GoDaddy. I'm trying to get a php mail script working and have discovered that setting the receiver email to any external ...
0
votes
0answers
9 views

Authorization Required! – 401

We have weird problem and we couldn’t figure out what causes this problem. Randomly, some of our visitors get the error: Authorization Required! – 401. This server could not verify that you are ...
0
votes
0answers
2 views

PHP Manger load super slow in IIS Manager

I have the PHP Manager set up and installed on my Windows Server 2012 box, installed through the WebPI. In the past week or so though, it take a very long time to load, and I cannot seem to figure out ...
0
votes
0answers
8 views

Ubuntu 14.04 | Docker: security implications in run NginX in a container

I was surfing around Docker Hub to find the NginX built-in image and i noticed the example commands to run NginX as web server in a container. I wonder if this way, suggested on Docker Hub, to load ...
0
votes
0answers
9 views

Issue with Importing OSM file in Nominatim with WHM cPanel

We are having problem with the installation of Nominatim with OSM database. We have tried all sort of things that we found on web, still facing the problem. To give you our dedicated server details: ...
0
votes
1answer
15 views

504 Gateway Time-out with PHP on nginx

I am trying to move a PHP Laravel application from my development computer running apache to a server running nginx. I have configured the database connection, and my Laravel app (mostly) responds ...
0
votes
0answers
7 views

Migrating a WordPress site has broken UTF8 encoding [migrated]

I am trying to migrate a WordPress site from one server to another, but on the new server I'm getting incorrect symbols in place of UTF8 (I assume) characters. I dumped the database using mysqldump: ...
0
votes
1answer
21 views

Debian server is showing PHP code instead of interpreting it

I was told on stackoverflow to post this question here: Scroll down to see result of things I've done based on suggestions I am setting up my first project using Vagrant. I chose the following ...
1
vote
0answers
18 views

Apache authentication with PHP file

Is it possible to have authentication in Apache (or for example Nginx/HAProxy/etc) with a PHP file? What I want is the following: User visits a portal (index.php). Apache will look if index.php ...
-2
votes
0answers
9 views

add did number in call center agent console elastix [on hold]

How can i add a DID number during call in agent console above is the queue log during call -- Registered SIP '2000' at 192.168.1.87:63752 -- Accepting call from '065730000' to '5114780' on ...
-1
votes
0answers
16 views

Can i run the two cron jobs for two php files each after 2 minutes difference

I have two files in my project.One file is sending the data via post method in second php file.. I want to run both files each 2 minutes difference. first file take the current data at run time and ...
0
votes
0answers
10 views

Warning: session_start(): open(/tmp/sess_b825aec484a83d8c0edb0e08db897ec1, O_RDWR) failed: Disk quota exceeded (122) [on hold]

I am getting this warning of disk quota on my website. I have searched a lot. Every where they say its due to the insufficient space. I checked through cpanel, the total space allotted is showing 40 ...
0
votes
0answers
7 views

PHP module loading fails when calling from client

I have a php file that inserts information into a mysql database on my server. Running the php file form the shell causes no problems and the desired information gets written into the correct table. ...
-1
votes
0answers
18 views

Cant install mongo into PHP (XAMPP, Windows) [on hold]

I'm sitting on it few days and i have no idea what to do next. Since topic was marked as not good for stack overflow and i was sent to serverfault, i'm writing here :) I'm using XAMPP on Windows. ...
1
vote
0answers
23 views

Apache downloading PHP files instead of rendering them after uddate form php 5.3.3 to 5.4

I have some scripts that need to use a newer version of PHP, Im running Debian 6 which has PHP 5.3.3 support, I found I could install php 5.4 using https://www.dotdeb.org/instructions/ packages. This ...
0
votes
0answers
35 views

What is my nginx + php server bottleneck?

I am running some siege tests on my nginx server. The bottleneck doesn't seem to be cpu or memory so what is it? I try to do this on my macbook: sudo siege -t 10s -c 500 server_ip/test.php The ...
0
votes
0answers
18 views

Unable to install php-mongo extension

i'm trying to install the mongo.so extension but it fails. According to PHP Mongo Installation manual, i should run : sudo pecl install mongo tho i get this error : downloading ...
0
votes
0answers
16 views

ERROR 500 - Internal server error on PHP Sites

I am running IIS7.5 on Windows Server 2008 R2 SP1. Over a month ago I did the generic installation of PHP (v5.5.11), MySQL and the phpMyAdmin interface and it all worked great. The other day I started ...
-3
votes
1answer
30 views

Run Python and Php under same server

I am trying to run python on main domain and a wordpress blog in sub-directory. Is it possible to do so? Currently the they are running good in sub-domains i.e http://main-domain.com and ...
0
votes
0answers
15 views

Squirrel Mail - VAdmin Plugin - GDBM Error

I've got 'gdbm' installed on the server, Squirrel mail is installed and working, i'm trying to install the VAdmin plugin but keep getting this error; ERROR: Vadmin plugin requires dba handler "gdbm" ...
0
votes
0answers
14 views

A script to start live webcam streaming via Red5 [closed]

I have a live webcam streaming app that has been using Red5 server and rtmp protocol. When I test oflaDemo (www.mydomain:5080/demos/publisher.html) I can see my streaming, so rtmp is ok. But, what is ...
0
votes
0answers
15 views

This code worked in PHP versions before 5.4 (current) - now it doesn't work [closed]

I finally managed to get error logging turned on and am going through my PHP errors in the move up to version 5.4. I know enough PHP to be dangerous, but not enough to totally understand the ...
-1
votes
0answers
9 views

not able to call html form submit to form action through php in godaddy [closed]

define('DB_NAME', 'abhis01_'); define('DB_USER', 'XXX'); define('DB_PASS', 'XXX'); define('DB_HOST', '182.50.133.88');
1
vote
0answers
5 views

Anonymous Authentication Identity Win 2012 r2 security

I have a web app that uses PHP on the back-end, and the PHP executes powershell scripts to reset AD passwords through system calls. EX: shell_exec("powershell.exe -file ...
1
vote
1answer
35 views

Allowed memory size of (whatever) bytes exhausted - Windows PHP

I have been trying to find advice on troubleshooting this issue for while but have been unable to find anything which relates to my situation. I am running PHP 5.6.0 on a brand new Windows 2012 R2 ...
2
votes
1answer
17 views

Launch file after PHP service restart/reload

Is it possible to execute a file after a regular PHP service restart ? service php5 restart I know that i can accomplish this like with service php restart; php -f /path/to/file.php but i don't ...
0
votes
1answer
34 views

What functions are preferred to be disabled to increase webserver security? [on hold]

I'm looking into securing my webserver additionally and thinking I could disable certain PHP functions to prevent potential issues. Could someone share some tips regarding this or guide me in right ...
2
votes
1answer
22 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
16 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
9 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
17 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
9 views

ispconfig PHP not parsing on apache2 virtual host [closed]

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
20 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
17 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
1answer
14 views

Including PageAttachment Extension MediaWiki [on hold]

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

A hacker changed my hosting password [closed]

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

install php with nginx [closed]

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 ...
-1
votes
0answers
18 views

Nginx with Python and Wordpress same server [duplicate]

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
28 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
39 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 ...
-1
votes
0answers
19 views

MultiCraft ascii codec error [closed]

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
18 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
16 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
30 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 ...
0
votes
0answers
21 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
36 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
41 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 ...
0
votes
1answer
39 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) ...
3
votes
1answer
46 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: ...