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)

1
vote
0answers
213 views

Adding the PHP json extention

I have Ubuntu 15.10 installed. I have also installed LAMP (https://help.ubuntu.com/community/ApacheMySQLPHP). I then proceeded to set up Moodle via the web page installation. I hit a road block when I ...
0
votes
0answers
55 views

cannot change php and mysql/percona to use utf-8

Ubuntu 14.04 amd64 What I had done: Set as below in php.ini, restart php5-fpm default_charset = "UTF-8" Set as below under http section of nginx.conf, restart nginx charset utf-8 Set below ...
40
votes
5answers
54k 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 ...
-3
votes
2answers
785 views

How to upgrade PHP 5.5.30 to PHP7 in XAMPP, Using Ubuntu 15.10

PHP 7 is released, How can i install PHP7 in XAMPP. I am currently using PHP 5.5.30 and my Ubuntu version is 15.10 . Thanks
0
votes
1answer
120 views

Nginx redirects all domains to same server block

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
7
votes
2answers
2k views

How Ubuntu plans to support PHP7?

Tomorrow will be release PHP 7, how Ubuntu plans to support it? It will be available at least in official LTS repository or we need to wait the next Ubuntu release?
0
votes
1answer
38 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 ...
-4
votes
2answers
85 views

trouble with sublime text and /var/www/html [duplicate]

I installed ubuntu 14.04 with mysql and the rest of lamp. I created a file called test.php in sublime and when i try to save this file it says unable to safe file in var/www/html I tried to chown ...
1
vote
1answer
91 views

apt-get install insists on removing a package I don't want removed!

sudo apt-get install php5-mysqlnd Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer ...
0
votes
0answers
62 views

Dealing with php extensions - nginx and php-fpm

I had installed nginx php-fpm and mariadb, everything looks fine except I have some troubles with 2 extensions: php cannot find phalcon a web framework and json. so i tried to locate those: locate ...
0
votes
0answers
47 views

Why does my Ubuntu server shut down the MySQL connection the same time every night?

At the same time every day (around 10 PM EST) my MySQL (now MariaDB) server goes offline and my sites crash. I can't for the life of me figure out why. When I look in the syslog I see that there are ...
0
votes
1answer
165 views

LibreNMS Installation

I'm installing a LibreNMS server and when I issue the command "php addhost.php 10.2.1.21 NetManage v2c" i get an error message saying "Could not open input file: addhost.php" also tried it from the ...
0
votes
1answer
290 views

Installing PHP 5.5 on 15.10

I've tried multiple ways to install PHP 5.5 including various PPAs etc however every time it always installs 5.6. Is there a reliable way to to install without having to compile from source?
0
votes
0answers
10 views

How to install the newest PHP 5.6.15 for apache2 [duplicate]

I am trying to move my development enviroment from windows to Linux but I am not very good at Linux. It would be nice to get some help from you guys. In my sudo apt-get install php... in my ...
0
votes
1answer
38 views

How do I upgrade PHP progressively over several sites on a single server?

I have a set of PHP-based websites hosted on a single Ubuntu 12.04 server that I need to upgrade PHP for. However, as some of the sites are QA / staging and others are production, I need to do this ...
0
votes
1answer
368 views

require_once: failed to open stream: Permission denied(lampp)

I need help solving , what says to be a permission error in the htdocs folder, because i needed to alter them to even add folders in the first place. This is my init.php file: <?php //Start ...
0
votes
1answer
235 views

unable to install php5-mysql

Setting up php5-mysql (5.5.9+dfsg-1ubuntu4.14) ... Creating config file /etc/php5/mods-available/mysql.ini with new version cp: cannot create regular file ‘/etc/php5/mods-available/mysql.ini’: No ...
1
vote
1answer
113 views

Unable to copy file from /opt/lampp/htdocs to /home/username/ using PHP

I'm running Lampp in Ubuntu, Working in /opt/lampp/htdocs/ folder. The htdocs folder has write permissions enabled (I don't remember the exact command I ran to do that). I'm able to copy files ...
0
votes
0answers
154 views

Error establishing a database connection - wordpress LAMP

