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
17 views

Update Php version to Php7.4

last day I update my server which is ubuntu0.18.04.1 to the PHP7.4 version, when I run the command Php -v it shows me that the server has version Php7.4, But on the WordPress dashboard, it doesn't the ...
0
votes
1answer
24 views

How to install php8.0-mbstring for php8.0? It keeps installing to php7.2

I am trying to install Laravel. I am on Ubuntu 18.04.5 LTS, have php 8.0.2, and running Apache2. My issue is that I can't install Laravel as it keeps giving the error that I don't have the 'mbstring' ...
0
votes
1answer
18 views

How to set php 8.0 as default version in ubuntu server

For some reason, i have to install PHP 7.4 and PHP 8.0 in the same ubuntu server. By default when i install php 7.4, it shows it is the default version when use the command php -v. But i want to run ...
0
votes
0answers
12 views

Do Cron Job need MTA when sending email with PHPMailer

I'm using CRON Job to send an email alert to the user when it is near the submission due date. But when I want to test it with sending a simple email first, it keeps showing (CRON) info (No MTA ...
-4
votes
0answers
28 views

while using dvwa ,ive got an error like “the php module gd is not installed”.while installing the php7.4 module gd ,i've got this error [closed]

┌──(kali㉿kali)-[~] └─$ sudo apt-get install php7.4-gd [sudo] password for kali: Reading package lists... Done Building dependency tree... Done ...
0
votes
0answers
18 views

Will 18.04 upgrade to a newer version of PHP?

I understand that that php packages will receive security updates for the life of 18.04, but will the main repository ever include a newer version than 7.2?
0
votes
1answer
34 views

My LAMP Custom Server won't display PHP code

I have a 64-bit Ubuntu 20.04.2 LTS. I made myself a LAMP custom server by mostly following this tutorial. I already had PHP and apache2, and I didn't install the workflow-speeding custom commands, but ...
0
votes
0answers
18 views

AWS ARM EC2 Not able to access apache after installation

So, I pull up my favorite instructions to install LAMP. https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04 AWS only has instructions for ...
0
votes
1answer
46 views

php-fpm /status file not found

OS: Ubuntu 20.04.2 Webserver: Nginx 1.18.0 PHP: 8.0.5 I wanted to activate the /status page for PHP-FPM and tried the following: In /etc/php/8.0/fpm/pool.d/, I added the line pm.status_path = /...
0
votes
1answer
24 views

php NumberFormater locale

My PHP $MoneyFormat = new NumberFormatter('en_US.utf8', \NumberFormatter::TYPE_CURRENCY); print $MoneyFormat->format(5.12); gives me 5.12E0 Why is that? I expect of course $5.12 If I change the ...
0
votes
0answers
29 views

Systemd service keeps timing out

This question follows on in many ways from one I had asked a while ago and to which I had got an excellent answer from @alexandre-teles. The Context I am in the process of creating a mobile app that ...
0
votes
0answers
14 views

PHP 7.1 takes forever to load on docker ubuntu bionic

Have the following build instructions RUN apt-get update RUN apt-get -y install software-properties-common # Get the PHP library RUN LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php RUN apt-get -...
0
votes
0answers
18 views

Why am I redirected /admin/install/install.php?

Even though I am the admin and I have installed this PHP script on Ubuntu 20.04.2. It redirects me to the above-mentioned URL. The website's interface does not open. I need help!
1
vote
2answers
62 views

Why apt-upgrade command didn't update PHP version?

I ran sudo apt-get update && sudo apt-get upgrade command on ubuntu 18.04 server. When I checked the PHP version after, it was PHP 5.6. I don't remember the PHP version before upgrading the ...
0
votes
0answers
22 views

Can't open Xampp Control panel

I am trying to Xampp control open Panel sudo /opt/lampp/manager-linux-x64.run Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /run/user/1000/gdm/Xauthority which ...
15
votes
4answers
2k views

Can I trust a repo I am unfamiliar with to provide me a secure PHP 8.0 package?

Throughout internet, I've only found references to add ondrej/php repository in order to upgrade to PHP-8 (on Ubuntu, if that matters). I am not familiar, either who is ondrej (sorry for that, maybe ...
1
vote
1answer
70 views

Ubuntu 18.04: XAMPP 8.0.3 + Laravel 8.* + PHP 8.*: Deprecation Notice + Unknown package has no name defined

