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.

841 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer
136 views

I want to create a video of same resolution as of image

I am able to create a video from image and audio.I am using a single image.The problem is that as i crop the image and creates video again then image pixels get burst in that video. I am using this ...
Mukul Kashyap's user avatar
0 votes
1 answer
81 views

Ubuntu Server 20.10 - www server

I know that for most people this topic may be trivial, but not for me. This is lamp server, I have the latest version of php and mysql. I found out today that I can't use Canonical Livepatch Service ...
Mantykora 7's user avatar
0 votes
1 answer
94 views

Confused about php/ apache in ubuntu

I installed xampp for ubuntu. I run it using /opt/lampp/lampp start. But somehow, another apache, mysql & php got installed while installing other application. Now, there is conflict between the ...
get_coding's user avatar
0 votes
0 answers
514 views

Localhost HTTP ERROR 500

I have problem that when I add to my page index.php it says This page isn’t workinglocalhost is currently unable to handle this request. HTTP ERROR 500 Before this problem I had a problem with port. ...
David's user avatar
  • 1
0 votes
0 answers
74 views

Error when installing phpmyadmin

I have installed XAMPP and am trying to set up the phpmyadmin so that I can install BambooInvoice. While going through the installation process for phpmyadmin, I get the following error. After hours ...
masha's user avatar
  • 1
0 votes
0 answers
578 views

Unable to install mbstring on ubuntu 16.04

I am installing mbstring on ubuntu 16.04 which is required for laravel 8. The following error occurred. root@localhost:~# sudo apt-get install php7.4-mbstring Reading package lists... Done Building ...
Rameez Raja's user avatar
0 votes
0 answers
90 views

Apache DocumentRoot

I have a Apache installed on Ubuntu 18. Config file /etc/apache2/apache2.conf does not contain DocumentRoot directive. But there is /etc/apache2/sites-enabled/000-default which defines DocumentRoot as ...
Čamo's user avatar
  • 729
0 votes
0 answers
903 views

The following packages have unmet dependencies: php7.4 +ubuntu 20.04

I upgraded Ubuntu from 18 to 20.04. After upgrade, my codeignator is not working. Type: Error Message: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' Filename: /var/www/tech/system/database/...
mayasakthi's user avatar
0 votes
0 answers
367 views

PHP Page won't display on Apache2

So I have apache2, php7.4 and mysql installed but when I try and view my .php file on the internet with my domain which I've tested and works it just shows a blank page. I'm able to view the info.php ...
vapouryh's user avatar
0 votes
1 answer
2k views

When I try to upgrade to PHP 7.4, it says I already have the newest version... but I don't

I have followed these steps... sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.4 php7.4-common php7.4-cli Output is... Reading package lists... Done Building dependency ...
arnoldbird's user avatar
0 votes
1 answer
1k views

Apache multiple Virtual hosts document Root not working

Hello I try to do test that ubuntu 20.04.01 APACHE : 192.168.23.136 win10 20H2 : DHCP glpi : /var/www/glpi/index.html test.com : /var/www/test.com/public_html/index.html file : 000-...
ckris L's user avatar
0 votes
0 answers
224 views

How install software that using old mysql, php version with newest LAMP version?

I try to install an old version of Invision Power Board (2.x) but when I want to configure database etc server return a blank white page You can try here to understand what I mean http://datatables....
Jack Rock's user avatar
0 votes
1 answer
430 views

Unable to connect LAMP

I have Ubuntu 18.04, Apache, MySQL and PHP7.4 in my local environment and I have been setting up various projects locally in both Laravel and WordPress. I haven't done this in over a year since I have ...
user150107's user avatar
0 votes
0 answers
1k views

VS Code: No PHP executable is set

I am busy with a Udemy course about WordPress. The course uses VS Code as text editor and I love it, but keep getting a "No PHP executable is set error". PHP was loaded as part of the Local-...
Johann van Vuuren's user avatar
0 votes
1 answer
75 views

Intercepting PHP traffic