I am trying to install wordpress using Lamp in my pc but I get "Error establishing a database connection". I installed lamp and wordpress again and again but nothing changed. What can I do? Database ...
1
vote
0answers
82 views

How to create an App Indicator icon in Ubuntu 14+ without using libappindicator?

I'm trying my hand at writing simple desktop utility apps in PHP and wxWidgets using wxPHP. After some substantial effort (and 20+ minutes of compilation time) to generate the PHP wxwidgets.so module, ...
0
votes
2answers
40 views

How can i watch the PHP preview on browser?

I installed all the LAMP and my file.php is inside /var/www, but when i try to open my file.php on browser for watch the preview the browser ask me a open/download of my file.php.. And the page is ...
0
votes
0answers
48 views

Apache 2.4 on Ubuntu 14 refuses to load index.php even though PHP loads

My apache won't load a index.php one one of my vhosts not even if I type in example.com/index.php. I have two and one works fine. The second vhost is my issue. Any help would be appreciated, idk ...
0
votes
0answers
33 views

phpmyadmin schema in phpmyadmin is empty and I cannot do anything (select databases or other things)

Good evening, My problem isn't that no matter what internet solution I try to get my xampp server to work, it never does because of phpmyadmin who seems broken beyond repair. Now I cannot even access ...
0
votes
0answers
24 views

404 found error trying to connect mongo to php

I tried installing mongo with PECL and connecting to PHP: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo "deb http://repo.mongodb.org/apt/ubuntu ...
0
votes
2answers
176 views

Cannot install Apache. Missing Dependencies that will not install

I am trying to install LAMP on my new server. The problem is that I keep getting a error. Here is what it is: root@178658:~# apt-get install lamp-server^ Reading package lists... Done Building ...
0
votes
0answers
135 views

phpsysinfo help

I have been having a heck of a time installing and running phpsysinfo on ubuntu 14.04 I have tried to install it using ...
0
votes
0answers
37 views

Geany file search fails

I recently installed a fresh new version of Ubuntu 15.10 and Geany 1.25. Now, Geany is not searching inside PHP files. In my previous installed version, it was working very fine. When searching for ...
0
votes
0answers
43 views

I am unable to set custom command on Geany editor for HTML,CSS jQuery,php, how to set it?

Is there any shortcut key to align code in Geany editor? this link is unusefull to me bcz i can't understand , how to Install Artistic Style -> follow the install doc (/astyle/doc/install.html) in ...
0
votes
0answers
31 views

Multiple Eclipse Mars environments

I do structure my projects in the following way: project_name ----- app ----- projectcpp1 (C++) | | | ---- projectcpp2 (C++) | | ...
0
votes
0answers
31 views

cant save anything in var/www/html [duplicate]

Im running apache2 on my ubuntu 14.04 I cant save anything in my var/www/html folder what do i need to do?? When i create a file with gedit im able to move it into var/www/html but it shows up ...
2
votes
1answer
1k views

Not update to “apt-get update” [duplicate]

I was trying to upgrade the PHP packages on my Ubuntu 14.04 LTS server and I keep getting errors. I know there is a duplicate of this Qn but i removed the error causing file from ...
1
vote
1answer
2k views

Install Eclipse Mars PHP and C++ on Ubuntu 15.10

I´m building a new development machine and I need to setup Eclipse for C++ and PHP projects. I´ve installed Ubuntu 15.10 and I started installing Eclipse Mars (4.5). I choosed to use the new Eclipse ...
0
votes
0answers
27 views

set classpath for www-data

I am using shell_exec() from PHP to run a Java program on Ubuntu. I tested the programs from terminal and its working perfectly. I think that my problem is that when i use shell_exec() the user is ...
0
votes
1answer
242 views

How Do I run laravel framework from apache 2.4

I've been trying to get laravel welcome sreen for entire day and nothing.. Here's what I do : 1) Install laravel via composer to the /var/www/html/ like this : composer create-project ...
1
vote
1answer
333 views

CONNECT ERROR: PHP Extensions “zlib” must be loaded

While Magento installing Extension and themes and also trying to upload, i am getting CONNECT ERROR: PHP Extensions "zlib" must be loaded. I have tried to installed zlib from there ...
0
votes
0answers
117 views

