PHP is a server-side scripting language, used for building browser-based applications. This includes websites as well as programs that don't really need any form of interaction with the user.

learn more… | top users | synonyms (2)

4
votes
1answer
2k views

Nginx downloading PHP file only if .php is in the URL

I know this is a popular question but I haven't found anyone with my similar issue. I can serve PHP files as long as the .php extension is not in the url. For example: If I go to localhost I am ...
0
votes
1answer
126 views

Ubuntu 12.04 — php-config5 points to 5.3 instead 5.4

I have a problem installing a php extension (Phalcon framework) due to having upgraded from php 5.3 to 5.4 some time ago. I upgraded using ondrej-php5-precise repository. Everything is working ok and ...
0
votes
1answer
2k views

Apache doesn't load .php files

First, sorry for my English and asking something that it's quite answered all over the web. I've read a lot of post about this problem but I still can't find the solution. I'm a web developer who ...
1
vote
0answers
949 views

Apache Timeout (Problem loading page) on localhost

I am running a php script locally in my Firefox web browser. After exactly 300 seconds I get an error page. "Problem loading page. The connection has timed out. The server at localhost is taking too ...
0
votes
0answers
65 views

How to export Observium data?

Trying to figure out how to export the data from Observium to see the throughput of a network, and save it to a file. Any help would be great.
1
vote
1answer
845 views

Apache2 + Php + Pthreads HowTos

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 install pthreads. ...
0
votes
0answers
12 views

Qiime softwares not recognized by PHP. How to configure extentions for it?

I have a script in bash that calls some python functions installed from Qiime packge. I put a echo "end of bash script" only for control. If I call this bash script from terminal it works good. But ...
0
votes
1answer
27 views

Oxwell does not load graphics on webpage

Im running Ubuntu server 10.4.4 with lamp installed. I have setup Oxwell by creating a folder in /var/www/oxwell and unzipping contents. I have also chmod -R 777 /oxwell for testing. Opening a ...
0
votes
0answers
97 views

Global proxy for ubuntu

