Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » [GUIDE] Another Round at Configuring this Properly in debian-12.5.0-amd64 w/ apache2 & xdebug(Major Attempt #2 Configuring Eclipse PDT in debian-12.5.0-amd64 w/ apache2, xdebug, mariadb)
[GUIDE] Another Round at Configuring this Properly in debian-12.5.0-amd64 w/ apache2 & xdebug [message #1864816] Wed, 10 April 2024 23:18
Brandon Kastning is currently offline Brandon KastningFriend
Messages: 2
Registered: March 2024
Junior Member
I am Heavy Documenting my debian-12.5.0-amd64 Installation on my Lenovo Thinkpad T420 Laptop w/ Eclipse PDT 2024-R3 from binary .tar.gz

I hope this will help others; and if I run into any problems; It would be nice if someone would chime in with constructive advise/criticism.

Part 1:

My System is as follows:

- debian 12.5.0-amd64
- i-7 @ 2.20GHZ (8 CPUs w/ output of nproc) | Lenovo Thinkpad (T420)
- 16GB RAM
- 256GB TIMETEC SSD HDD (Generic Brand on Amazon and it's very descent for being $20). Even in comparison to my More expensive 4TB Samsung EVO SSD HDD (This one feels as if it out performs without proper bench-marking to provide Evidence).

I use sddm for my Display Manager and LXQT as my Desktop Environment using "KWin" as it's backend.

I have installed the latest Eclipse PDT 2024 R3 from the Linux_86_x64 .tar.gz and extracted and moved it to /opt/eclipse-php/

(No snap install available or any .debs).

Then ran:

root@TutumCustodiaDragonR1:~# chown -R digitalninja:digitalninja /opt/eclipse-php/


Then switched to My Laptops Username "digitalninja" using:

root@TutumCustodiaDragonR1:~# su - digitalninja

digitalninja@TutumCustodiaDragonR1:~/$


Then changed directories to LXQT's Menu Editing Folder to Create a Custom Entry:

digitalninja@TutumCustodiaDragonR1:~/$ cd .local/share/applications

digitalninja@TutumCustodiaDragonR1:~/.local/share/applications$


In my LXQT Application Launcher / Menu I made the following modification to add Eclipse PDT 2024 R3 to my Menu under "Programming"

Then I created a new .desktop File using nano editor and the -c switch (Which Tells nano to open the file and display the line count (active on the one you're on & how many total). Once I learned this; it made my life a whole lot better in Linux/BSD.

digitalninja@TutumCustodiaDragonR1:~/.local/share/applications$ nano -c eclipse-php.desktop

[Desktop Entry]
Type=Application
Name=Eclipse PHP IDE (2024-R3)
GenericName=PHP Code Editor
Comment=PHP Code editor
Keywords=Programming;Development;IDE;Editor;Code;
Exec=/opt/eclipse-php/eclipse
Icon=/opt/eclipse-php/icon.xpm
Terminal=false
MimeType=text/html;application/atom+xml;application/x-coldfusion;text/x-clojure;text/coffeescript;application/json;text/css;text/x-diff;text/jsx;text/markdown;application/mathml+xml;application/rdf+xml;application/rss+xml;application/sql;image/svg+xml;text/x-python;applicat<lication/xml;application/vnd.mozilla.xul+xml;application/x-yaml;text/javascript;application/javascript;text/mjs;application/mjs;text/cjs;inoode/directory;
Categories=Development;IDE;Utility;TextEditor;
StartupNotify=true
StartupWMClass=eclipse


Then once you click your LXQT Menu; it auto-populates and aggregates the Icon included in the Eclipse PDT 2024 R3 x86_64.tar.gz Package and Correctly Links the Binary Executable File.

And LXQT Menu -> Programming -> Eclipse PHP IDE (2024-R3)

Next...

Regarding My Local Development Setup; I have the following installed.

Apache2 Web Server (debian 12.5.0-amd64 Bookworm Stock Version):

root@TutumCustodiaDragonR1:~# apache2 -v
Server version: Apache/2.4.57 (Debian)
Server built:   2023-04-13T03:26:51
root@TutumCustodiaDragonR1:~#


PHP 8.3.4 (With debian Repositories from https://packages.sury.org/php/) :

root@TutumCustodiaDragonR1:~# php -v
PHP Warning:  Cannot load module "http" because required module "raphf" is not loaded in Unknown on line 0
PHP 8.3.4 (cli) (built: Mar 29 2024 05:24:33) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.4, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.4, Copyright (c), by Zend Technologies
    with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans


root@TutumCustodiaDragonR1:~#

I also made sure that Xdebug 3.3.1 was installed. I am configured using PHP8.3-FPM

I noticed after proofing my Part 1 that I had an error in my php -v output.

root@TutumCustodiaDragonR1:~# php -v
PHP Warning:  Cannot load module "http" because required module "raphf" is not loaded in Unknown on line 0
PHP 8.3.4 (cli) (built: Mar 29 2024 05:24:33) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.4, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.4, Copyright (c), by Zend Technologies
    with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans


I performed the following to remedy this:

root@TutumCustodiaDragonR1:~# apt install php8.3-raphf

root@TutumCustodiaDragonR1:~# a2enmod proxy_fcgi

Now all of that is Smoothed out...

root@TutumCustodiaDragonR1:~# php -v
PHP 8.3.4 (cli) (built: Mar 29 2024 05:24:33) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.4, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.4, Copyright (c), by Zend Technologies
    with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans

root@TutumCustodiaDragonR1:~#


Part 2: (To Be Continued):


Best Regards,

Brandon Kastning | digitalninja
Computer Science 101 Noob

[Updated on: Wed, 10 April 2024 23:37]

Report message to a moderator

Previous Topic:How do I change the default Run Web Browser? (Mine opens an Application that isn't a Web Browser)
Next Topic:Quick Type Hierarchy not working anymore
Goto Forum:
  


Current Time: Thu May 02 13:16:16 GMT 2024

Powered by FUDForum. Page generated in 0.02436 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top