This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

AlanQ
AlanQ

Well, I almost succeeded :)

Having re-familiarised myself with how to set up a MySQL database, the install went fairly smoothly.

I fell into one bear trap if you leave install.php and its accompanying files and folder inside install-master, your TLD will be /FolderWhereItShouldBe/install-master/ :S

and I had one fail

Administration Area Use the following link to log into the administration area: http://192.168.1.103/FolderWhereItShouldBe/install-master/backend

So I clicked on the link and got

404 Not Found The requested URL /FolderWhereItShouldBe/install-master/backend was not found on this server.

I have followed the advice of @mohsin-2 here (http://octobercms.com/forum/post/octobercms-backend-not-found) by changing RewriteBase in .htaccess to /FolderWhereItShouldBe/install-master/ , but I get the same 404 Not Found.

According to phpinfo(), mod_rewrite is installed.

Just tried @dokonrada6550 advice here (http://octobercms.com/forum/post/you-dont-have-permission-to-access-after-install): Adding Options Indexes FollowSymLinks to the beginning of .htaccess. ...Still no luck.

Incidentally, nothing that I have tried has affected my ability to access the non-backend -- /FolderWhereItShouldBe/install-master/ is fine.

Any ideas gratefully received.

Last updated

AlanQ
AlanQ

Update 1

2) Get 404 Not found error when navigating to http://192.168.1.103/FolderWhereItShouldBe/install-master/backend

https://octobercms.com/docs/services/error-log:

When you first start using OctoberCMS, error and exception handling is already configured for you. There are two ways the event log can be accessed:

The event log can be viewed in the file system by opening the file storage/logs/system.log. Log entries are always created when an error page is shown and for certain exception types.

There is no system.log file in storage/logs/ despite 404 Not Found errors.

From experience,

directories need to be 755 = rwx rx rx

and files need to be 644 = rw r r

chmod 755 $(find /FolderWhereItShouldBe -type d)

chmod: cannot access './FolderWhereItShouldBe/install-master/vendor/symfony/finder/Symfony/Component/Finder/Tests/Fixtures/with': No such file or directory

chmod: cannot access 'space': No such file or directory

ls -al ./FolderWhereItShouldBe/install-master/vendor/symfony/finder/Symfony/Component/Finder/Tests/Fixtures:

total 40

drwxr-xr-x 7 www-data www-data 4096 Apr 5 21:56 ./

drwxr-xr-x 8 www-data www-data 4096 Apr 5 21:56 ../

drwxr-xr-x 3 www-data www-data 4096 Apr 5 21:56 A/

drwxr-xr-x 3 www-data www-data 4096 Apr 5 21:56 copy/

-rw-r--r-- 1 www-data www-data 29 Apr 5 21:56 dolor.txt

-rw-r--r-- 1 www-data www-data 41 Apr 5 21:56 ipsum.txt

-rw-r--r-- 1 www-data www-data 53 Apr 5 21:56 lorem.txt

drwxr-xr-x 3 www-data www-data 4096 Apr 5 21:56 one/

drwxr-xr-x 2 www-data www-data 4096 Apr 5 21:56 r+e.gex[c]a(r)s/

drwxr-xr-x 2 www-data www-data 4096 Apr 5 21:56 with space/

Oh dear. I'm guessing this file list wasn't intentional.

chmod 644 $(find /FolderWhereItShouldBe -type f)

chmod: cannot access './FolderWhereItShouldBe/install-master/modules/backend/assets/font/Apache': No such file or directory

chmod: cannot access 'License': No such file or directory

chmod: cannot access 'Version': No such file or directory

chmod: cannot access '2.txt': No such file or directory

chmod: cannot access './FolderWhereItShouldBe/install-master/vendor/symfony/finder/Symfony/Component/Finder/Tests/Fixtures/with': No such file or directory

chmod: cannot access 'space/foo.txt': No such file or directory

Similarly.

And still getting the 404...

Last updated

AlanQ
AlanQ

Update 2

https://octobercms.com/docs/setup/installation

Minimum system requirements

October CMS has some server requirements for web hosting:

PHP version 5.4 or higher

PHP Version 5.6.14-0+deb8u1

PDO PHP Extension

PDO Driver for MySQL enabled Client API version 5.5.46

cURL PHP Extension

cURL support enabled cURL Information 7.38.0

OpenSSL PHP Extension

SSL Version OpenSSL/1.0.1k

MCrypt PHP Extension

mcrypt support enabled mcrypt_filter support enabled Version 2.5.8

Mbstring PHP Library

mbstring Multibyte Support enabled Multibyte string engine libmbfl HTTP input encoding translation disabled libmbfl version 1.3.2

ZipArchive PHP Library

Nothing found. So,

# apt-cache search zip | grep archive | grep php

php-pclzip - ZIP archive manager class for PHP

# apt-cache policy php-pclzip

php-pclzip:

Installed: (none)

Candidate: 2.8.2-3

Version table:

2.8.2-3 0

500 http://http.debian.net/debian/ jessie/main amd64 Packages

So,

# apt-get install php-pclzip

GD PHP Library

GD Support enabled GD headers Version 2.1.1-dev

As of PHP 5.5, some OS distributions may require you to manually install the PHP JSON extension.

When using Ubuntu, this can be done via apt-get install php5-json.

json support enabled json version 1.3.6

https://octobercms.com/docs/setup/installation

Troubleshooting installation

A blank screen is displayed when opening the application: Check the permissions are set correctly on the files and folders. For example, running the command chmod -R 777 * can fix it.

Seriously? 777?

Having ensured the file and directory permissions are 'correct' (644 & 755), and installed some modules, lets try a fresh install...

Last updated

AlanQ
AlanQ

Solved

No fresh install, I just persevered.

The answer:

The Apache server was not honouring .htaccess directives.

Not only did this prevent me accessing .../backend but also there was no re-direct from /DirectoryWhereInstalled/ to /DirectoryWhereInstalled/index.php, which lead to the index page being viewable but unstyled.

The solution:

https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles

To make .htaccess files work as expected, you need to edit this file:

/etc/apache2/sites-available/default

Or, /etc/apache2/sites-available/000-default.conf

Look for a section that looks like this:

<Directory /var/www/>

Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

allow from all

# Uncomment this directive is you want to see apache2's

# default start page (in /apache2-default) when you go to /

#RedirectMatch ^/$ /apache2-default/

</Directory>

You need to modify the line containing AllowOverride None to read AllowOverride All.

This tells Apache that it's okay to allow .htaccess files to over-ride previous directives. You must reload Apache before this change will have an effect:

sudo /etc/init.d/apache2 reload

Or, service apache2 restart

Last updated

dev.mnr.j20762
dev.mnr.j20762
  1. You need to activate mod rewrite. How?
    $ sudo a2enmod rewrite

Then, to use mod_rewrite from within .htaccess files (which is a very common use case), edit the default Apache config:

  1. $ sudo nano /etc/apache2/apache2.conf

Look for similar block of code and change AllowOverride to All

Options FollowSymLinks    
`AllowOverride All`    
Order allow,deny    
Allow from all   

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted

Then restart apache:

  1. $ sudo service apache2 restart

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.