Web Developer Menu

UUID: web-developer-menu@infiniteshroom
Last edited:
2 months ago 2023-03-21, 17:04
Last commit: [e2a459b5] Add spanish translation (#4764)

A Menu for PHP/MySQL Web Developers

Log In To Comment!


jerrywham-2 months 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-2 months 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-1 year ago
thank you
EvGrizli-2 years ago
интересно. работает. debian 10
Александр-3 years ago
Does not work on Debian 10 Buster
Padre2-3 years ago
Looks useful for running LAMP, is it still supported?
cloweling-5 years ago
great work...