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
0
votes
0answers
27 views

14.04 How to update to the latest version of PHP inorder to run WordPress 5.4.1 [closed]

I'm currently running Ubuntu 14.04 and trying to use the latest version of WordPress v5.4.1. When trying to run my WordPress site, I'm receiving the error: Your server is running PHP version 5.5.9-...
1
vote
0answers
29 views

Ubuntu PHPMYADMIN ''No such file or directory &mdash" error

My phpmyadmin with mysql worked perfectly for 2 months, and now I am getting this problem (i did absolutely nothing, I'm not sure why I get it). No such file or directory — The server is ...
0
votes
1answer
16 views

Apache2 allow PHP

I have a new installation of Apache2 and PHP. But it seems PHP is not allowed on Apache. Server returns php as plain text. There are tons of files in /etc/apache2 directory. I dont know where to find ...
0
votes
0answers
7 views

lampp php version change

I have changed php version from terminal and now from terminal if i check php -v its displaying my version 7.4 I changed php version on terminal using this command sudo update-alternatives --config ...
0
votes
0answers
33 views

(error code 28) Resolving timed out after 5000 milliseconds Ubuntu server - DNS?

Intent: I am trying to load images programmatically using cUrl, into Prestashop in a XAMP via SSH. What I tried: I have looked around and the issue may be on the setup of the server. I tried to ...
0
votes
0answers
62 views

What is /var/tmp/php-fpm ? This command is consuming high % of CPU

Somebody kindly explain what kind of a file is /var/tmp/php-fpm ? And its uses. This command is consuming high CPU% when I checked using top command. File is getting recreated even if I remove it.
0
votes
0answers
6 views

nginx responds to public IP address using correct root directive but responds with apache2 default root using domain name

My Ubuntu 18.04 server is running nginx and apache2 using this guide I have my site-specific nginx config file /etc/nginx/conf.d/my_domain.conf. Inside the file, I have: server { root /srv/...
0
votes
1answer
53 views

Cannot run pdo_sqlite on Ubuntu 20.04 with PHP 7.4

I'm trying to install and run PDO for sqlite3 on Ubuntu 20.04 with PHP 7.4 and I can't figure out what I'm not doing right. I installed sqlite3 and php-common and uncoment this lines in php.ini: ...
1
vote
1answer
40 views

Access denied for user root@localhost

I installed phpMyAdmin on Ubuntu LAMP 18.04. Now, when I visit /phpmyadmin/ and try to login with username root and the password that I set up when installing phpMyAdmin, I get the following error ...
0
votes
0answers
53 views

How to Install PEAR, the PHP Package?

I'm trying to install the PHP extension, PEAR, but I need to install a specific version, 7.3, in order to be compatible with a PHP app I'm going to be installing via Composer. If I do this: $ sudo ...
0
votes
0answers
11 views

replacing php 7.3 files

I seemingly erased 2 files by accident trying to add a line to them, following instructions from a tutorial sudo bash -c "echo extension=/usr/lib/php/20180731/mcrypt.so > /etc/php/7.3/fpm/php.ini" ...
1
vote
0answers
33 views

PHP7.3 startup warning messages

I am working with Ubuntu 18.04, Apache2 and have upgraded to PHP7.3 from PHP7.2 but I am getting warnings in my php log file indicating that something is not quite right. PHP 7.3 is up and running ...
0
votes
0answers
18 views

phpmyadmin issue regarding Undefined index: dbi. Backtrace

I have installed Xampp in Ubuntu 20.04. I am having an issue in phpmyadmin, Though I was facing problem to access localhost/phpmyadmin initially after installtion, I was able to resolve the previous ...
0
votes
2answers
37 views

Connect to mysql database from a PHP file

I have created a form which takes input from user and will feed it to MYSQL database. I have used the following command $servername = 'localhost'; $username = 'root'; $password = ''; ...
0
votes
0answers
15 views

After update apache2 stops working

when I run systemctl status apache2.service I get ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: ...
0
votes
1answer
63 views

All PHP 7.4 are not available in 20.04

I just did a do-release-upgrade that went fine, but I am still stuck at PHP 7.3. $ apt install php7.4 Reading package lists... Done Building dependency tree Reading state information... Done Some ...
0
votes
0answers
21 views

Some questions about web server permissions

I have made a clean install of Ubuntu 20.04 and later installed Apache2, PHP, and MySQL. I started to read about file permissions for web servers. I am confused to what happened to the www-data group. ...
0
votes
1answer
118 views

How to install and configure php phalcon extension in Ubuntu 20.04?

I have installed phalcon via: sudo apt update sudo apt upgrade sudo apt install mysql-server sudo mysql_secure_installation sudo mysql -u root -p mysql> CREATE USER 'admin'@'localhost' IDENTIFIED ...
1
vote
0answers
48 views

install phpmyadmin on Ubuntu 20.04

I have a problem with install phpmyadmin on Ubuntu 20.04. I have an error: An error occured while installing the database Error is like here but I can't fix that. This article said that I must ...
0
votes
0answers
10 views

autorun issue on startup

Running ubuntu 18.04 server. I am trying to install and run the Stripe Php Client. To perform this task you have to cd to a specific directory run the following command php -S localhost:4242 I can ...
0
votes
0answers
29 views

Unable to install suPHP in Ubuntu Server 18.04

# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic # apache2ctl -v Server version: Apache/2.4.29 (Ubuntu) ...
0
votes
0answers
26 views

Nginx+Docker+PHP-FPM SSL error

I have created a self signed SSL certificate , but I'm facing with this error in my NGINX error log when I try to access to the site via https : 2020/05/05 12:49:49 [crit] 6#6: *14 SSL_read() ...
0
votes
0answers
14 views

PHP extensions can't find library files

I get an error telling me that laravel could not find the PDO SQlite driver: Illuminate\Database\QueryException: could not find driver (SQL: PRAGMA foreign_keys = ON;) ... PDOException: could not ...
0
votes
1answer
74 views

Upgrading from Ubuntu 18.04 to 20.04 / PHP7.4 has broken composer & curl

I've recently upgraded from 18.04LTS to 20.04LTS & have come across the following issue with composer. Running composer install produces the following error messages: Problem 1 - embed/embed ...
1
vote
1answer
69 views

Is it possible to downgrade from php 7.4.5 to php 7.4.3

yesterday I downloaded the new ubuntu 20 version and long story short it blew up my mysql and php installation; I have managed to fix some of the errors already but it looks like ubuntu upgraded me ...
0
votes
0answers
34 views

How do I properly set date.timezone in php.ini

I've seen this question asked a number of times, but never seen a satisfactory answer. I've just installed icinga2 and during setup its giving me the error: "The PHP config `date.timezone' is not ...
0
votes
1answer
20 views

Can I install PHP on my local development machine?

I'm looking to install PHP on my desktop Ubuntu installation to be able to develop locally without uploading my files. What packages would I need to install to do so? Last time I tried to install ...
0
votes
0answers
51 views

UI Keeps Freezing Because of PhpStorm/Jetbrains

I am working on an Ubuntu 18.04 Distro and I use Phpstorm everyday and often during the day the ui freezes for about 5-10 seconds. I checked my syslog and get the following error: Apr 28 13:11:34 ...
0
votes
0answers
14 views

Problem with clean php session files

There is virtual machine with Ubuntu (for Moodle) Every day at almost the same time this machine is locked. In logs: -Starting clean php session filed -Started clean php session files .... And ...
0
votes
2answers
99 views

php my admin showing php code instead of login

hello i know there are a lot of questions talking about this problem but the thing is i installed apache2 and mysql and php 7.3 but when i try to enter localhost/phpmyadmin it shows ?php /* vim: set ...
1
vote
0answers
149 views

Ubuntu 20.04 - Can't Install Older PHP Versions

I decided to install Ubuntu 20.04 and give it a go. I am loving it so far, but I have run into an issue that may prevent me from using it. The default repositories have PHP 7.4, which is awesome, ...
8
votes
4answers
3k views

Unable to install PHP 7.3 on Ubuntu 20.04

I want to install PHP 7.3 on Ubuntu 20.04 for my Nginx web server, when I try to install the 7.4 version everything is fine but for 7.3 I get the following error: E: Unable to locate package php7.3 ...
0
votes
0answers
53 views

PHPBrew - None of the supported PHP extensions (MySQLi, MySQL, PDO_MySQL) are available

Note: The error string comes from adminer, but the DB connection doesn't work for any php project I am a PHP web developer, and I need to work with multiple php versions (for newer or older projects)....
3
votes
3answers
2k views

Cant install PHP 7.2 on Ubuntu 20.04

I added ondrej PPA. And tried install php 7.2, but looks like PPA has not been updated yet. What are my workarounds?
0
votes
0answers
93 views

20.04 cannot downgrade to PHP 7.3 from php7.4 [duplicate]

I need to change my version for work on laravel project. I tried: sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt-get install php7.3 ...
2
votes
1answer
37 views

Install PHP 7.3 or 7.4 without PPA Ubuntu16.04

I'm wondering if there's a way to download php7.3 or 7.4 without using a ppa? I haven't been able to find a good alternative I tried out apt install lamp-server^ but that wasn't sufficient enough and ...
1
vote
0answers
27 views

Register, Login system not working PHP [closed]

I am trying to write a register, login system i have LAMP AWS instance I am using the below https://www.tutorialrepublic.com/php-tutorial/php-mysql-login-system.php to start with object oriented I ...
0
votes
1answer
28 views

How to add multiple sites in nginx on localhost

I'm using Ubuntu 18.04, and I have just finished installing LEMP on my local machine. I'm having trouble figuring out how to host multiple sites on nginx. For example, I have a site called "test" and ...
1
vote
0answers
30 views

Ubuntu 18.04 phpmyadmin refresh error

I installed phpmyadmin on ubuntu 18.04, I enter my username and password correctly, but the page is refreshed and there is no error. token id is generated. (http://my-ip/phpmyadmin/index.php?lang=tr&...
0
votes
1answer
20 views

PHP Apache script running as www-data unable to mkdir

I am rather new to Ubuntu and I am enjoying my server experience so far, but I am having an issue with creating a directory with php, despite the permissions being correct (as far as I am aware). I am ...
0
votes
0answers
35 views

403 Forbidden Error in existing PHP Projects

I was a Windows 10 until recently, I upgraded to Ubuntu 18.04. I've already setup my PC with Apache, PHP and MySQL. Everything seems to work fine until I copied my old PHP project folders to the ...
1
vote
0answers
32 views

How can I query a PHP script with curl through a Proxy?

I like to build a Proxy checker with a self hosted PHP backend. While testing I found this Proxy: 207.154.231.211:8080 that shows a strange behaviour. It is possible to reach similar services like: ...
0
votes
1answer
34 views

Installed PHP I need to Get write the timezone

I have a problem regarding the timezone in Ubuntu. It's asking for the timezone and I don't know what to do.
1
vote
0answers
25 views

ubuntu 18.04 - removed installed LAMP and on reinstall I have errors

I hope I didn't break my current ubuntu instance, I was trying to avoid that. I have followed this official installation for LAMP + wordpress. After understanding that this particular installation ...
0
votes
0answers
34 views

Unable to save submitted data in a MySQL database using PHP

Please may I ask for some assistance on this as I have been trying to fix for 2 days now,. Here is my code <?php $GLOBALS['title']="Admission-HMS"; $base_url="http://localhost/hms/"; require('./...
0
votes
0answers
13 views

Can't restart apache2, trying to downgrade to php5.6

I have no experience with apache2/php/creating web pages, but I am working on moving information from an old Linux machine to a new one. The machine hosts a local web browser to monitor data coming ...
0
votes
1answer
48 views

Manage file deletion in PHP

I am creating a PHP website where you upload 2 images, and it combines them, then lets you download the final product. Currently I have it set up to create a UserID that is stored in cookies. Then all ...
0
votes
1answer
37 views

how to disable wildcard subdomain in ubuntu 18.04 for localhost

Hello and thank you your time, I have Xampp 7.2.29 installed and it's working fine but i don't know why i can access any wildcard subdomain in localhost even i don't have created any in host file. ...
0
votes
0answers
8 views

PHP/SQLite3 form pre-populated does not update database when hitting submit

Situation: On a web page, the end user is asked to provde a database id. They enter the database id, hit submit, and a pre-populated form appears where they can edit any parts of the record that they ...
1
vote
0answers
28 views

“Delete Permanently” instead of “Move to Trash” in '/var/www/html' Ubuntu 18.04 LTS

After successful installation of LAMP from this link, everything works fine but when I tried to delete some files, it shows me Delete Permanently option instead of Move to Trash. If I put the same ...

1
2 3 4 5
46