Web Developer Menu

UUID: web-developer-menu@infiniteshroom
Last edited:
3 weeks ago 2024-10-25, 04:09
Last commit: [d71a274c] web-developer-menu@infiniteshroom: Add German translation (#6534)

A Menu for PHP/MySQL Web Developers

Log In To Comment!

8 Comments

Carlos Yoan
Carlos Yoan-3 weeks ago
Don't work in Linux Mint 22
jerrywham
jerrywham-1 year ago
You have to change line 71 and line 106 to use mariadb instead of mysql : Line 71 : this.mysqlEnabledSwitch = new PopupMenu.PopupSwitchMenuItem(_("MySQL Server"), checkService("mariadb")); Line 106 : this.mysqlEnabledSwitch.setToggleState(checkService("mariadb")); //reload state
jerrywham
jerrywham-1 year ago
Thank you for this very usefull applet. Just a issue with using sudo command. You may use pkexec instead. So, this is how I modify your code : var CommandConstants = new function() { this.COMMAND_START_APACHE = "pkexec systemctl restart apache2"; this.COMMAND_STOP_APACHE = "pkexec systemctl stop apache2"; this.COMMAND_START_MYSQL = "pkexec systemctl restart mariadb"; this.COMMAND_STOP_MYSQL = "pkexec systemctl stop mariadb"; this.COMMAND_APACHE_CONFIG_EDIT = "/home/yourname/.local/share/nemo/scripts/EditApacheConfig"; this.COMMAND_PHP_CONFIG_EDIT = "/home/yourname/.local/share/nemo/scripts/EditPhpConfig"; this.COMMAND_LAUNCH_PHPMYADMIN = "xdg-open http://localhost/phpmyadmin/"; this.COMMAND_LAUNCH_WEBDIR = "xdg-open http://localhost/"; this.COMMAND_OPEN_WEBDIR = "nemo /var/www/"; } Please change this sample with your home directory (in APACHE_CONFIG_EDIT and PHP_EDIT_CONFIG commands). For pkexec manual, "pkexec will not allow you to run X11 applications as another user since the $DISPLAY and $XAUTHORITY environment variables are not set". So to have acces to $DISPLAY and $XAUTHORITY, you have to write a script in your .local directory. These scripts can be like that : * for EditApacheConfig : #!/bin/bash pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY subl /etc/apache2/sites-enabled/000-default.conf * for EditPhpConfig #!/bin/bash pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY subl /etc/php/8.1/apache2/php.ini This way, you can modify your version of php without change the code of the applet. You could explain that in the help menu of the applet and/or in this web page. Regards.
Rendra Pratama C
Rendra Pratama C-3 years ago
thank you
EvGrizli
EvGrizli-3 years ago
интересно. работает. debian 10
Александр
Александр-4 years ago
Does not work on Debian 10 Buster
Padre2
Padre2-4 years ago
Looks useful for running LAMP, is it still supported?
cloweling
cloweling-6 years ago
great work...