7 Replies - 488 Views - Last Post: 24 June 2020 - 09:58 AM Rate Topic: -----

#1 sayhello   User is offline

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 365
  • Joined: 12-November 17

installing a php development-environment & IDE :: recommendations

Posted 25 May 2020 - 02:53 PM

hello dear Experts, good day dear Andrewsw, hello Modi123, good day dear Artificalsoldier, hello dear No2pencil

hello at all,



first of all: i am very glad to be here at this great platform of idea-exchange and knowledge sharing.


i am willing to install a php development-environment on my Nobebook: i want to install Mx-Linux (19.1) - with a good editor or IDE - recommendations:

Which are the steps to install and set up the php development-environment?

so the question is: Can you recommend a good editor or IDE for

a. php
b. Python

look forward to your tipps and recommendations. I allready have little experience with ATOM, VSCode and (for Python: Eric,) for programming microcontroller: upycraft and various other tools.


now i want to start with a good and sustainably developed system - guess that we do not count ATOM in here - since i guess that this has got its best times allready. The new star seems to be VSCode - can i use this for Python as well as for PHP!?


update: did a quick search on google and found some information: see below:

two approaches and two processes - installing php as a third party repository

- a. sury the third party-respository:
. b. II install LAMP:



- a. sury the third party-respository:
cf: https://www.itzgeek....9-debian-8.html

see also: sury the third party-respository: https://deb.sury.org/ - a third-party repository which offers PHP 7.4 / 7.3 / 7.2 / 7.1 for Debian operating system.

By default, Debian 10 ships PHP v7.3. So, you can either install PHP v7.3 from Debian repository or SURY repository. Skip this section if you want to install PHP 7.3 from the Debian repository. However, if you want to install PHP 7.4 / 7.2 / 7.1 on Debian 10, you must set up SURY repository.

Update the repository cache.
sudo apt update
Install the below packages.


sudo apt install -y curl wget gnupg2 ca-certificates lsb-release apt-transport-https


Import the public using the below commands.

wget https://packages.sury.org/php/apt.gpg

and
sudo apt-key add apt.gpg

Add the SURY repository to your system.

echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list


Update the repository index.
sudo apt update
Install PHP



In this post, we will see how to install PHP 7.4 / 7.3 / 7.2 / 7.1 on Debian 10 / Debian 9.

Add PHP Repository SURY, a third-party repository which offers PHP 7.4 / 7.3 / 7.2 / 7.1 for Debian operating system.


PHP Support for Web ServerBoth Apache and Nginx do not support processing of PHP files by default when the browser requests the PHP page. So, we need to install the PHP package on the server to support PHP files.

PHP Support for Apache:
You can install a below package with Apache webserver to support PHP. This package provides the PHP modules for Apache 2 web server. Change PHP version, if required


PHP Support for NgnixNginx does not have a PHP modules package to support PHP. But, we can use the PHP FastCGI Process Manager to handle PHP requests. Change PHP version, if required

sudo apt install -y php7.4-fpm
Once you have installed FastCGI manager, add socket details in Nginx virtual host.

server {




# other codes

  location ~* \.php$ {
    fastcgi_pass unix:/run/php/php7.4-fpm.sock;
    include         fastcgi_params;
    fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
    fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;
  }
}



again - see here https://www.itzgeek....9-debian-8.html


II install LAMP:

https://mxlinux.org/...ing/lamp-setup/
This page describes how we can install LAMP, which stands for Linux Apache MariaDB PHP. For this purpose, we need to set up:

a working Apache2 webserver;
a configured MariaDB database server;
PHP for work with Apache; and finally
phpMyAdmin with a configured pmadb database.
The needed time for the whole installation is around 20 minutes but it may depend on the performance of your Internet connection. This will require you spend some time in the terminal to properly set up.

Getting root access
To get root access, we should open a terminal and enter the following command:

su –



After entering a valid password, the prompt should turn red and end with a #.

Apache
The following is a step-by-step process to install the Apache2 webserver that will be used in a basic LAMP setup.

Installing Apache2
First of all, we can make sure that we have root access and enter the following as root:

apt install apache2



Starting Apache2 Service
To start the Apache server, we can enter the following as root
service apache2 start



If we ever want to restart the Apache server:
service apache2 restart



To stop the apache2 service:
service apache2 stop



To automatically start the apache service after reboot
update-rc.d apache2 defaults



Testing the installation
Debian and consequently MX build of Apache2 stores the html pages under /var/www/html/

