0 like 0 dislike
1 view
in ROR by Araştırmacı (10.4k points)
nextcloud xampp

9 Answers

0 like 0 dislike
by Araştırmacı (10.4k points)

1- ubuntu üzerine php ve apache kurunuz.

2- apache2.conf üzerinde system folder'ı olarak veriniz.

<Directory /opt/lampp/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

3- apache2 sites-avaliable - 000-default.conf için aşağıdaki değişikliği yapınız

# DocumentRoot /var/www/html
DocumentRoot   /opt/lampp/htdocs

4- User grubuna www-data ekleyiniz

$ id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),1(daemon)

$ id daemon
uid=1(daemon) gid=1(daemon) groups=1(daemon),33(www-data)

6- php.ini dosyasında (etc/apache altında) aşağıdaki satırları düzenliyoruz

pdo_mysql.default_socket=/opt/lampp/var/mysql/mysql.sock

mysqli.default_socket =/opt/lampp/var/mysql/mysql.sock
0 like 0 dislike
by Araştırmacı (10.4k points)
php kurulumunda aşağıdaki modullere dikkat ediniz;

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get do_release_upgrade
sudo apt-get install php
sudo apt-get install php-{bcmath,bz2,intl,gd,mbstring,mysql,zip,fpm} -y
sudo apt-get install -y php7.2-mysqli php7.2-mysql php7.2-xml php7.2-curl php7.2-ldap
0 like 0 dislike
by Araştırmacı (10.4k points)

locate php.ini
ls -la /opt/lampp/var/mysql/mysql.sock 

0 like 0 dislike
by Araştırmacı (10.4k points)
sudo adduser daemon www-data
id daemon
id www-data
sudo adduser -G daemon www-data
sudo systemctl restart apache2.service
id daemon
id www-data
useradd -g www-data daemon
sudo nano /etc/apache2/sites-available/000-default.conf
locate httpd.conf

sudo nano /etc/apache2/apache2.conf

sudo cp  /etc/apache2/apache2.conf /etc/apache2/apache2.conf.orj
sudo nano /etc/apache2/apache2.conf
cat  /etc/apache2/apache2.conf | user
cat  /etc/apache2/apache2.conf | grep user
cat  /etc/apache2/apache2.conf | grep User
useradd -g daemon www-data
sudo adduser www-data daemon
sudo reboot
cd /opt/lampp/
cd htdocs/
nano config/config.
nano config/config.php
sudo nano config/config.php
 nano /etc/apache2/apache2.conf
 sudo nano /etc/apache2/apache2.conf
 sudo -u www-data php occ maintenance:mode --off
 sudo -u www-data php occ  db:add-missing-indices
 sudo -u www-data php occ  db:convert-filecache-bigint
 config:system:set mysql.utf8mb4 --type boolean --value="true"
 sudo -u www-data php occ config:system:set mysql.utf8mb4 --type boolean --value="true"
 sudo -u daemon /opt/lampp/bin/php  updater/updater.phar
 sudo -u www-data php occ upgrade
 sudo -u www-data php occ updater/updater.phar
 sudo -u www-data php occ maintenance:update
 sudo -u www-data php occ maintenance:update:htaccess
 sudo -u www-data php occ maintenance:theme:update
 sudo -u www-data php occ maintenance:repair
 sudo reboot
 sudo nano /etc/apache2/apache2.conf
 sudo nano /etc/apache2/sites-available/000-default.conf
 id www-data
 id daemon
0 like 0 dislike
by Araştırmacı (10.4k points)
web dav hatası için apache.conf dosyasına aşağıdaki satırları ekleyiniz.

<Directory /opt/lampp/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
         <IfModule mod_dav.c>
          Dav off
         </IfModule>
         SetEnv HOME /opt/lampp/htdocs
         SetEnv HTTP_HOME /opt/lampp/htdocs
</Directory>
0 like 0 dislike
by Araştırmacı (10.4k points)

sudo -u daemon /opt/lampp/bin/php  updater/updater.phar

0 like 0 dislike
by Araştırmacı (10.4k points)

The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running "occ db:add-missing-primary-keys" those missing primary keys could be added manually while the instance keeps running.

sudo -u www-data  php occ db:add-missing-primary-keys
    0 like 0 dislike
    by Araştırmacı (10.4k points)
    sudo apt-get install php7.2-gmp
    sudo nano /etc/php/7.2/apache2/php.ini
         memory_limit = 512MY
    0 like 0 dislike
    by Araştırmacı (10.4k points)
    sudo apt-get install php7.2-apcu
    ...