[Gambas-user] gb.web.gui application with apache2

Safiur Rahman isafiur at gmail.com
Thu Apr 30 16:11:08 CEST 2020


Sorry I am using ubuntu 19.10. The System Information is:

[System]
Gambas=3.14.90
OperatingSystem=Linux
Kernel=5.3.0-46-generic
Architecture=x86_64
Distribution=Ubuntu 19.10
Desktop=UBUNTU:GNOME
Theme=Fusion
Language=C.UTF-8
Memory=3817M

[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.10
GStreamer=libgstreamer-1.0.so.0.1601.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2404.8
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.90.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.12.4
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_IM_MODULE=ibus
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=<user>
DISPLAY=:0
GB_GUI=gb.qt5
GDMSESSION=<user>
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=9436
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=<user>
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_IM_MODULE=ibus
GTK_MODULES=gail:atk-bridge:appmenu-gtk-module
HOME=<home>
IM_CONFIG_PHASE=1
INVOCATION_ID=1c6e7ac0a6ad4e86a3167c8be706ac76
JOURNAL_STREAM=9:43034
LANG=C.UTF-8
LOGNAME=<user>
MANAGERPID=1567
PATH=<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=<home>
QT4_IM_MODULE=ibus
QT_IM_MODULE=ibus
QT_LOGGING_RULES=*.debug=false
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1812,unix/<hostname>:/tmp/.ICE-unix/1812
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=1682
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
USERNAME=<user>
WINDOWPATH=2
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-<user>:/etc/xdg
XDG_CURRENT_DESKTOP=<user>:GNOME
XDG_DATA_DIRS=/usr/share/<user>:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=<user>
XDG_SESSION_TYPE=x11
XMODIFIERS=@im=ibus
_=/usr/bin/dbus-update-activation-environment

On 4/30/20, Safiur Rahman <isafiur at gmail.com> wrote:
> The related packages I used are followings:
> http://www.safiur.com.np/container/webapps.zip
>
> On 4/30/20, Safiur Rahman <isafiur at gmail.com> wrote:
>> Hi Benoît
>>
>> I will explain you everything in detail. I am using ubuntu 19.04 with
>> gambas daily build (ppa:gambas-team/gambas-daily). As the package
>> doesn't contain gambas-gb.web.gui I downloaded the source code from
>> the repository and created installable package and then installed.
>> https://launchpad.net/~gambas-team/+archive/ubuntu/gambas-daily/+sourcefiles/gambas3/3.14.90+git6577.c443337+build179c7bb3~ubuntu19.10.1/gambas3_3.14.90+git6577.c443337+build179c7bb3~ubuntu19.10.1.tar.xz
>>
>> Apache2 installation:
>> sudo apt install apache2
>> cd /etc/apache2/mods-enabled
>> sudo ln -s ../mods-available/cgi.load
>> systemctl restart apache2
>>
>> I created two exact applications in gambas (New project -> Web Form
>> Application):
>> 1) testapp (with gb.web.form)
>> 2) newapp (with gb.web.gui)
>> I created installable package for both applications. As executables
>> need to go to /usr/lib/cgi-bin/ folder I changed the target of both
>> executables. I installed both. Now I can access both applications from
>> my firefox browsers.
>> 1) I can access http://localhost/cgi-bin/testapp
>> 2) I cannot access http://localhost/cgi-bin/newapp .The apache2
>> error.log produces following error:
>> [Thu Apr 30 19:37:27.937666 2020] [cgi:error] [pid 774:tid
>> 140524387108608] [client 127.0.0.1:38492] AH01215: gbx3: unable to
>> find startup file: /usr/lib/cgi-bin/newapp
>>
>>
>> Please guide me if I have done any mistake. Also tell me if you can
>> run newapp (code attached) then I will format my system and retry.
>> (All related codes and packages are attached)
>>
>
>
> --
> Regards
> Safiur Rahman
>


-- 
Regards
Safiur Rahman


More information about the User mailing list