Now we can point our favorite Web browser to: ‘localhost’ or 127.0.0.1. You should see the default Apache2 welcome page.


so the question is: Can you recommend a good editor or IDE for

a. php
b. Python


look forward to your tipps and recommendations
. I allready have little experience with ATOM, VSCode and (for Python: Eric,) for programming microcontroller: upycraft and various other tools.
now i want to start with a good and sustainably developed system - guess that we do not count ATOM in here - since i guess that this has got its best times allready. The new star seems to be VSCode - can i use this for Python as well as for PHP!?



question - wich ide do you suggest!?

This post has been edited by sayhello: 25 May 2020 - 02:59 PM


Is This A Good Question/Topic? 0
  • +

Replies To: installing a php development-environment & IDE :: recommendations

#2 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2751
  • View blog
  • Posts: 8,056
  • Joined: 15-January 14

Re: installing a php development-environment & IDE :: recommendations

Posted 25 May 2020 - 02:58 PM

For PHP I use PHPStorm, it has a lot of good features. It's made by Jetbrains, they also have a Python IDE. I don't know how the licensing works, if you can use both IDEs with a single license or not, I just have a single license. If you need just a basic editor then I use Sublime Text for that when necessary.
Was This Post Helpful? 1
  • +
  • -

#3 sayhello   User is offline

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 365
  • Joined: 12-November 17

Re: installing a php development-environment & IDE :: recommendations

Posted 26 May 2020 - 02:30 AM

good day dear ArtificalSoldier, :bigsmile:

first of all - many many thanks for the quick reply - and for the idea-sharing and for letting me know your experiences with the various IDEs and editor


View PostArtificialSoldier, on 25 May 2020 - 09:58 PM, said:

For PHP I use PHPStorm, it has a lot of good features. It's made by Jetbrains, they also have a Python IDE. I don't know how the licensing works, if you can use both IDEs with a single license or not, I just have a single license. If you need just a basic editor then I use Sublime Text for that when necessary.


- i will have a closer look at PHPStorm -
- i will also look at Jetbrains ... (note: i have worked with PyCharm in the past)
- i did not have any experience with Sublime Text - but i have heard alot of it.

- did you ever try out VSCode ?


Many thanks for all your tipps - many thanks for all you do. You make this place so great!!
And you have helped me so often. Thank you :bigsmile:

have a great day.

regards Say Hello ;)
Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2751
  • View blog
  • Posts: 8,056
  • Joined: 15-January 14

Re: installing a php development-environment & IDE :: recommendations

Posted 26 May 2020 - 10:38 AM

I haven't used VSCode before.
Was This Post Helpful? 1
  • +
  • -

#5 sayhello   User is offline

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 365
  • Joined: 12-November 17

Re: installing a php development-environment & IDE :: recommendations

Posted 26 May 2020 - 11:03 AM

hi there good evening dear ArtificalSoldier


- many thanks for your quick answer and all the hints; i am on MX-Linux: i just have installed PHP on the machine. Now i need to add a
editor or an ide


i look out for PHP-Storm

:since vscode is used by a increasing number of folks i think i have to try out.


btw: what about setting up vscode as a php editor - sensu https://blog.theodo....hp-development/


is this a recommended way to go!? i have installed vscode on my machine now i want to setup it as a editor for the work with php.


i will have a closer look at the options. Perhaps i find PHPStorm in the repos too - then i can try out this also!

have a great day.
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 15781
  • View blog
  • Posts: 63,246
  • Joined: 12-June 08

Re: installing a php development-environment & IDE :: recommendations

Posted 26 May 2020 - 11:12 AM

Yes, VSCode can be used for php.

https://code.visuals...s/languages/php
Was This Post Helpful? 1
  • +
  • -

#7 nicephotog   User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 36
  • Joined: 06-June 20

Re: installing a php development-environment & IDE :: recommendations

Posted 24 June 2020 - 06:05 AM

Netbeans IDE
or
Context editor
Was This Post Helpful? 0
  • +
  • -

#8 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2751
  • View blog
  • Posts: 8,056
  • Joined: 15-January 14

Re: installing a php development-environment & IDE :: recommendations

Posted 24 June 2020 - 09:58 AM

ConTEXT? The one with the icon that's a red C with a lightning bolt? Is that being developed again? Development kind of stopped when the original author decided to sell it, the community raised a bunch of money to buy it, some other guy outbid us because the total we raised was public, we gave our money to the author anyway, and then the new guy never did anything else with it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1