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)

0
votes
0answers
6 views

Parse Error:Syntax Error T_String

I have ubuntu as guest on virtualbox and host is Windows 7 ultimate. phpinfo(); in test.php at /var/www/ displays the proper information, yet when I echo something out, I receive : Parse Error:Syntax ...
0
votes
1answer
13 views

Can I use shell_exec or exec as a different user than the apache user?

I have a media server (with only LAN access) that I want to be able to control via some scripts accessed by a web interface. So I want to run the scripts like I would via an SSH terminal. using the ...
0
votes
0answers
17 views

I messed up my php.ini file on ubuntu php 5 [duplicate]

I've made a mistake in my php.ini file. How do I go about resetting the php.ini file?
0
votes
0answers
11 views

I need help (xampp - php)

I install xampp for ubuntu, and the only way to open archives .php is when I creade .php in /opt/lampp/htdocs. But when I write "localhost/example.php" the browser open that file, but the styles and ...
0
votes
0answers
22 views

PHP session files are created very fast and are not deleted automatically

Platform: Linux Ubuntu 14.04 Main problems: PHP session files within /var/lib/php5 are never deleted New session files are constantly being created at a rapid speed The garbage collection is ...
0
votes
1answer
17 views

How to install php5-phpdbg in Trusty (14.04)?

The package php5-phpdbg is not included in the universal repository of trusty. It is included from vivid and ahead as you can se here. So, how can I install phpdbg in Ubuntu 14.04?
-1
votes
0answers
15 views

Install PHP 5.6.6 on Ubuntu 14.04

I'm running an Ubuntu 14.04 System in a Vagrant-Environment. At the moment I have PHP-Version 5.6.17 installed. I tried to upgrade it to version 5.6.6 but the newest version i can find is 5.6.17. ...
0
votes
1answer
14 views

is php5-curl what I want?

I have an NGINX web-server, with php-fpm. I would like to install curl, but I’m not sure that php5-curl is the right package for my server. Should I be concerned? is there a more appropriate package? ...
0
votes
1answer
13 views

Filtering nginx traffic

I have an nginx server running on ubuntu server. I have many websites and hundreds of pages hosted on the server. I want to execute one PHP function on each page when it is requested by a user. It is ...
1
vote
1answer
30 views

Cannot install phpmyadmin on ubuntu 14.04 LTS

I have installed ubuntu along side with window 10 (dual boot). I have set up apache2 server, mysql and install PHP 7, and then I want to install phpmyadmin I cannot install it. I have try many time, ...
0
votes
0answers
8 views

Can not send email to user's mail box in Ubuntu 14.4

I have an issue.I have one app where one can send email to a particular user using PHP and Angular.js.I am using Ubuntu server.Here after sending mail the success message is coming but the sent mail ...
0
votes
1answer
19 views

php -v showing 5.4 and phpinfo show 5.6

I am trying to install laravel that need > 5.5php version. My current php is of version 5.6, but composer detect version 5.4 and gives error. How to remove php 5.4 or make the correct version for ...
0
votes
1answer
40 views

How To Set Up the Ubuntu 14.* Included X-Windows(xUbuntu) / MySql / PHP (Apache 2 ) In VMware

I had used Linux system for near decade , but now I need to use it again because I want to use more open resources and try to use like DevOpe solutions so that I hope I can give me some notices and ...
0
votes
0answers
12 views

Permission denied while using PHP Mail using Postfix

