Questions tagged [php]

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.

Filter by
Sorted by
Tagged with
8 votes
1 answer
36k views

Install php-fpm 5.6 on Ubuntu Xenial (16.04) [duplicate]

I can see various solutions available for php5.6, but is it possible to get php-fpm 5.6 for Xenial? Or do I have to manually download and build the package?
Chris Stryczynski's user avatar
1 vote
1 answer
2k views

PHP-CPP not getting installed on ubuntu running PHP 7

After cloning PHP-CPP from here, running command make always outputs this error: php-config: not found In file included from zend/inivalue.cpp:8:0: zend/includes.h:40:17: fatal error: php.h: No such ...
Oussama Ben Ghorbel's user avatar
0 votes
1 answer
7k views

How to install PHP7.0 ssh2 in ubutntu 14.04 for PHP 7.0.19-1+deb.sury.org~trusty+2

Tried several techniques given at Stack Overflow and Ask Ubuntu to install ssh2 extension for php but nothing seems to work. Also followed the tutorial at http://php.net/manual/en/ssh2.setup.php but ...
Shakti Phartiyal's user avatar
6 votes
4 answers
20k views

Unable to execute the laravel command "laravel new myapp"

Using Ubuntu 16.04. When I execute laravel new myapp, I am getting this: [RuntimeException] The Zip PHP extension is not installed. Please ...
varun's user avatar
  • 73
1 vote
2 answers
3k views

Your requirements could not be resolved to an installable set of packages

So I'm trying to get calcinai/xero-php installed using Composer but am getting this error in specific. Your requirements could not be resolved to an installable set of packages. Problem 1 - ...
BrastaSauce's user avatar
0 votes
1 answer
1k views

phpmyadmin is not working on Ubuntu 16.04

I installed apache2, php7.0, mysql and phpmyadmin and followed all instruction related to it. But phpmyadmin is not working I tried all solutions here: How to solve the phpmyadmin not found issue ...
Iqra Nisar's user avatar
-1 votes
1 answer
73 views

PHP warning files

I installed php 5.6 in ubuntu 16.04 and I installed package sqlite but now I have this problem
paulo linko's user avatar
0 votes
0 answers
69 views

Ubuntu Apache2 Nginx php7.0 wordpress, php file load instead of processing

