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
1answer
16 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
0answers
19 views

Phpmyprepaid “setup.php” displays messy code

Help me ! I want to install "phpmyprepaid" on Ubuntu 14.04, on the tutorial they say to open this link on my browser. http://my-ip-address/phpmyprepaid/www/install/setup.php but it show this result ...
-1
votes
1answer
30 views

When typing in localhost in browser, some file other than index.html pop up [duplicate]

The default file in /var/www/ is index.html. According to a tutorial i saw on youtube its contents were to show when typing in "localhost" in the browser. I am using apache2. Sorry for the lack of ...
0
votes
1answer
18 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 ...
77
votes
10answers
174k 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 ...
6
votes
2answers
25k views

How to install PHP `mbstring` extension in Ubuntu?

What is PHP mbstring extension ? What is the perfect way to install this extension on Ubuntu 14 ? Thanks, Regards,
0
votes
0answers
18 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
26 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
4answers
4k views

Unable to open PHP files on Linux platform on Ubuntu

I've copied over my files over to a new directory which I have created: /var/www/worm/data.php. I tried opening it by a few ways: Double clicking the file but nothing comes out Typing ...
1
vote
3answers
1k views

How to install PHP 5.2.x on ubuntu 14.04?

I want to run a version specific code on php 5.2.x which I have tried by many ways but not got any successful attempt. Please let me know that how I can install PHP 5.2 on ubuntu 14.04
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
19 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
16 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. ...
1
vote
1answer
3k views

/lib/x86_64-linux-gnu/libz.so.1: could not read symbols: Invalid operation

I installed Ubuntu Desktop 13.10 64-bit in VMware. I am trying to compile PHP 5.4.14 on the machine. Here's the bit where make stops due to an error: /usr/bin/ld: ext/mysqlnd/.libs/mysqlnd_net.o: ...
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
37 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
41 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 ...
1
vote
4answers
68 views

Does Ubuntu 14.04 support PHP, Mysql, Apache?

Versions are: Ubuntu server version is 10.04 PHP version is 5.4.7 Mysql version is 5.1.69 Apache server version is 2.4.3 Now, I would like to update to Ubuntu 14.04 but no update PHP, Mysql and ...
0
votes
1answer
20 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
28 views

it tried to update the php version but it atomatically reversed now not able to start my apache server

i tried to update the php version of my apache server and not succeeded. not i got the error. syntax error on line 210 of etc/apache2/apache2.conf: syntax error on line of ...
0
votes
0answers
13 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
65 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 ...
2
votes
1answer
186 views

Why is my NGINX downloading files?

I've set up a redirect so I can serve my PHP files without the .php extension, but whenever I visit a "clean" url, my browser downloads the file, suggesting NGINX isn't hosting it as a PHP file. How ...
3
votes
1answer
69 views

How do you debug a php5-fpm kernel segfault error?

A couple of weeks ago, my OSSEC daemon started sending me syslogs about a segfault in my php5-fpm. Here's the portion of the logs: Dec 19 15:09:38 mydropplet kernel: [165740.998932] php5-fpm[26936]: ...
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
29 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 ...
1
vote
1answer
4k views

Call to undefined function sqlite_open() in CLI mode

12.04 AMD 64 apt-get install sqlite php5-cli php5-sqlite php -r '$x = sqlite_open();' PHP Fatal error: Call to undefined function sqlite_open() in Command line code on line 1
0
votes
2answers
12 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, ...
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
1answer
168 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 ...
-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
8k views

Ubuntu 13:10 - Downgrade php 5.5.3 to 5.4

Can someone give me step my step instructions on how to do this? Will I have to worry about and data/databse loss doing this. Thanks! sudo apt-get remove --purge dpkg -l | grep php | grep -w 5.5 ...
0
votes
0answers
29 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 ...
0
votes
0answers
171 views

Install and phalcon extention in php 5.6

I'm install php 5.6 from source file in thiis path (/user/local/server/php) and mariadb from source in path (/user/local/server/php) and apache in path (/user/local/server/apache). How can i add ...
24
votes
5answers
20k views

How to install PHP 7?

PHP 7 came out yesterday and I would like to give it a try. PHP 7.0.0 comes with a new version of the Zend Engine, numerous improvements and new features such as Improved performance: PHP ...
-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 ...
-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
3answers
1k views

Installing LAMP - PHP not connecting with MySQL - Why?

Am followoing this amazingly simple LAMP tutorial http://ubuntuserverguide.com/2014/06/how-to-install-lamp-in-ubuntu-server-14-04-lts.html Installing Apache Installing MySQL Installing PHP The ...
0
votes
1answer
43 views

How to display .php pages?

I am new to LAMP in my Ubuntu 15.04. I just installed the LAMP stack and to get my php info, I made testphp.php which has the following code... <?php phpinfo(); ?> I placed the file in ...
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 ...
0
votes
2answers
4k views

Errors installing php5-mysql extension

Getting error when installing php5-mysql. Looks like a dpkg error. Perhaps a broken package. Have tried to fix the broken package. Have reinstalled the lamp server and everything seems fine except ...
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
19 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: ...
3
votes
1answer
4k 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
1answer
29 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 ...
15
votes
4answers
13k views

When will PHP 5.6 be in the official Canonical repos?

I imagine it won't up until 14.10 is released, but even if that is the case, could we expect to see it show up in the repos that 14.04 uses?
1
vote
1answer
79 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
1answer
59 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 ...