Sequenzia LTS (MyImouto LTS - ACR Rev.) - Mirror http://code.acr.moe/kazari/sequenzia
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Parziphal 0cf2e4a481 Changed ApplicationController#notice
I realized that the notice cookie was being sent right when calling the notice method, while in Moebooru the cookie is actually sent on the next request.
2013-12-31 10:20:27 -05:00
app Changed ApplicationController#notice 2013-12-31 10:20:27 -05:00
config more changes to advertisements 2013-12-04 15:19:11 -05:00
db Adding support to Inline Images 2013-12-31 02:32:12 -05:00
lib fixed some GIF thumbnails resulting in "corrupt" images. 2013-12-06 14:02:47 -05:00
log more files 2013-10-26 22:34:21 -05:00
public Installation is now made using CLI. 2013-12-07 15:35:14 -05:00
script/daemons more files 2013-10-26 22:34:21 -05:00
tmp more files 2013-10-26 22:34:21 -05:00
vendor fixed DText, added htmLawed for validation 2013-11-03 12:01:28 -05:00
.gitignore fixed DText, added htmLawed for validation 2013-11-03 12:01:28 -05:00
composer.json Installation is now made using CLI. 2013-12-07 15:35:14 -05:00
install.php Moved assets compilation to the end. 2013-12-18 22:46:36 -05:00
LICENSE license, composer config 2013-10-27 00:35:20 -05:00
README.md updated readme 2013-12-07 15:37:27 -05:00

MyImouto

MyImouto is a port of Moebooru to PHP and MySQL. In order for this to be an actual port (or as close as possible), MyImouto uses a custom framework that is based on Ruby on Rails, thus the code from Moebooru is transcribed to PHP with some modifications here and there to fit the target language and framework.

MyImouto features some changes and additions. More details can be found in the Wiki.

Requirements

  • Requires PHP 5.4+. It was developed under PHP 5.4.7 and MySQL v5.5.27.
  • Must have PHP libraries are GD2 (for image processing), PDO (database) and cURL (for both Image search and Search external data features).
  • Recommended libraries are Imagick and Memcached.
  • Both Git and Composer are needed for installation/update. How to install Composer can be found here and/or here.
  • If running under Apache, the Rewrite mod must be enabled. Also, to serve gzipped assets (css and js files), the Headers mod is needed.

Installation

  • Install system dependencies: composer install.
  • Create a database for the booru.
  • Create config/config.php and config/database.yml by copying their respective .example files.
  • Set your database configuration in config/database.yml.
  • Configure the booru by editing config/config.php. For a minimum configuration, both server_host and url_base options must be correctly configured.
  • Run the installer: php install.php. Enter a name and password for the admin account when asked, then wait for the installation to finish.
  • Finally, point the document root of your web server to the /public folder. That's where the index.php file is.

Updating

Every time you update the files with git remote update or something, also run composer update to update dependencies, specially for the framework, and also run php config/boot.php db:migrate to run database migrations (if any).

Troubleshooting

Access denied for xxx.xxx.xxx.xxx

If this is all you see when you go to your booru to complete the installation, the problem is that the IP address you're connecting from isn't listed under the allowed IP addresses.

You simply need to allow the IP address you see in the notice. Go to install/config.php and look for:

'safe_ips' = [
  '127.0.0.1',
  '::1',
]

Enter the IP address you got in the notice in a new line, like this:

'safe_ips' = [
  '127.0.0.1',
  '::1',
  'xxx.xxx.xxx.xxx'
]

Now refresh the page.

Parse error: syntax error, unexpected '[' in ...

If you see this error, it means you're running PHP 5.3 or lower. You have to upgrade to PHP 5.4 or higher.