Posts for PHP Category
Remove index.php from NextCloud urls
Linux & PHP & Ubuntu

Remove index.php from NextCloud urls

By default NextCloud has index.php in the urls, it’s not a show stopper at all but it’s good to have nice clean urls when sharing.

Tested on NextCloud 11 Ubuntu 16.04.1 server.

Login to your server and check 1st if rewrite module is enabled.

apachectl -M

If not, enable it with env module by below command:

a2enmod rewrite a2enmod mod_env

I assume you have installed nextcloud in /var/www/nextcloud. Just to make sure the .htaccess file has correct owner and group.

chown www-data:www-data /var/www/nextcloud/.htaccess

Now we will add one line of code to config.php:

vim /var/www/nextcloud/config/config.php

Add the following line to $CONFIG array:

'htaccess.RewriteBase' => '/',

Now let’s...

How to install PHP-fpm and MariaDB in CentOS 7
CentOS & Database & Linux & PHP

How to install PHP-fpm and MariaDB in CentOS 7

In the last article we installed Nginx in CentOS 7. In this article we will extend our previous how-to and add how to install...

WordPress HTTP Error on Nginx
CentOS & Linux & PHP

WordPress HTTP Error on Nginx

It happened to me few days back when i try to upload an image via WordPress media library over 1MB of size. WordPress would...

Speed Up your PHP site with APC

Speed Up your PHP site with APC

PHP APC is cache module provided by pecl and can be install via pecl. I assume you already had installed pecl.

sudo pecl install apc

That...

×