Categories
Linux Mastering Development

How to make apache access the resource on the other disk mounted?

The disk partition sda4 is a ntfs disk. sudo blkid |grep sda4 /dev/sda4: UUID="0042E54842E54350" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="70f5093c-b320-4325-88bb-97748f522332" I mount it automatically when booting. cat /etc/fstab UUID=0042E54842E54350 /media/debian/0042E54842E54350 ntfs-3g rw,user,exec,umask=000 0 0 Now create a web project mydoc on /media/debian/0042E54842E54350,set ownership and file’s mode: sudo chown -R www-data:www-data /media/debian/0042E54842E54350/mydoc sudo chmod 755 -R /media/debian/0042E54842E54350/mydoc […]

Categories
Linux Mastering Development Ubuntu

PostgreSQL – Peer authentication failed for user “postgres”

I have a bot that runs on my Windows machine and I recently bought an Ubuntu virtual server. After a series of like infinite errors, I just reset the server completely and retrying from scratch. You can look here to see another post of some of my previous errors: https://stackoverflow.com/questions/63310926/no-pg-hba-conf-entry-for-host-connect-call-failed-invalid-data-directory-for?noredirect=1#comment111984138_63310926 So now when I try […]

Categories
Linux Mastering Development

How to make apache access the resource on the other disk mounted?

The disk partition sda4 is a ntfs disk. sudo blkid |grep sda4 /dev/sda4: UUID="0042E54842E54350" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="70f5093c-b320-4325-88bb-97748f522332" I mount it automatically when booting. cat /etc/fstab UUID=0042E54842E54350 /media/debian/0042E54842E54350 ntfs-3g rw,user,exec,umask=000 0 0 Now create a web project mydoc on /media/debian/0042E54842E54350,set ownership and file’s mode: sudo chown -R www-data:www-data /media/debian/0042E54842E54350/mydoc sudo chmod 755 -R /media/debian/0042E54842E54350/mydoc […]

Categories
Mastering Development

PHP: MySQL query gets sometimes executed twice; More requests than actually sent

I’m currently working on a simple web application, built with php, which uses a MySQL database. Yesterday i noticed that sometimes, the MySQLi query, which inserts the data submitted via post, gets executed more than once. Sometimes i have 5-6 duplicate entries in my database. It looks like this: ID Name Timestamp 1 blah 2020-08-09 […]

Categories
Linux Mastering Development

How to make apache access the resource on the other disk mounted?

The disk partition sda4 is a ntfs disk. sudo blkid |grep sda4 /dev/sda4: UUID="0042E54842E54350" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="70f5093c-b320-4325-88bb-97748f522332" I mount it automatically when booting. cat /etc/fstab UUID=0042E54842E54350 /media/debian/0042E54842E54350 ntfs-3g rw,user,exec,umask=000 0 0 Now create a web project mydoc on /media/debian/0042E54842E54350,set ownership and file’s mode: sudo chown -R www-data:www-data /media/debian/0042E54842E54350/mydoc sudo chmod 755 -R /media/debian/0042E54842E54350/mydoc […]

Categories
Mastering Development

Problem prototype inheritance res partner odoo 8

I create new class by prototype inheritance from res partner and add fields and methods, but this has effect on res partner creation from UI I get this error: Traceback (most recent call last): File "/vagrant/odoo/openerp/http.py", line 546, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/vagrant/odoo/openerp/http.py", line 583, in dispatch result = self._call_function(**self.params) File "/vagrant/odoo/openerp/http.py", line […]

Categories
Linux Mastering Development

How to make apache access the resource on the other disk mounted?

The disk partition sda4 is a ntfs disk. sudo blkid |grep sda4 /dev/sda4: UUID="0042E54842E54350" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="70f5093c-b320-4325-88bb-97748f522332" I mount it automatically when booting. cat /etc/fstab UUID=0042E54842E54350 /media/debian/0042E54842E54350 ntfs-3g rw,user,exec,umask=000 0 0 Now create a web project mydoc on /media/debian/0042E54842E54350,set ownership and file’s mode: sudo chown -R www-data:www-data /media/debian/0042E54842E54350/mydoc sudo chmod 755 -R /media/debian/0042E54842E54350/mydoc […]

Categories
Linux Mastering Development

How to make apache access the resource on the other disk mounted?

The disk partition sda4 is a ntfs disk. sudo blkid |grep sda4 /dev/sda4: UUID="0042E54842E54350" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="70f5093c-b320-4325-88bb-97748f522332" I mount it automatically when booting. cat /etc/fstab UUID=0042E54842E54350 /media/debian/0042E54842E54350 ntfs-3g rw,user,exec,umask=000 0 0 Now create a web project mydoc on /media/debian/0042E54842E54350,set ownership and file’s mode: sudo chown -R www-data:www-data /media/debian/0042E54842E54350/mydoc sudo chmod 755 -R /media/debian/0042E54842E54350/mydoc […]

Categories
Linux Mastering Development

How to make apache access the resource on the other disk mounted?

The disk partition sda4 is a ntfs disk. sudo blkid |grep sda4 /dev/sda4: UUID="0042E54842E54350" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="70f5093c-b320-4325-88bb-97748f522332" I mount it automatically when booting. cat /etc/fstab UUID=0042E54842E54350 /media/debian/0042E54842E54350 ntfs-3g rw,user,exec,umask=000 0 0 Now create a web project mydoc on /media/debian/0042E54842E54350,set ownership and file’s mode: sudo chown -R www-data:www-data /media/debian/0042E54842E54350/mydoc sudo chmod 755 -R /media/debian/0042E54842E54350/mydoc […]

Categories
Mastering Development

Behaviour discrepancy with Docker container

I am developing a small Java app that is supposed to check an email inbox. When I deploy it in my production environment and execute the jar, the connection to the inbox is well established using the port 110. Issue: I put the jar within its own Docker container, the port 995 (secured connection) is […]