While trying to install Laravel 8, I got the following warning messages: I have installed XAMPP for Linux 8.0.3 and have PHP Version 8.0.3 installed within the XAMPP package. I am suspecting that ...
0
votes
0answers
20 views

Blank Screen from phpinfo

I've been using Xampp for a php site and decided it was redundant, uninstalled it in favor of the lamp-server with: sudo apt-get install lamp-server^ Apache2 is working fine on test. I replaced the ...
0
votes
0answers
39 views

error creating new symfony project

I have installed symfony with these two commands: sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony sudo chmod a+x /usr/local/bin/symfony and when creating a new project with this ...
0
votes
0answers
32 views

Ubuntu server strange behavior

Please help me ... I'm not a very experimented user ...have some notions but my logic is not working :( The story is the following more then 10 years ago (maybe in 2010) decided to use a PC in our ...
0
votes
2answers
23 views

Separate LAMP in 2 servers

I wanna isntall apache + php in a server and my sql in another server How can they communicate ? What should i install in both servers and what should i do to let them communicate so the web ...
0
votes
0answers
33 views

Why subdomain is not working in Ubuntu nginx server?

There a running Laravel application in the root folder of my ubuntu nginx server. Now i am trying to create a subdomain and run another Laravel application there. For instance, findosman.xyz (root, ...
0
votes
1answer
129 views

Cannot switch PHP version from 8.0 to 7.4

I'm trying to switch the PHP version from 8.0 to 7.4. I run the command below without success: sudo a2dismod php8.0 sudo a2enmod php7.4 sudo service apache2 restart Then when I open a local webpage ...
0
votes
0answers
15 views

How can I install php5 and php5-mysql in Ubuntu 18.04?

I have an application that used php5 and php5-MySQL, I tried to use php5.6 and php5.6-mysql, but it doesn't work because of Grant Privileges. How can I install php5 in Ubuntu 18.04 ?! Note: I can't ...
0
votes
0answers
18 views

Whong php-config, right php -v and phpize

This is okay phpize PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718 This is also okay php -v PHP 7.2.34-18+ubuntu18.04.1+deb.sury.org+1 (cli) ...
0
votes
0answers
26 views

Ubuntu Crashes maybe cleaning php seassion

Well I'm starting in this world of servers, I installed the LEMP model and webmin, but for some time now my server has been falling. Apr 2 17:39:55 penguin systemd[1]: Starting Cleanup of Temporary ...
0
votes
1answer
59 views

do-release-upgrade fails with ubuntu 16.04 with plesk installed

I have an older Ubuntu 16.04.7 LTS server with Plesk Obsidian 18.0.34 Update #2 and I am trying to upgrade to 18.04 LTS. Everything is up to date but when I execute do-release-upgrade it complains ...
0
votes
1answer
29 views

How to display a whole php website file set in apache2?

I am new to web page design, I have seen graph editors used for example in windows. The question is that I have been working on Ubuntu server and I have done everything through vim and saving those ...
1
vote
1answer
1k views

How can I fix: MySQL can't find mysqli.so or xml.so

I bought a new laptop and installed Ubu 20.04. I downloaded the latest apache2, php and mysql I got phpMyAdmin from their own webpage, because, previously, when I used the Ubuntu supplied version, I ...
0
votes
1answer
22 views

i got this errors on service restart apache2 how can i solve it

error image in my pc I tried to uninstall and install apache2 but I got the same error
0
votes
1answer
106 views

How to skip php 8 libs installation during installation of phpmyadmin

My server environment is as follows : Ubuntu 18.04 Mysql : 5.6 Installed Php : 5.6 Installed Im trying to install phpmyadmin by executing sudo apt install phpmyadmin which give me following prompt ...
0
votes
0answers
20 views

Why won't my OJS 2.4.2 install start after going through the set up?

I'm running Ubuntu 20.04 with php5.6 because it's an older software program. From the CLI I enter- PHP tools/install.php and the setup begins. After going through the prompts it says **"*Install ...
0
votes
0answers
16 views

Apache2 wont to load php file Ubuntu 20.10 [duplicate]

I have problem with php, simply dont want to load .php files. I have installed apache2, php, and libapache2-mod-php. If you need more information, please let me know. screenshot: <?php phpinfo();
0
votes
1answer
131 views

php-xdebug can only be installed for php 8

I am having on my system: $ php --version PHP 7.4.2 (cli) (built: Feb 1 2020 17:49:29) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7....
0
votes
0answers
43 views

phpmyadmin not found after install on VPS

Hello i installed phpmyadmin on ubuntu 20.04, i did all the updates, when i type on Google Chrome IP/phpmyadmin says Not Found The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) ...
0
votes
1answer
39 views