That is a vanilla install, all modules are here and running. The website run correctly (http://www.shadowimoth.com/) but when I try to log into the admin panel (wordpress), the browser only give the ...
Eric Bianchetti's user avatar
3 votes
1 answer
4k views

Apache2 not able to restart in Ubuntu 16.04

I installed Apache2 on my Ubuntu machine. At first it was working fine as I started and restarted many times in the course. But now suddenly when I tried to restart it gave me this error message: [.......
Yathartha Joshi's user avatar
0 votes
1 answer
1k views

Can't Access getcomposer.org Ubuntu 17.04

I Can't Access https://getcomposer.org (Through URL and Curl). When I tried to access through URL its not loading the page. And When I curl the same It shows Connection Timed Out. curl: (7) Failed to ...
Adharsh M's user avatar
  • 101
4 votes
0 answers
1k views

Can't send email from PHP with SSMTP

I'm using ubuntu 16.04 and PHP 7. I make a website that allows admin to send an email to other admin. So I installed SSMTP and configured it properly. Here is the thing : I can send an email by using ...
Zainab Safiyyah Al-habsyi's user avatar
0 votes
1 answer
1k views

sudo apt-get is stuck at 0% [duplicate]

I am using an apache2 server(Ubuntu). I am trying to install the package called php7.0-sybase. But downloading it is stuck in 0% 0% [Connecting to us.archive.ubuntu.com (91.189.91.26)] I tried ...
mithun3010's user avatar
-1 votes
1 answer
21 views

Looking for solution file(s) [closed]

I am looking into a website that a coworker created and is used by the business; however, there isn't any documentation on where to find the code for this application. Any suggestions.
Roddy Tomlin's user avatar
6 votes
5 answers
25k views

php.ini does not exist

There is no php.ini after installing php (7.1) on ubuntu 16.04 I installed php using apt install php. I already tried to find the php.ini using the find command, but there is no file called php.ini ...
Florian's user avatar
  • 61
1 vote
3 answers
45k views

How to Install XAMPP on my ubuntu 16.04 32bit [duplicate]

I'm trying to install Xampp Latest Version in my Ubuntu 16.10 32bit. In Xampp website I can't find a a 32 installer, all that they offer is 64bit installer version.It is better for me to install via ...
Ndm's user avatar
  • 13
0 votes
0 answers
258 views

Error in installation of dvwa

Sudo apt-get install unzip apache2 php5 php5-mysql php-pear Reading package lists... Done Building dependency tree Reading state information... Done Package php5 is not available but is ...
Keshav Maheshwari's user avatar
0 votes
1 answer
1k views

PHP script failing with cron

I want to use cron with 2 php scripts. When I run these scripts manually with php /soncourt/index.php (for example) on my destination server, it works, but when I want to use CRON it fails First ...
gilles33366's user avatar
1 vote
2 answers
15k views

How to install the JSON extension for Ubuntu 16.04? [duplicate]

I want to install the JSON extension as is mentioned in prerequisites to use People Api by Google. You can refer to the documentation. I've php7 installed on Ubuntu 16.04.
naan's user avatar
  • 63
3 votes
1 answer
2k views

When will PHP 7.1 be available in official repositories? [closed]

I'm aware that I can install any version of PHP using the answer here: How do I install different (upgrade or downgrade) PHP version in still supported Ubuntu release? I'm running an Ubuntu 16.04 LTS ...
Icode4food's user avatar
-1 votes
2 answers
350 views

How to open a terminal with root privilege from a php based web application

I have a web application in lampp ubuntu machine I need to open a terminal to perform some operations can somebody help me with this Thanks in advance
Asha N's user avatar
  • 1
3 votes
1 answer
4k views

Why does PHP's composer require command hang?

Note: I know this is a PHP question, but - and I could be wrong here - but I think the problem may only exist with PHP, composer on ubuntu. Anyway, almost every tutorial, including composer itself ...
the_velour_fog's user avatar
0 votes
1 answer
2k views

Mail is working from terminal but not working from browser [closed]

I am using ubuntu 14.04. I have installed postfix using {sudo apt-get install postfix}. It is installed successfully. Now I am trying to send mail using terminal, I found that mail is sent the ...
Amit Khurchay's user avatar
0 votes
1 answer
2k views

Amazon Web Service Wordpress Plugin cURL Error

I am having trouble activating a wordpress plugin. Plugin could not be activated because it triggered a fatal error. The official Amazon Web Services SDK requires PHP 5.3.3+ and cURL 7.16.2+ compiled ...
RRowan's user avatar
  • 133
6 votes
1 answer
14k views

Configuring Apache 2.4 with FastCGI on Ubuntu 16.04 - What do I do with php7.0-fpm.conf?

I have managed to get FastCGI working with Apache 2.4 on Ubuntu 16.04 by adapting instructions from this askubuntu thread, this HowtoForge document, and this Digital Ocean tutorial. All those sources ...
Keen Mouse's user avatar
2 votes
1 answer
6k views

How to install lamp server with php 5.3 on ubuntu 16.04?

Is it possible to successful run php5.3 on ubuntu 16.04 or not? I have an PHP application that required only php 5.3 version. Please let me know what version of ubuntu is required to run PHP 5.3 How ...
Rakesh Mali's user avatar
2 votes
0 answers
303 views

Can't install Xdebug (unmet dependencies: php7.1-dev > libssl-dev > libssl1.0.0)

I'm trying to install Xdebug on Ubuntu Zesty (17.04), but am having trouble resolving dependencies. I'm following instructions from this url: https://xdebug.org/wizard.php Point 4. there says "Run: ...
Томица Кораћ's user avatar
1 vote
0 answers
111 views

Why does CircleCI bother with circleci-php-* while I am removing MySQL from it?

Why does this command remove also circleci-php-7.0.11? I am using Ubuntu 14.04 on CircleCI. sudo DEBIAN_FRONTEND=noninteractive apt-get remove --purge mysql-server mysql-client mysql-common How can ...
Speedy's user avatar
  • 31
1 vote
1 answer
1k views

Ubuntu Xenial 16.04 libapache2-mod-php5.6 NO PPA

Problem description: My intention is to enable PHP5 on Xenial 16.04 for an Apache2-related project I have compiled PHP v5.6 from official source and am currently trying to install package libapache2-...
B.S.'s user avatar
  • 11
1 vote
0 answers
880 views

compiling own extension phpize - Cannot find config.m4

I don't have config.m4, needed to compiling my extension. How can I get this file? I add that all question on this forum, explained that it should be. Information when I try use phpize: Cannot find ...
Daro from Poland's user avatar
1 vote
0 answers
95 views

PHP files are not executed on Apache using LAMP

I'm new to Ubuntu, I have Ubuntu 16.04, and I just installed LAMP using this guide https://www.unixmen.com/how-to-install-lamp-stack-on-ubuntu-16-04/ I've created testphp.php file inside /var/www/html ...
Avishay's user avatar
  • 11
3 votes
1 answer
284 views

Apache2 - PHP doesn't work (Unifi portal) [closed]

I am trying to make a simple authorization web page, but their manual is not much informative how to do it. I understand those files and what they do, but I can’t make apache2 work as I need. I am ...
SheldonCopper's user avatar
2 votes
2 answers
8k views

How to open and edit PHP files in Ubuntu server? [duplicate]

When I'm trying to open my PHP file in gedit command through terminal it's showing this error statement. but it's working when nano command is typed. I want to open my php file in sublime or some ...
Anudeepsyamprasad's user avatar
1 vote
2 answers
6k views

speed up process to use more cpu for php script

I'm running a php script which does some operations on database in while loops and I noticed (running top) that it uses about 45% of cpu. I'd like to set to use like 70-80% or 90%. I tried to renice ...
felixRo's user avatar
  • 31
0 votes
0 answers
284 views

php fgets stdin: keyboard control characters

When I open a terminal window (bash shell) and hit Up Arrow, the last command entered is presented. When running a simple PHP script in the same terminal window, and the script reads from STDIN using ...
flymike's user avatar
  • 287
-2 votes
1 answer
65 views

how to protect and clean ISP-library from malicious eval adds [closed]

in a older directory of my ISP i've found many eval code adds, that do not obviously affect the function but it seems to open a trojan-connection. code is: eval(base64_decode("ZXJyb3Jf ..... this ...
Paul's user avatar
  • 61
4 votes
1 answer
6k views

Install php5 alongside with php7

I am on php7 now but I have a legacy program relies on php5 as it is using mysql instead of mysqli. Can I have php5 installed alongside with php7 and switch them around when either of them is needed?
Run's user avatar
  • 2,629
7 votes
1 answer
7k views

What does a2enmod proxy_fcgi setenvif do?

My coworker and I recently spent a long amount of time trying to figure out why PHP 7 was showing as plain text in the browser rather than running. We found an upvoted StackOverflow answer that ...
Goose's user avatar
  • 189
0 votes
0 answers
292 views

How to install wkhtmltopdf on Ubuntu 16.04 (armhf) [duplicate]

I'm trying to install wkhtmltopdf on my Ubuntu 16.04 scaleway server. I've found this tutorial online on how to install it. The problem is I'm stuck at step 3: I'm getting the following error: sudo ...
nielsv's user avatar
  • 111
1 vote
1 answer
5k views

Not able to install composer

curl -sS https://getcomposer.org/installer | sudo php -- --install- dir=/usr/local/bin --filename=composer When I run the above command in terminal I got this this response: Some settings on your ...
Supriya's user avatar
  • 11
3 votes
1 answer
1k views

Can't connect MySQL and Web

I do some coding to connect MySQL and webserver. This is my coding $dbusername = "root"; // enter database username, I used "arduino" in step 2.2 $dbpassword = "qonita84"; // enter database ...
Qonita Salimah's user avatar
1 vote
1 answer
100 views

how to fix web server on ubuntu 16.04 LTS 500 eror when run script php? [closed]

I use LAMP as a web server, why do I get 500 error when I am wrong in just writing php code? Although only a few mistakes. example: <php if($blabla){ echo "superhero"; I just forgot to close it but ...
Zeeb's user avatar
  • 11
1 vote
1 answer
1k views

LAMP is missing PHP module?

I'm implementing some PHP code into my html bit and it seems as if PHP is not being treated as a PHP code but as a plain text instead. I checked my PHP installation with php -v and it's up to date on ...
Mark Alexa's user avatar
0 votes
0 answers
100 views

PHP code not showing on Apache 2.4

I have slight predicament with getting PHP to work on Apache. I have tried everything, restarting the service, reeinstaling php, and apache, but to no avail. There is already a similair question to ...
Aleksa Camilovic's user avatar
0 votes
1 answer
1k views

Install latest PHP version

I want to be free to choose what ever PHP version (could works as fastcgi with Nginx) so I have tried procedures indicated in this official article. However, I got the following error when trying to ...
SaidbakR's user avatar
  • 737
0 votes
0 answers
751 views

Upgrade the package php5 (PHP 5.3.10-1ubuntu3.26) to php 5.6+

We have a mission critical server that cannot be rebooted and need to upgrade to php 5.6 for some scripts we are running. The OS is quite old (Ubuntu 12.04.5 LTS). I have run through some tutorials ...
Paul Cullen's user avatar
1 vote
0 answers
3k views

Execute a Shell Script from php?

I'm trying to generate Android apk files from shell script, I want to execute a shell script file from PHP. When I run the shell script in the terminal, it works perfectly. If I try to run the script ...
Keerthivasan's user avatar
3 votes
1 answer
15k views

The requested URL not found - in Digital Ocean LAMP Webmin server

I'm new to Digital Ocean & Ubuntu, in the midst of migrating from Exabyte shared server's Codeigniter (v3) website to Digital Ocean server Server details/installation : Digital Ocean Droplet - ...
Mavichow's user avatar
  • 151
2 votes
1 answer
6k views

Ubuntu Server 17.04 - 403 Forbidden

Have Instlled for my Server all needed Services as: OpenSSH Server PHP7.1 MySQL phpMyAdmin Apache Tomcat8 FTP (vsftpd) but got still 403 Forbidden on Browser when trying to ...
Gianni's user avatar
  • 111
18 votes
1 answer
60k views

xampplib: line 22: netstat: command not found

When I try to start my xampp I get these errors: sudo /opt/lampp/lampp start Starting XAMPP for Linux 5.6.30-0... XAMPP: Starting Apache.../opt/lampp/share/xampp/xampplib: line 22: netstat: command ...
Ahmed Shaltout's user avatar
0 votes
1 answer
388 views

Toggling Between NGINX and Apache Web Server

I'm a web developer servicing multiple clients. With Ubuntu 16.04 on my local laptop, how would I create a batch script so that I can toggle between using NGINX and Apache Web Server smoothly so that ...
Volomike's user avatar
  • 2,283

1
20 21
22
23 24
52