stream_socket_client - php_network_getaddresses: getaddrinfo failed: Name or service not known

if (empty($options['context'])) { $fp = @stream_socket_client($socket, $errno, $errstr, $options['timeout']); } else { // Create a stream with context. Allows verification of a SSL ...
0
votes
0answers
36 views

PHP Files are not opening inside the Admin Folder that i created in my localhost

I have created a folder called Admin in my Localhost and set all file permissions to 777. But when i try to open my .php files in Admin folder they just dont open. It's not even opening the Filing ...
0
votes
1answer
31 views

XAMPP dont works correctly in my ubuntu 14.04

my xammp servers dont works correctly.. I cannt make it running anyway.XAMPP Manage Servers
0
votes
0answers
75 views

How to write to apache document root with www-data and OS user

I have sort of a tricky question, i tried to read a few posts and forums but didn't find a concrete answer so i thought i'd post it here and get some feedback. So here is my requirement: I have my ...
0
votes
0answers
18 views

Problem about username and password regarding phpmyadmin

Sir I wrote http://localhost/phpmyadmin to access phpmyadmin but getting some error.I attatch a screenshot.enter image description here so help me out from this problem.
0
votes
0answers
130 views

problem to install phpmyadmin in ubuntu 14.04 64 bit

I am trying to install phpmyadmin sudo add-apt-repository ppa:nijel/phpmyadmin sudo apt-get update sudo apt-get install phpmyadmin But when I used to check the status it shows unrecognized service. ...
0
votes
0answers
43 views

zend-server-php-5.5 : Depends: libapache2-mod-php-5.5-zend-server

I've just upgrade my Ubuntu from 14.10 to 15.10 and I can't install Zend Server into my Ubuntu. It first came out I need to remove libapache2-mod-php5, so I did it . Then I ran again and at this time ...
0
votes
2answers
81 views

SoftException in Application.cpp:566: Directory “/var/www/html/” is writeable by group

I installed "SuPHP" yesterday, and whenever, I am restarting "Apache", i am getting below error :- * Restarting web server apache2 ...
1
vote
1answer
151 views

pecl.php.net down?

I am trying to install mongo extension on my ubuntu but pecl.php.net seems down. sudo pecl install mongo doesn't work, is it just me or pecl server are down for you too ? I get No releases ...
0
votes
1answer
147 views

Turn off email capabilities on server

I have a web server running Ubuntu and I know that I have Postfix installed and configured on it, but I want to uninstall it and I also want to make sure sendmail is not going to be installed by ...
1
vote
1answer
230 views

Python error “version OPENSSL_1.0.0 not defined in file libcrypto.so.1.0.0…” when trying to run command in PHP scrip (LAMPP)

When in Ubuntu 14.04: I run a command of script written in Python with shell it normally runs. I try to run same command using PHP (lampp) I get this error: [errors] => Traceback (most recent ...
0
votes
0answers
51 views

Why has cgi not been installed in 14.04.3 server/Apache 2.4.7?

I had a home webserver running Ubuntu 12 32-bit and set up a new server with the same files but on 14.04.3 server 64-bit. The Apache2 setup files are somewhat different, but worked OK except for my ...
1
vote
0answers
45 views

Phalcon install give error on ubuntu

I'm trying to install phalcon in my ubuntu 14.04 by using below commands git clone https://github.com/phalcon/cphalcon.git cd cphalcon/build sudo ./install and it give a error like ...
0
votes
0answers
55 views

PHP update/version incorrect

I'm trying to install some third party plugin for trackmania on Ubuntu 14. It requires PHP 5.3.0. It tells me that my PHP version is 5.2.5. But when I use php -v I get PHP 5.5.9-1ubuntu4.14 (cli) ...
4
votes
1answer
3k views

Installing Imagick extension on PHP 7 nightly on Ubuntu 14.04

I have ImageMagick installed and this, plus the Imagick extension, was working fine in PHP 5.6. Currently using the PHP 7 nightly build on Ubuntu 14.04, installed as per: http://php7.zend.com/ I ...