How to debug code in php language? [closed]

im just install php on my machine without installing LAMP, the problem is when I miss the semicolon, the terminal doesn't show any error I already do some research but i have no clue about this, Is ...
0
votes
0answers
30 views

apache (xampp) downloads index.php file instead of showing of serving the website (laravel)

I've tried to add AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps to /opt/lampp/apache2/conf/httpod.conf but in vain also I tried to uninstall xamp 7.4 and ...
0
votes
1answer
147 views

CodeIgniter 4 on Ubuntu 20.04

I have installed my ci4 app in /var/www/html/app directory. Then created codeigniter.conf file in /etc/apache2/sites-available directory and wrote below code *** <VirtualHost *:80> ...
0
votes
0answers
20 views

redirecting to admin/install/install.php on vps not on wordpress

I needed some help after getting full access of site Maintenance Settings Control panel it is still redirecting to admin/install/install.php why is that
0
votes
2answers
26 views

Check if a cronjob still writes to a log file

I want to define a cronjob like this: @hourly /path/to/my/script.sh &> "/path/to/my/logs/$(date +%Y-%m-%d_%H-%M-%S.txt)" So it should write the output of the script to a log file. ...
0
votes
1answer
88 views

Using Ubuntu 20.04 and phpmyadmin on php 7.4 how to setup non localhost connection

I am using a HEADLESS cli server so there will not be a gui on localhost for this, SSH won't allow a browser to work, and adding an xservice for remote display really is not worth it for this server. ...
1
vote
2answers
96 views

How to develop for Ubuntu [closed]

I know how to program in C/C++, JavaScript and PHP and I want to develop some GUI tools for Ubuntu. How shall I start? In other similar posts the OP suggests Python and he doesn't refer explicitly GUI....
0
votes
0answers
94 views

PHP: call to undefined utf8_decode fatal error while using PHP 7.2

I wonder if you can help me solve the error "PHP Fatal error: Uncaught Error: Call to undefined function utf8_decode() in /var/www/andreamorouk/public_html/test.php:65 Stack trace: #0 {main} ...
1
vote
0answers
108 views

Unable to install XDebug extension for PHP 8. Ubuntu 20.04.2

I entered the output of phpinfo() func on xDebug wizard webpage and then followed all the steps as described in output. Everything looked fine. No errors. The only concern about suggested actions is ...
0
votes
1answer
24 views

Logged in Sudo User keeps getting Permission Denied Messages

I have been trying to install a LAMP setup on a linux PC under Ubuntu 20.04lts. I am the primary sudo user and I keep getting "permission denied" messages when trying to save nano files and ...
0
votes
1answer
78 views

Apache https redirect URL error

I have an Apache website and I set up a redirect so that it will always go to the HTTPS version of the site. I added this under the port 80 Virtualhost configuration: Redirect permanent / https://...
0
votes
1answer
101 views

How to upgrade PHP7.2 to PHP7.4 in Ubuntu in windows10(Linux Subsystem)

I need to upgrade the default PHP version 7.2 to 7.4 in Linux(ubuntu) subsystem in windows10. Who can tell me the operation step.
0
votes
1answer
44 views

Phpmyadmin not found, when running laravel application

I installed phpmyadmin on my vps Ubuntu 20.04.1 LTS with nginx/1.18.0 (Ubuntu). I created a symbolic link: sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin Furthermore, I tried to secure my ...
0
votes
1answer
84 views

Cannot display “xampp-linux-x64-8.0.2-0-installer.run”

Apparently i can not run the executable cause I need a runner or something. Does anybody know how to run it or install xampp with php 8 from the terminal? :) https://www.apachefriends.org/es/index....
0
votes
0answers
118 views

Apache not starting after switching to PHP 8

on Ubuntu 16 I have installed a new PHP 8.x version, now I have PHP7.0, PHP7.4, and PHP8. After installation PHP8 I changed the PHP version by using. 1) sudo a2dismod php(current_version) 2) sudo ...

1
2 3 4 5
48