I would like to know how feasible it is (and then the ability to stop) someone running malicious code on a Ubuntu server that reads the data sent to, and handled by PHP (I am using the apache module ...
Antony's user avatar
  • 271
0 votes
0 answers
3k views

PHP sessions not working in my server after refresh

I tried to use sessions, but are not working, so I tested them with $_SESSION['one'] = 'one'; print_r($_SESSION); I refreshed the browser, it works Array ( [one] => one ) I commented the $...
Immo Broker's user avatar
0 votes
2 answers
2k views

PHP code is not rendered properly on web browser

I've just installed Apache with PHP-FPM based on the following tutorial How to Setup Apache with PHP-FPM on Ubuntu 20.04 wolf@linux:~$ dpkg -l apache2 libapache2-mod-fcgid software-properties-common ...
user avatar
0 votes
0 answers
641 views

RewriteRule not working with PHP-FPM Ubuntu 18

I have just installed successfully PHP-FPM in Ubuntu 18.04.5 and PHP Version 7.4.11. However there is one problem with the Rewrite in a .htacess file. This works fine on another server and is known to ...
Franz Holzinger's user avatar
0 votes
0 answers
5k views

How to enable SSL for virtual host on Apache Server in Ubuntu 18.04 Machine

I am struggling from 3-4 days to create virtual host with different PHP version. I want the main website to run on PHP 7 (I used PHP 7.4) and a subdomain on PHP 5.6. The subdomain site is too old and ...
Sanjay Goswami's user avatar
0 votes
1 answer
832 views

How do I update PHP version, 7.2.24-0ubuntu0.18.04.6 to latest version?

I got this warning in Joomla: Your PHP version, 7.2.24-0ubuntu0.18.04.6, is only receiving security fixes from the PHP project at this time. This means your PHP version will soon no longer be ...
user3191018's user avatar
0 votes
1 answer
891 views

PHP gd2 and pdo_mysql errors

I have a PC running PHP7.2 and a laptop running PHP7.4 and on both I installed the php7.x-mysql and php7.x-gd but I am getting these errors. It worked before, but after upgrading my laptop to 7.2 and ...
FlorisdG's user avatar
  • 133
0 votes
1 answer
75 views

Problems making a developer space on ubuntu 20.04

Good afternoon, im going to summarize my problem, as a developer i moved to ubuntu i use and i need that my project folder be located on my localhost environment for php to run, reading the Lampp ...
Zargathronax's user avatar
0 votes
1 answer
1k views

.htaccess not taking effect in php project

I am running Ubuntu 20.04 and am currently creating an api using php. I added an .htaccess file which SHOULD redirect any 404 pages back to my index.php. I am asking this in askubuntu because I ...
CodeConnoisseur's user avatar
0 votes
1 answer
879 views

Ubuntu 20.04 server installation on VirtualBox with Windows 10 Shared folder permission issue

I am trying to install Magento2.4 Open source on the following setup. VirtualBox 6.1 installed on Windows 10 Nginx server installed on the VirtualBox Ubuntu 20.4 Server installed on the Virtualbox Php ...
Mukesh's user avatar
  • 113
0 votes
1 answer
1k views

Create a file in apache server

I am trying to make a really basic file transfer webpage on my apache2 server and I succeeded, then I moved the index.php file to a folder for putting my other projects in order. I remember when my ...
Agent Pluton's user avatar
0 votes
1 answer
1k views

530,5.7.0SMTP server error: MAIL FROM command failed Detail: Authentication Required

PHP Mail error with the message: 530,5.7.0SMTP server error: MAIL FROM command failed Detail: Authentication Required Following are the key sections of my PHP Script. new PHPMailer(true) Host as '...
Naren's user avatar
  • 1
0 votes
0 answers
434 views

CRONTAB - Send mail on restart

I am trying to send an email when starting my machine with crontab. @reboot (cd /home/untitle/lab/php/initmail/ && ./initmail) @reboot mkdir /home/untitle/testcrontab With this configuration, ...
Alexis Gatuingt's user avatar
0 votes
0 answers
35 views

On Ubuntu 16.04 web server, second "<?" gives an error

In an Ubuntu 16.04 local LAMP web server, running a '.php' script, the first '<?' is correctly treated but the second '<?' (after a first '?>') gives an error suspecting there is an XML ...
Jordi SV's user avatar
0 votes
1 answer
1k views

How can I install a package with specific PHP versions if the package itself does not contrain it?

My package does not define specific PHP version in its dependency, but only works with older PHP versions (7.2). On Ubuntu 20.04 the apt install <my-package> will want to install php7.4-mysql, ...
Doka's user avatar
  • 320
0 votes
1 answer
5k views

Access denied when using mysqli with php

I want to connect to my database on my Linux machine with PHP (PHP 7.2.24-0ubuntu0.18.04.6 (cli)) using mysqli(). But whenever I try to access it, I get this error: Warning: mysqli_connect(): (HY000/...
Netsu's user avatar
  • 11
0 votes
1 answer
2k views

Why is the Apache2 module not in the mods-available library?

I installed both PHP 5.6 and 7.4 and their apache2 modules: $ sudo apt install php5.6 libapache2-mod-php5.6 $ sudo apt install php7.4 libapache2-mod-php7.4 However, when I try to enable php7.4, I get ...
Erel Segal-Halevi's user avatar
0 votes
1 answer
1k views

After upgrading to 20.04, my PHP+MySQL website stopped working

I had Ubuntu 16.04 where I could run a local website with PHP and MySQL. I upgraded to 20.04 and installed PHP 5.6 and linked it to Apache2: sudo apt install php5.6 sudo apt install libapache2-mod-...
Erel Segal-Halevi's user avatar
0 votes
1 answer
116 views

PHP error on Ubuntu 16.04

I want to install CodeIgniter 4, but this error stops the installation. PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/20190902/intl (/usr/lib/php/20190902/intl: ...
Arry Afrizal's user avatar
0 votes
0 answers
122 views

installing php5 with php7 already install

I would like to install php5 but keep the php7 that is already installed. I need php5 to mainly edit and update an older site (mainly a joomla site) and updates to get to php7. Might have to rune php5 ...
tpage's user avatar
  • 1
0 votes
1 answer
530 views

problems with : php7.0-fpm

SO: ‪Ubuntu 16.04.6 LTS‬ + Plesk Obsidian - 18 I have a VPS, and every time it tries to install or update something, I get errors. In the end, it seems that everything points to the installation of ...
pitufo_ubuntu's user avatar
0 votes
1 answer
652 views

How can I install phalcon on Ubunutu?

I am installing the Phalcon framework on Ubuntu. I used Apache as a web-server. I installed phalcon and psr. I can find shows that phalcon and psr in the output phpinfo(): When using composer install,...
Maryam's user avatar
  • 101
0 votes
1 answer
74 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 ...
Čamo's user avatar
  • 729
0 votes
1 answer
467 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 change ...
Alessandro Candeloro's user avatar
0 votes
0 answers
30 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....
Guardian's user avatar
  • 113
0 votes
0 answers
129 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: ...
Nate's user avatar
  • 530
0 votes
0 answers
41 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. ...
GSM-S's user avatar
  • 594
0 votes
0 answers
2k 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 ...
mikekehrli's user avatar
0 votes
1 answer
109 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 ...
Leonardo Petrucci's user avatar
0 votes
1 answer
1k 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.
Abdullah Sheriff's user avatar
0 votes
1 answer
332 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. ...
dinoAtlearning's user avatar
0 votes
1 answer
47 views

php and unbuntu 19.10

When I run php file in a browser instead of running file its open a box to save or open the file!!! Whats the problem? When I type this command: $ sudo systemctl status apache2 ● apache2.service - ...
Hamed Movahed's user avatar
0 votes
0 answers
145 views

XAMPP for Linux 5.6.20 is not showing uploaded files using php in lubuntu 16.04lts

XAMPP for Linux 5.6.20 is not showing uploaded files using php in lubuntu 16.04lts ` include 'header.php'; $profile_id=$user['username']; $imgSrc=""; $result_path=""; $msg=""; if(!isset($_POST[...
Srikar Nagam's user avatar
0 votes
1 answer
1k views

Mediawiki 1.34 doesn't find Localsettings.php on Windows -Ubuntu

I'm trying to install Mediawiki 1.34 on Ubuntu 18.04.4 LTS under Windows (10) Subsystem for Linux via tarball - apparently all the modules are working fine: phpmyadmin, sql database, apache2. http://...
Francis Franck's user avatar
0 votes
0 answers
119 views

lamp server not working

LAMP server doesn't work. I didn't run any updates. It was working fine till yesterday Here's mysql error: ``` 2020-03-22T01:10:30.107784Z 0 [Note] Giving 0 client threads a chance to die ...
brahimi ahmed farouk's user avatar
0 votes
2 answers
174 views

PHP not uninstalling

When I run sudo apt purge php I see Reading package lists... Done Building dependency tree Reading state information... Done Package 'php7.0' is not installed, so not removed 0 to upgrade, 0 ...
cb7's user avatar
  • 101

1
8 9
10
11 12
17