PHP is a widely-used general-purpose scripting language that is especially suited for Web development. The current version is 5.3.3, released on July 22, 2010.

learn more… | top users | synonyms

0
votes
2answers
32 views

Sending mails and narrowing what script does it

I'm using a very old Ubuntu server that was some time ago a mail server which was infected. Sadly there is a running web page on that server. Some script/page/malware is trying to send a lot of spam - ...
0
votes
1answer
57 views

Difference between connecting to 127.0.0.1 and server ip

I am brand new to php, databases, and linux and had a problem where I could not connect to mysql databse with the php mysql_connection function. When I used the ip address of my VM I kepy getting a ...
0
votes
1answer
29 views

Mozilla Thunderbird HTTP Authentication

I set up Mozilla Thunderbird on Windows 7 Enterprise, and I set my main page to my own site. (Which requires HTTP/1.1 authentication). Before I even have an HTTP authentication window (displayed for ...
0
votes
0answers
11 views

Error while trying to create an album in MySQL in Trovebox

When trying to create a new album in TroveBox I just get an simple error message in the ui notifying me that it failed. No information is in logs from Apache and MySQL. The current user can write in ...
0
votes
1answer
32 views

Unable to start bash script with shell_exec

I've been googling and trying to solve this problem with my php script for a few days now and I'm hoping someone here can see the problem I'm missing in getting my php script to kick off my bash ...
0
votes
1answer
25 views

How to navigate PHP-based pagination with WGET?

I'm trying to come up with a list of possible names for our next baby boy and have been looking through the site IndiaParenting. Each name on the site has a detail page at a URL like this one ...
0
votes
0answers
22 views

Plupload not displaying in Trovebox's upload ui

After finally having gotten Trovebox installed and configured (self hosting) I've hit a wall. On the upload ui Plupload (the image uploading 'widget') is not showing (see image below). As well the ...
0
votes
2answers
128 views

Trovebox (OpenPhoto) setup hangs/fails at final step 3

I've been following the install instructions found here about how to install and configure Trovebox on a Ubuntu server running Apache: Ubuntu 14.04 LTS Apache: 2.4.7 MySQL: 5.5.37 PHP: 5.5.9 ...
1
vote
2answers
177 views

PHP can't connect to PostgreSQL with “permission denied” error with SELinux

My PHP app can connect when I turn off SELinux, but not with it on. setenforce 0; curl -I http://domain.com; setenforce 1 Yields no errors in /var/log/httpd/error_log. However, if I have it on, I ...
0
votes
0answers
39 views

I'm getting 500 server error in when trying to send ajax to codigniter+NGINX in production in ec2

When Im in my local environment when I send with ajax rest post http://localhost:8080/index.php/api/get_user I'm getting an answer from the server (Codeigniter + NGINX). But when I do it with ...
0
votes
0answers
55 views

install ImageMagic library to php

When i try to sudo pecl install imagick i get this message: Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. ERROR: `phpize' failed And sudo ...
-1
votes
1answer
37 views

OSX Mavericks - Upgraded PHP not loading

I was wondering if someone could help me. Im running mavericks OSX ... When i type php -v i get the following: PHP 5.4.24 I needed to upgrade the PHP version, so i followed an online guide and ...
0
votes
2answers
51 views

phpMyAdmin cannot login - keeps asking for credentials

I have phpmyadmin on my Arch linux box, it is running, so is apache with php and mysql. When I go to http://localhost/phpmyadmin/, it shows the usual login prompt. However, no matter what I enter, ...
0
votes
3answers
146 views

how to change path of php ini windows

I've downloaded php, addeded it to my path and im trying to enabled openssl php --ini tells me that configuration file is c:\windows which there was nothing there, I dont want to copy php into ...
1
vote
0answers
98 views

Setting up rutorrent on 10.9 Mavericks

I'm getting the following error when loading rutorrent that's hosted on my 2010 Intel Core Duo 2 Mac Mini: [23.06.2014 11:31:20] Bad response from server: (404 [error,list]) <!DOCTYPE HTML PUBLIC ...
0
votes
1answer
43 views

Can't login to local phpmyadmin

Hy, I've just installed MySQL and PHPMyadmin on my OS X Maverics, following this link: http://www.coolestguidesontheplanet.com/downtown/get-apache-mysql-php-and-phpmyadmin-working-osx-109-mavericks ...
0
votes
0answers
35 views

Apache will not show index pages

I have just set up my brand new raspberry pi with Rasbian-Wheezy and a clean install of apache and php. I got the "it works" page, and then put my website in place and everything was working, but at ...
0
votes
4answers
72 views

Website not showing errors, just 500 page

I have moved some code from development to production and it was not working so I am trying to debug but for the life of me I cannot get access to the errors to find out what is wrong. I have tried ...
0
votes
1answer
51 views

Why is PHP not running

I have ubuntu 14.04 desktop, I have apache2 php5 and all those packages installed. Yet PHP scripts won't run.. My site config: <VirtualHost *:80> ServerAdmin seven@localhost DocumentRoot ...
0
votes
1answer
69 views

FFMPEG not working after upgrade php version from 5.2 to 5.3.28

After upgrade php version DL() function is not working. I have tried with extension=extension.so in php.ini its working but below command ffmpeg -y -i input.m4v -vcodec libx264 -vpre ipod640 -bt 50k ...
-2
votes
1answer
47 views

Secure way to manage mysql through web browser

I would like to offer clients access to their own mySQL database. Is there a secure way of doing this? Is there any way to secure phpmyadmin without using a htaccess password or restricting it to ...
0
votes
0answers
51 views

Phpmyadmin hide_db hides all databases

I want to hide the information_schema database from users as it has caused confusion. I have the following in config.inc.php: $cfg['Servers'][$i]['extension'] = 'mysqli'; /* Optional: User for ...
0
votes
2answers
45 views

Mounted HDD not having enough permissions from Apache/PHP

Piwigo gallery, on apache and php. The root system is a RAID 128GB. /var/www/html is on the root file system. Mounted the 320GB hdd to /var/www/html/320 using defaults, it's an ext4 fs. Put a ...
0
votes
0answers
39 views

Unable to print A6 on Canon LBP 2900B php

I am working on web application. In which I have to print an invoice on A6 paper. To better control priniting I used TCPDF. In TCPDF options I have setup it to print A6. Now my TCPDF is working fine. ...
1
vote
0answers
166 views

Apache2 + Php + Pthreads HowTos

I'm running Ubuntu 14.04 LTS 64 bit. What I would really love to do is sudo apt-get install libapache2-mod-php5 but compile PHP with --enable-maintainer-zts so I could later install pthreads with pecl ...
0
votes
1answer
63 views

Cron error “missing url”

Hope this is the correct place to post this. I am setting up a cron job to refresh a twitter feed. I want to overwrite the file each time the cron job executes. My current command is: /usr/bin/wget ...
0
votes
0answers
11 views

debugger tends to block server when listening until restarting phpStorm

I follwed the instructions from this post on how to set up xdebug with php storm. It works great but the problem is that it works for the first request only. ie Let's say I turn the listener on. I ...
0
votes
0answers
538 views

ownCloud WebDAV interface seems to be broken

I've been trying to host ownCloud on my server but everytime I try to it tells me this : Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to ...
5
votes
1answer
24 views

PHP version for super user is fcgi instead of cli

I have a strange problem with PHP version when using CLI. When I login as root and use: php -v I get an info that php is running in CLI mode which is fine, but as soon as I use sudo php -v I get ...
0
votes
0answers
16 views

httperrors for Linux

I'm here because the Google has failed to get me what I need. I just recently graduated from university, and I'm working on a website. Back in college I used the school's web server for my projects, ...
0
votes
0answers
21 views

Notepad++ auto format php code [duplicate]

In VisualStudio, i hit the keys CTRL+E, D and my C# code gets formatted. Is there a way to do this in notepad++ for PHP code?
0
votes
1answer
35 views

Unable to run localhost in windows [closed]

I want to run php code on my localhost. For the purpose,I just downloaded the wamp server for windows 8 and installed. But when I am trying to open local host , I am directed to the IIS windows. I ...
0
votes
0answers
179 views

xampp MySQL app not running (win8)

I am using xampp for few month. But facing and error for 2 days and MySQL app isn't running. I reinstalled xampp and it was working fine, but when I restarted, it stopped working again. Here are error ...
0
votes
0answers
34 views

Centos 6 rsyslog missing audit.log

I'm trying to get to work the wkhtmltopdf on apache, php 5.5, centos 6 64bit. The error is "sh: /usr/local/bin/wkhtmltopdf: Permission denied" so my thoughts were selinux. I tried to follow steps ...
1
vote
1answer
65 views

Setting up email for domain on a VPS

I have my site set up and functioning on a vps. The domain is on godaddy. The nameservers point at godaddy then i have set the a record to point at the IP of the VPS and its working fine. I now need ...
0
votes
0answers
27 views

How to wget range that fills a PHP URL

I try to wget from 1 to 724.. When I try this line in the terminal : wget http://exemple.fr/resultats.php?ID={1..725}.html everything works fine except that the pages downloaded are no filled with ...
-2
votes
1answer
30 views

Typical cases where I might use exceptions in programming [closed]

Can someone please help me with something that seems simple but I've never really got my head round. Exceptions! I know how to write an exception but countless code samples with variables foo and bar ...
0
votes
2answers
114 views

Open local .php file as normal HTML with Firefox

I always preview HTML files on my local Firefox before uploading them to production website. Similarly, I have a ".php" file which is 99% HTML and 1% PHP, and I would like to preview it on Firefox. ...
0
votes
3answers
53 views

Building PHP For MacOS

I was using XAMPP and decided to uninstall it and use MacOS' in-built apache and php modules. But while uninstalling XAMPP I deleted /usr/bin/php files and other PHP-CLI files accidentally. And I ...
0
votes
0answers
53 views

Compile PHP by source. Stuck at phar.phar

I am trying to install PHP (Version - 5.5.11) by source since I need php installation with enable-debug and enable-maintainer-zts options. Downloaded the package ./configure --enable-maintainer-zts ...
1
vote
0answers
40 views

Why is connection hanging on 80 or 443?

So I'm using Chef and Vagrant to provision a LAMP stack on a box which I have done before to great success, when along comes this problem. Details as follows: So netstat says we are good tcp ...
1
vote
1answer
52 views

Can't connect to MySQL database after moving to local [closed]

I can't connect my website to the mySQL database installed on the same box. I've had a website running on a shared host and decided to move it local. Installed Ubuntu Server - check. Installed LAMP ...
0
votes
2answers
33 views

Cache a single PHP file with parameters

So I build a PHP script that receive some data and provides it like an API. The data doesn't changes much, but the script runs every time it's requested. Is there a way to tell Apache to cache the ...
0
votes
0answers
30 views

vhost running on local machine only shows root directory correctly

I am using Ubuntu14.04 and I have created a virtual host on apache2. I have my Laravel project trying to run on virtual host in apache2. I set it on /etc/hosts 127.0.1.1 mw Then since I have PHP ...
0
votes
0answers
84 views

Configuring email in PHP for Elgg using postfix

I am trying to setup PHP for running Elgg. I have PHP 5.5 installed in a Ubuntu 14.04 VirtualBox VM. I need to complete the following requirement (elgg requirements page) : Proper configuration and ...
1
vote
1answer
111 views

How to execute a php file from a bash file?

My goal is to make a script that I can execute through a cron job. The script needs to find several killstat.php files in multiple directories and execute them. This is what I have so far: ...
2
votes
1answer
107 views

Adding sudoer for all but root

Here is the base of my problem: I would like to add sudo rights to a user, but not to use it as root for security reasons. I have a PHP script needing to run a command (drush) through exec(). ...
0
votes
2answers
100 views

Upgrade Failure in FreePBX Installation

I'm building FreePBX 2.11.0.25 from source over Asterisk asterisk-11.9.0 (also built from source) on a Ubuntu 14.04 64-bit server installed on a VMWare VM. During installation I had an error that ...
0
votes
3answers
39 views

Let user '_www' execute binary in /usr/local/bin

Total *nix n00b, so I apologize in advance. I installed ffmpeg through homebrew, now I want to call it from a PHP script with shell_exec(), e.g. ffmpeg -v. But nothing is happening. From Terminal it ...
0
votes
2answers
93 views

Apache2/PHP no longer logging errors after deleting error.log

I deleted error.log file from my logs directory. As root, I used vi to create error.log file again. root:root owns the file, permissions are -rw-r--r--. Same ownership and permissions as access.log. ...