I already asked this question in Stack Overflow (http://stackoverflow.com/questions/35159754/permission-denied-while-using-php-mail-using-postfix) but since I am not sure whether it is a Ubuntu ...
0
votes
1answer
53 views

How to fix error processing package git-daemon-run?

I am trying to install php curl like so: sudo apt-get update sudo apt-get install php5-curl But I keep getting an error. Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
8 views

This codes works fine when implemented on apache but not with IIS. Suggestion? [closed]

<?php session_start(); include "../../lib/mssql.connect.php"; $params = array($_POST['id']); $sql = "SELECT * FROM adminIP WHERE id = ?"; //run the query ...
0
votes
0answers
13 views

PHP in command line failed : ERROR: memdup failed

After an upgrade to 14.04 LTS, I discovered I have some trouble with PHP. It is impossible to execute maintenance script by command line: [root@xubuntu log]# php ERROR: memdup failed I get ...
0
votes
1answer
24 views

dpkg: error processing package php5-mysql (--configure):

When installing PHP and mySQL, I got the following error message. What to do? Creating config file /etc/php5/mods-available/mysql.ini with new version cp: cannot create regular file ...
0
votes
2answers
10 views

PHP acting strange when trying to run Wordpress on LAMP server

hello! Ubuntu Trusty PHP5, Apache2, mySQL installed Download and unpack Wordpress to /var/www/html Setup mySQL database and user for Wordpress, edit Wordpress config w/ correct info In browser, ...
-2
votes
0answers
22 views

Build sites for fun, not for profit - how to install a lamp stack and use it [duplicate]

http://tecadmin.net/install-lamp-quickly-using-tasksel-on-ubuntu-and-linuxmint/ I found this to create a lamp server with tasksel, but now I can't create the phpinfo.php in the appropriate folder. I ...
0
votes
1answer
30 views

<?php phpinfo();?> test does not work

I have no background in PHP, I don't have a public IP address nor a domain, but I want to create a website; to install LAMP I followed the instructions here, but my script does not seem to work. I ...
0
votes
0answers
28 views

Error when trying to install PHP curl - Ubuntu 14.10

When I try to run sudo apt-get install php5-curl I get an error php5-curl : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.12+dfsg-2ubuntu4.6 is to be installed What does this mean and ...
-1
votes
0answers
28 views

PHP random image generator from Imgur album

I'm looking to create an Apache site using PHP so that each time a person directs to it, it will grab a random image from a previously created Imgur album full of images and display the image onload ...
0
votes
1answer
14 views

Setup /var/www for two groups

I have two groups. ftpgroup and www-data. I'm using proftpd and mysql to store the ftp users and their homes. When the user registers it creates the folder first and then creates the user account in ...
-1
votes
1answer
32 views

Apache2 reinstall error (and apt not working anymore)

I tried updating my PHP version to 5.6 and it broke my Apache install. I tried uninstalling purging, removing but nothing seems to work. Actually I can't install anything anymore because Apache2 ...
0
votes
0answers
83 views

Apache not loading localhost/xxx

I'm trying to install Yii on a remote server (let's call it Lucy). Since the Gii generator blocks all IP access besides localhost, I opened ssh in SOCKS mode (ssh -ND 8080 user@host) so I can open ...
0
votes
0answers
18 views

MySQL Database in XAMMP is stoped

I'm running Xampp on Linux(Ubuntu 14.04) and while everything was working fine until an hour back right after I shut it down it suddenly starts throwing this error. the erreur : MySQL said: ...
1
vote
1answer
77 views

Cannot uninstall php-memcache using terminal

I uninstalled php5 from my computer with command sudo apt-get -y purge php.* running this command will show me this message in terminal: Errors were encountered while processing: php5-memcache ...
0
votes
0answers
10 views

Setup Virtual host in home directory - Ubuntu 15.10 [migrated]

This is an extension to the following question : How to setup apache2 virtualhosts on your home directory on ubuntu 14.04? I'm trying to setup a virtual host to run apps from my home directory ...
0
votes
1answer
158 views

How to tell what PHP 7 version is installed, and how to update it to latest version?

I'm using Vagrant box (Homestead actually) with Ubuntu. When I use PHP 5.6 box for php -v I'm getting: PHP 5.6.13-1+deb.sury.org~trusty+3 (cli) so it's clear that's PHP 5.6.13. But when ...
-1
votes
0answers
14 views

php problem its just showing url problem ..please is there anyone who can help me out? [closed]

NOT FOUND The requested URL /test.php was not found on this server. Apache/2.4.10 (Ubuntu) Server at localhost Port 80.. THIS IS SHOWING ON THE FIRFOX..PLEASE HELP..AND I'M NEW TO UBUNTU
0
votes
0answers
15 views

Autoloading and Slim Framework doesn't work for me!

I recently installed composer. I also installed Monolog and Slim Framework. All installed successfully. However, when I insert this code... <?php require 'vendor/autoload.php'; date ...
0
votes
0answers
23 views

Access phpmyadmin

I hope u can help me :D So my Apache2 server and MySql are both running. PHP is also working. I already included this line in the apache Configuration : Include /etc/phpmyadmin/apache.conf I´m using ...
0
votes
1answer
58 views

ubuntu 15.10 and pecl_http 1.7.6

I tired to install pecl_http in version 1.7.6 but I'm getting error when is trying to complete installation sudo pecl install pecl_http-1.7.6 downloading pecl_http-1.7.6.tgz ... Starting to ...
0
votes
1answer
24 views

Web-based Xen hypervisor