is there a way to setup a global proxy fro Ubuntu? For example, I have some php code which is an 'off the shelf' product ( I don't want to change the source code to this ), I have some php code which ...
0
votes
0answers
75 views

libmcrypt - How to compile and install from source in 14.04

How can I compile and install libmcrypt from source in 14.04 I used instructions to another version of ubuntu, and I have failed.
0
votes
1answer
796 views

php5-curl on upgraded ubuntu 14.04

I have a vps with ubuntu 14.04 installed ( was ungraded from 12.04 LTS ) and LAMP stack. the problem I have is I can't install php5-curl extension as it always gives me this error message : ...
0
votes
1answer
191 views

How to run php with Eclipse and XAMPP?

I'm using eclipse kepler on ubuntu 14.04, and I want to know how do I run a php project? I already installed the plugin in eclipse for php and when command run the project, the page does not load in ...
0
votes
1answer
434 views

php amqp error while running make

I'm trying to install php amqp according to this answer http://stackoverflow.com/a/9997263/2271028 but at the make command i see following: /bin/bash /var/www/rabbitmq-c/amqp-1.4.0/libtool ...
0
votes
0answers
685 views

MediaWiki Installation on 14.04

I have followed this guide https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu successfully down to the line mysql_secure_installation at which point it prompted me for a password, I ...
0
votes
1answer
129 views

best setup for lamp stack development

I currently have ubuntu 14.04 with lamp stack running in virtualbox under win 8.1. I use PhpStorm inside the virtualbox. Virtualbox is running fine except for some flickering and screen refresh issues ...
0
votes
1answer
168 views

php5, mysql, phpmyadmin not working in ubuntu14.04

I have already installed lampserver in ubuntu 14.04. when i try to run http://'127.0.0.1', it shows it works. but it does not work when i try to run http://'127.0.0.1'/test.php. I have already created ...
0
votes
0answers
360 views

Apache 2.4.7 - ProxyPassMatch overrides Require directive in <Directory>?

I have started the process of upgrading my servers from 12.04 to 14.04 this week, and I have run into all sorts of problems, most of which I have figured out. This one has me stumped though. I am ...
2
votes
0answers
105 views

404 not found error on apache2 [duplicate]

I have installed apache2, actual php version, mysql server and vsftp on my new Ubuntu server. I also installed wordpress and gave the user www-data all rights for /var/www/* and put it to 755. I ...
0
votes
1answer
174 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 ...
0
votes
2answers
179 views

my localhost default page welcome me on nginx

hi all wrt my last post, again i am getting frustrated by nginx server, i am trying to install laravel in my /var/www/project folder but when i delete my default HTML dir from my /var/www/html it ...
0
votes
1answer
126 views

How do I install WordPress.org?

I learnt recently that the WordPress software in the Software Centre is WordPress.com, I want WordPress.org as it's more feature-full. I have downloaded the zip file and extracted its contents but ...
0
votes
0answers
59 views

install php5-curl without upgrading php-cli

I am using imageantialias for php and php -r "var_dump(function_exists('imageantialias')); returns bool(true) I do have requirement for php5-curl, and if I install php5-curl using php5-curl (sudo ...
1
vote
0answers
277 views

PHP 5.1.6 on Ubuntu

I want to install PHP 5.1.6 on Ubuntu in order to work on legacy PHP application. How can I install PHP 5.1.6 on Ubuntu. I have tried to install 11.10 and followed many online resources to get it ...
0
votes
1answer
600 views

Change Folder Permissions and All Sub-Folders

I'm working on a PHP website at the moment and I'm doing a LOT of writing to files and directories. Whenever these files are made, they're automatically owned by Daemon and I have to go into Terminal ...
0
votes
2answers
913 views

ERROR 1064 (42000) creating table MySQL

I try to build my own website, and at my website I ask people to enter their name and write a little story. When they are done, they hit submit, and it sends the information to my database. I work ...
2
votes
1answer
55 views

Charset with driver for Microsoft-SQL

I have got a form on a PHP website on an Apache on an Ubuntu-Server, to write data in a Table of a Microsoft SQL-Server. The Charset of the Website is UTF-8 and the Charset of the SQL-Server is ...
0
votes
1answer
3k views

Install PHP5.3 on Ubuntu 14.4

How can I install PHP5.3 on my ubuntu 14.04 server? apt-cache showpkg php5 shows no 5.3 versions. I tried to install them using the example from this post (using 3.13 for my ubuntu version) but ...
0
votes
2answers
60 views

MOODLE slow on client side

Running kubuntu 14.04. MOODLE is very slow. I get server messages telling me I've timed out. However, on my VISTA antique MOODLE runs quite well. The MOODLE docs pages weren't much help.
0
votes
1answer
374 views

PHP - How to install php-curl without downgrading PHP version

I'm trying to install the php5-curl package, but I'm getting the dependency error: The following packages have unmet dependencies: php5-curl : Depends: phpapi-20090626 Depends: ...
0
votes
1answer
177 views

configure remote server's apache and php to locate a website [closed]

I need to locate website files to remote machine which runs CentOS with no graphical user interface. My machine runs ubuntu. Is there a way to check configuration of installed apache and php or how to ...
1
vote
1answer
2k views

Mongo Driver PHP - Can't install [sasl.h not found!]

I can't install mongo driver into my ubuntu development system. When I run the command sudo pecl install mongo I got this error: configure: error: sasl.h not found! ERROR: ...
0
votes
1answer
114 views

Postfix installed, by mail() in PHP not working

I have a new server. Just installed Postfix (apt-get install mailutils), and configured postfix as "Internet site". Works fine when I'm logged in as regular user on the command prompt and use mail ...
1
vote
1answer
543 views

Why did /usr/lib/php5/sessionclean run 50 times simultaneously on my 14.04 system?

When I sat down at my Ubuntu 14.04 system this morning, the root cron job /usr/lib/php5/sessionclean was running over 50 times at once, producing 50+ copies of the following commands: root 8147 ...
0
votes
1answer
35 views

Quick way to dump a Wordpress database without digging through configuration files?

I've got a load of Wordpress sites to move around and modify this afternoon. Yay. Like any good developer, I want to back up things before I Hulk-out and break everything. The site's files are mostly ...
0
votes
1answer
116 views

Can't access uploaded image to generate thumbnail in PHP [duplicate]

I had trouble fixing the file uploading, but then I ran chmod a+w /var/www and it worked - files were being uploaded to my specified directory. However, my script also generates a thumbnail ...
0
votes
4answers
2k views

Laravel loading error in Ubuntu 14.04

When I tried to access my laravel after successfull updation, instead of the default page it shows an error in the webpage. Mcrypt PHP extension required. I have tried some fixes like this, sudo ...
0
votes
1answer
90 views

Laravel loading error in Ubuntu 14.04

When I tried to access my laravel after successfull installation, instead of the default page it shows an error in the webpage. Mcrypt PHP extension required. I have tried some fixes like this, ...
0
votes
0answers
77 views

PHP Mysql connection works but no data can be displayed

I wrote this simple php script that just to import basic information from mysql table. As a result, not even a error message, but a blank screen. Something to do with the PHP - Mysql connection, but ...
-1
votes
1answer
102 views

how to add string to a specific line of file [closed]

my code is, <?php $data = file_get_contents('file.conf'); $rows = explode("\n", $data); $rcount = count($rows); echo $rcount; for ($l=0; $l<$rcount; $l++) { $rowss = $rows[$l]; if ...
0
votes
0answers
31 views

Apache HTTP on UbuntuServer 13.10. No permissions to enter site from another computer

I've installed Apache, PHP5, MySQL and phpmyadmin on my 13.10 Server. Created folder /public_html and a file index.php in there like tutorial I read said. I gave chmods for these (folder and .php ...
0
votes
1answer
67 views

How to upgrade php in ubuntu 14.04 ?

My current version is php5.4 , I want to upgrade from 5.4 to 5.5. I'am a new to linux so Ubuntu.
6
votes
2answers
24k views

Installing PHP 5.3 in Ubuntu 14.04

I've just installed Ubuntu 14.04 and am trying to install php 5.3. But when I run apt-get install php5 it's installing php 5.5.9-1ubuntu4. I need to use php 5.3 in the system because the ...
1
vote
1answer
1k views

MySql Not starting even when status is ok ubuntu lampp

I am a Newbie to Ubuntu. I just installed the xampp Linux version through xampp-linux-1.8.3-4-installer.run file. Following are the commands that I used: cd /home/sammy/Downloads sudo chmod +x ...
16
votes
8answers
24k views

Mcrypt extension is missing in 14.04 server for mysql

The php mcrypt extension on ubuntu 14.04 shows that it is installed properly, but phpmyadmin says: The mcrypt extension is missing. Please check your PHP configuration. My current php config is ...
3
votes
1answer
3k views

NGINX and PHP downloades index.php instead of processing it

I have been banging my head for 2 days now. The issue is that the index.php is downloaded instead of being processed. I'm using Ubuntu 14.04 , Nginx, php5. The nginx/site-available/default is as ...
2
votes
1answer
389 views

What are the best practices when setting files and folder permissions as a php developer under ubuntu?

I have created and set the permissions to some files and folders under /var/www/mywebsite. For files 644 and for folders 755. I am the owner of those files and folders, since I created them ...
1
vote
1answer
81 views

Ubuntu and phpmyadmin

I've installed Ubuntu 14.04 in my VM Virtual Box, installing phpmyadmin in the process using the command sudo apt-get install phpmyadmin I configured phpmyadmin with Apache2 and advanced options, ...
1
vote
1answer
755 views

php zlib gzopen not exists

I'm using Ubuntu 14.04 and php 5.5.9-1ubuntu4 (cli) (built: Apr 9 2014 17:08:27) var_dump(extension_loaded('zlib')); => true var_dump(function_exists('gzread')); => true ...
0
votes
0answers
18 views

Installing two versions of PHP in ubuntu 14.04 [duplicate]

How to install two versions of PHP in Ubuntu 14.04. Help me, please. I need test the app of my client in PHP 5.3 because the server run in this version, but I can not uninstall the PHP 5.5 of my ...
2
votes
1answer
461 views

How to know if there are updates available?

I am running a 12.04 LTS ubuntu server. And I think it would be nice if I could be informed when updates are available. But I can't find how to know... I have tried looking at apt-get man page. From ...