Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
0answers
14 views

MySQL and PHP Injection Attempt

The below query is executed using 'mysqli'. The "ford" should come from a html input which is thereafter split by ' ' (space). I cannot identify how or why the sleep command appears. mm.car like '...
-2
votes
0answers
16 views

Unable to insert in table using mysqli insert query

This is submit_post.php <?php include_once('../db/db_setup.php'); $title = mysqli_real_escape_string($_SESSION['conn'], $_POST['title']); $s_desc = mysqli_real_escape_string($_SESSION['conn'], $...
1
vote
2answers
43 views

Upgrade to the latest PHP version in ubuntu 16.04

I am using NextCloud in my server and NextCloud informs me that: You are currently running PHP 7.0.32-0ubuntu0.16.04.1. Upgrade your PHP version to take advantage of performance and security ...
0
votes
0answers
39 views

How to execute script on my Ubuntu via PHP from site

How can I use PHP to execute a script on my Ubuntu server? The site is hosted on the same machine obviously. I read about exec_shell() and tried this <?php $output = shell_exec("ls /var/www");...
0
votes
0answers
6 views

Upgrade php-fpm package without restarting service

I've looked around here and the manual pages for apt-get, apt, and dpkg. I would like to upgrade the php-fpm package without triggering an immediate restart of the service. I realize of course that a ...
0
votes
1answer
13 views

Unable to completely uninstall apache2, php, mysql and phpmyadmin

It doesn't matter which command I try some folders are still left with the previous configuration which spoils my start over. Ubuntu 18.04.1 LTS
0
votes
0answers
28 views

Cannot install PHP using apt [duplicate]

I tried to install PHP 7.0 but it says it isn't found. I tried apt-update and restart, but it didn't work. I have no idea how to fix this so if you help me it would be great.
0
votes
2answers
34 views

How to upgrade PHP 7.0 to 7.1 in Ubuntu (offline server)?

I need to upgrade PHP 7.0 to 7.1. I am using Ubuntu 16.04 in Linux server. I searched that need to use ondrej package to upgrade. But my trial failed. Is it because my server is not connected to ...
0
votes
1answer
58 views

Mysql is not runing alone, but runing in lampp/xampp

i just started webdevelopment on ubuntu in core php and laravel Framework. I have installed php and all the dependencies but mysql is not working indiviually but its working inside lampp so i began ...
0
votes
1answer
27 views

Starting Apache2 … fail because -> Another web server is already runing, Ubuntu 18.04

I have looked almost everywhere and tried all the solution available on the internet but the apache is not runing. i stoped the apache service using sudo /etc/init.d/apache2 stop and also stopped ...
1
vote
0answers
30 views

Apache works in Ubuntu 18.04 but gets an error reading error.php

Apache works in Ubuntu 18.04 LTS but gets an error reading error.php or phpinfo.php page. The server-status page works so apache is working but can't read php pages. I tried to edit apache2.conf but ...
0
votes
1answer
29 views

How to run ssh command from php? [closed]

I bought a VPS server, and I want to run terminal commands from the file /var/www/html/command.php. I want to run this command: cd /A_DIR and bash start.sh I tried this in command.php: <form ...
0
votes
0answers
108 views

snapd udevmon.go:184: udev monitor observed remove event for unknown device

I'm seeing these messages in the syslog on 18.10. How can I fix this? I've searched around and not found any solutions. The two entries that occur approx. every hour in syslog are: snapd[1893]: ...
0
votes
1answer
44 views

Confused about permission of group `www-data` for `/var/www/html' [duplicate]

My /var/www is this (permissions 755) drwxr-x--- 3 www-data www-data 4096 gen 11 16:27 www My /var/www/html is this (permissions 755) drwxr-xr-x 2 www-data www-data 4096 gen 11 16:27 html NOTE:...
-2
votes
2answers
99 views

Ubuntu 18.04 error install tesseract

I've installed Ubuntu 18.04. I've installed tesseract using sudo apt-get install tesseract-ocr When I type: tesseract -v I had an error: tesseract: symbol lookup error: /usr/lib/x86_64-linux-gnu/...
0
votes
1answer
30 views

What's the difference between unset () and unlink ()? [closed]

I watch tutorial but i can't understand directly the discussion can anyone help me?
0
votes
0answers
13 views

Error in SSL certificate LEMP Statck

I have a Linode server with LEMP stack and Ubuntu 18.04 LTS I Installed the LEMP Stack following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-...
0
votes
1answer
108 views

Php 7.3 extension imagick and gmagick on Ubuntu 18.04

How can i install php extension imagick and gmagick on ubuntu 18.04 LTS, i tried imagick using : sudo apt-get -y install gcc make autoconf libc-dev pkg-config sudo apt-get -y install libmagickwand-...
0
votes
1answer
64 views

Error for Phpldapadmin after install in php function

this error occurred after install PhpLdapAdmin in ubuntu 18.04 : Deprecated: Function create_function() is deprecated in /usr/share/phpldapadmin/lib/functions.php on line 1083 & Unrecognized ...
0
votes
1answer
34 views

I am not able to write on a network drive (Hosted with samba) using a php program. Why?

I have a network drive service hosted on Samba(Whose settings I can't change) when I mount it on my ubuntu pc using mount.cifs I am able to read write it's content. To make a directory or file there ...
0
votes
0answers
21 views

Login to mysql take long time

We have used this following code from https://www.tutorialspoint.com/php/php_mysql_login.htm if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form ...
2
votes
0answers
83 views

How to get the latest PHP 7.3 patches in 18.04?

I have installed PHP 7.3 via the ppa:ondrej/php repository and everything was running smoothly, until I ran across this major 7.3.0 bug with __callStatic which lead to a lot of broken code in my ...
0
votes
0answers
14 views

Adding handlers not working

I am working on multiple PHP versions. I have multiple websites on my server. I want to change one of my website's (Magento2) PHP version from 7.1. to 7.0. 7.0 ,7.1,7.2 are already installed on my ...
0
votes
1answer
73 views

Ubuntu 18.10 Cannot install php7.2-dev for install phpize

I'm having still issues with this on Ubuntu 18.10 with ondrej packages. I want to install php-dev for firebase. When I try to install grpc using pecl It throws me phpize doesn't exist, when I check ...
0
votes
0answers
89 views

Install pecl on ubuntu 18.04 LTS [duplicate]

I want to install pecl to install YAZ Library. I'm using PHP7.2. And also I want to implement https://slims.web.id/web/ on my Ubuntu server. I'm stuck "pecl install yaz" command. So, what is the ...
0
votes
1answer
57 views

Need to give permissions to /tmp/cache and /tmp/templates_c but can't find them

When I open my website it shows me this: The following directories must be writable by the web server: tmp/cache tmp/templates_c Please correct by executing: chmod 777 tmp/cache chmod 777 tmp/...
0
votes
1answer
98 views

localhost/phpmyadmin showing error access denied

I installed xampp on my machine. everything is okay but the phpmyadmin doesn't open up. It is listed with numerous errors as shown in figure or as MySQL said: Cannot connect: invalid settings. ...
0
votes
0answers
55 views

Unable to start apache2

I use Ubuntu 18.04. Command sudo service apache2 restart returns an error. kurusa kernel: apache2[17035]: segfault at 7f478cc64e00 ip 00007f4788e13fcf sp 00007ffdb66f0620 error 6 in libphp7.0.so[...
2
votes
1answer
227 views

How to build PHP 7.3?

I have a problem with building the package for PHP 7.3 from git. At the moment I am using Ubuntu 16.04 with utdatet php 7.0.x. (It's impossible to upgrade Ubuntu 16.04 to 18.04 at my VPS, because it ...
1
vote
0answers
40 views

Ubuntu 18.04 : file creation problem

I installed Ubuntu 18.04 on my machine two days back. Its a fresh installation on a new hard disk. I have an application that was built on PHP 5.5.9 & MySQL 5.5.61. When I installed PHP on ...
0
votes
1answer
46 views

Apache rewrite URL not working in vhost.conf

this my vhost.conf <VirtualHost *:80> <files xmlrpc.php> order allow,deny deny from all </files> ServerName www.myserver.com ServerAlias myserver.com ...
0
votes
2answers
102 views

PHP7.1 has been installed but php -v still show PHP5.6

I've been installed PHP7.1 and my on my laptop has 2 php versions there are PHP 5.6 and PHP7.1 , i tried a2dismod php5.6 and a2enmod php7.1 then i restarted .. and i tried php -v still show me old ...
0
votes
0answers
27 views

Website isn't working after giving permission chmod -R +x [duplicate]

After I gave permission to my website chmod -R +x /home/chmod/websites/myaddress.com when I open this address it shows a long PHP script. How to solve this? <pre><?php #CMS - CMS Made ...
0
votes
0answers
21 views

Installing SWFTools for FlowPapers

I'm trying to get swftools on ubuntu 18.04 running. It is necessary to use the whole functionality of Flowpapers (the tab on the top called "Publish with ASP.NET/PHP"). When running the setup-script ...
0
votes
0answers
69 views

How to enable PDO-ODBC on Ubuntu + XAMPP in order to connect to MS-Access DB?

I want to use a mdb Access Database with PHP 7.2 on Ubuntu 18 + XAMPP. So I've installed the following packages, although not all of them may be required: sudo apt install php7.2-odbc sudo apt ...
1
vote
0answers
79 views

Safely upgrade PHP from 5.6.38 to PHP 7.2+ on Ubuntu 18.04.1 LTS

I am running a production server on Ubuntu 18.04.1 LTS which has PHP 5.6.38 installed. It's serving a PHP 5x application but because of composer and other requirements I need to upgrade it safely on ...
0
votes
2answers
31 views

Can't access web folder after typing a chmod command (error 403)

So I was having issues with Root not being able to use fopen/fwrite through PHP and tried typing this hoping it would help (found it on another site) chmod -R 766 /var/www/html Andddd now I can ...
0
votes
0answers
13 views

That is the *best* way to configure second apache, on different port+config?

I need two apaches because of different modules, may be I can do it myself, but what is the best way to configure second apache with different config for different php version? Main apache stay with ...
2
votes
1answer
67 views

Investigating what keeps changing my php version (apache mod_php) [duplicate]

I'm changing php versions, successfully, but only for a while, then it rolls back. I have several php versions installed: leonid@DevSSD:~$ sudo a2enmod php php5.6 php7.0 php7.1 php7.2 So, I ...
0
votes
0answers
38 views

Set up PHP on Nginx with Shiny server

I have limited knowledge with this and I've been tasked with setting up a Shiny server on our institution's VM. I followed this tutorial and it worked as intended. Now I've been tasked of setting up a ...
0
votes
0answers
103 views

How to enable pcntl fork PHP5.6 in Ubuntu 16.04 ?

here i am using php5.6 and got this information i need to enable it for php threading . how to enable pcntl fork ? thank you
0
votes
0answers
14 views

Wordpress: CSS not loading [duplicate]

My CSS is not loading on my site. The default apache web dir is at /var/www/html/wordpress (where the site files are). This is wp-config.php: define('WP_HOME','https://www.computing101.tk'); ...
0
votes
1answer
12 views

PHP Code Returning the same datetime every time on server with ubuntu

I set this at the start of the script : date_default_timezone_set('Europe/London'); $var = date('h:m:s', mktime()); echo $var; And it outputs this everytime, the only thing that changes is the ...
0
votes
1answer
21 views

Ubuntu 14.04.5 x64 - Perforce Helix and LAMP Server?

Hello im currently using an Ubuntu 14.04.5 x64 hosted online only for for versioning Unreal Engine 4 projects. I installed via terminal (Putty) the Helix Visual Client (P4V) also known as Perforce for ...
1
vote
2answers
95 views

How to use different versions of PHP? [duplicate]

I have several virtualhosts, and I need to run different PHP versions. I have php-fpm and FastCgi installed, but how can I configure it? I'm using Ubuntu 16.04
2
votes
0answers
72 views

End of life PHP 7.0 and Ubuntu 16.04 LTS [duplicate]

The end of life of PHP 7.0 is planned for December 3, 2018 but Ubuntu's support for version 16.04 LTS ends in 2021. The question is, what happens to PHP 7.0 from December? Does Canonical assume ...
3
votes
1answer
188 views

Invalid command 'php_admin_value'

When I want to start Apache2 on my Ubuntu Server, I have this error AH00526: Syntax error on line 49 of /etc/apache2/sites-enabled/bookstyle.sokrator.net.conf: Invalid command 'php_admin_value', ...
0
votes
0answers
198 views

How to add support for MS Access .mdb to PHP7 PDO in Ubuntu 18.04

I needed to be able to read a .mdb (Microsoft Access© (JET) file) copied from a Windows system on Linux, specifically Ubuntu 18.04. I searched dozens of web sites and could not find a straightforward ...
0
votes
1answer
153 views

“ Uncaught Error: Call to undefined function mysqli_connect()”

I'm using mysql Server version: 5.7.24-0ubuntu0.18.04.1 (Ubuntu), trying to do a simple connection to the database but whenever I try to connect to the database, I get this error. 127.0.0.1:34236 [...
0
votes
0answers
32 views

PHP - System folder path does not appear to be set correctly, but there's no system folder in application

I have configured LAMP on my KUbuntu 18.4.1 LTS I'm using apache2 2.4 and PHP 7.2.10 While I'm trying to access my application OSPOS (Open Source Point of Sales) it's giving Your system ...