I want to make users to be able to create and manage virtual machines from a web-based interface. I have installed Xen hypervisor on my Ubuntu machine I have installed Apache webserver and all the ...
0
votes
0answers
38 views

Multiple PHP versions on same Apache server

I have a Ubuntu 14.04 LTS Server with Apache2 hosting 2 sites via virtual hosts. I installed Apache using the following commands: $ sudo apt-get purge apache2 $ sudo apt-get purge php5 ...
0
votes
0answers
21 views

libapache2-mod-php5 while updating

While installing packages or upgrading, I got this error: Setting up libapache2-mod-php5 (5.5.31+dfsg-2+deb.sury.org~precise+1) ... dpkg: error processing libapache2-mod-php5 (--configure): ...
0
votes
0answers
14 views

Server Error 500 after changing short open tags to on

I have a Ubuntu 14.04 LTS Server with Apache2 hosting 2 sites via virtual hosts. I installed Apache using the following commands: $ sudo apt-get purge apache2 $ sudo apt-get purge php5 ...
0
votes
0answers
8 views

Short Open Tags not working after changing in php.ini

I installed Apache on my Ubuntu 14.04 using the following commands : $ sudo apt-get purge apache2 $ sudo apt-get purge php5 libapache2-mod-php5 $ sudo apt-get purge autoremove $ sudo apt-get ...
1
vote
1answer
51 views

How to remove PHPUnit?

I globally installed PHPUnit 5.1 using the PHAR: wget https://phar.phpunit.de/phpunit.phar chmod +x phpunit.phar sudo mv phpunit.phar /usr/local/bin/phpunit Here's the message I get when I run ...
-1
votes
0answers
37 views

The requested URL /< was not found on this server

I'm a newer for Ubuntu, and I tried very hard to find the solution about still can't find any of them. ubuntu 14.04 apache2 I create a website and there is a little bug when i press my go back ...
0
votes
0answers
20 views

Upgrade Ubuntu 12.04.5 to latest Version

Will upgrading my Ubuntu 12.04.5 server to the latest using do-upgrade mess up my configurations like virtual hosts, php settings & modules, sql databases & phpmyadmin settings etc for; ...
0
votes
1answer
49 views

Apache not showing PHP Pages correctly

Initially the problem was PHP files on my server were displayed as plain text(the whole code was shown). So I found out by investigating that the MIME type has to be added to the /etc/mime.types , so ...
0
votes
0answers
31 views

Running into issues on Ubuntu with Laravel, Vagrant, and Homestead

When I try to run homestead, by just typing into console 'homestead', I get the message: homestead: command not found But I know homestead is installed because when I type in ...
0
votes
0answers
43 views

Apache Server problem: 404 page not found but file exists

I'm having trouble with Apache server on my Ubuntu. I'm having a simple PHP project and I can't get pages to show except for a home page but when I have localhost/register or localhost/login then ...
0
votes
0answers
22 views

Can't open files in subdirectory in Apache 2 (owncloud)

I am running Ubuntu Server 14.04 with Plesk 12.5 and am currently trying to setup Owncloud. My vhost is located under /var/www/vhosts/domain.com/httpdocs so I simply moved the folder to ...
0
votes
1answer
23 views

Cannot install current version of php5-intl

My sources are only the official Ubuntu ones: # find /etc/apt/ -name "*.list" -exec bash -c 'printf "\n%s\n%s\n%s\n" "========" "$1" "========"; cat "$1"' _ {} \; ======== /etc/apt/sources.list ...
0
votes
1answer
126 views

Update PHP 5.3.2 to 5.3.3 or 5.4 on Ubuntu 10.04 [closed]

I have PHP 5.3.2 on Ubuntu 10.04 LTS $ php -v PHP 5.3.2-1ubuntu4.30 with Suhosin-Patch (cli) (built: Apr 17 2015 15:01:29) and I would like to upgrade PHP to at least 5.3.3 (5.4 would be better), ...
0
votes
0answers
29 views

Upgraded to 15.04. PHP/mysqli now having problems with “old passwords” Need to downgrade (what and how?)

I was using 14.04 and PHP 5.5. Upon upgrading, I can no longer use MySQL to access REMOTE and local databases because of old passwords: [Wed Jan 06 17:42:04.030738 2016] [:error] [pid 23736] PHP ...
0
votes
1answer
102 views

unmet dependencies while trying to install phpmyadmin on LAMP stack

I am trying to install phpmyadmin along with LAMP stack but when I write to the terminal sudo apt-get install phpmyadmin I get this errors : Some packages could not be installed. This may mean that ...