Giter Site home page Giter Site logo

the-secretary's Introduction

WORKING ON PHP 8 COMPATIBLE UPDATE

***

THE SECRETARY
Simple content management.
Version 2.5 / December 02 2018
www.secretarycms.com

***

If you encounter any problems, are confused or have questions, visit www.thesecretary.org and make a post in the forums.

***

APPLICATION REQUIREMENTS

In order to use The Secretary, your host must support the following (if you are unsure, copy this list and send an email to your webhost's support):

- PHP 7.0+
- MySQL 5+
- Linux/Apache server
- Allow mod_rewrite for clean URLs (if you wish to use them)

You must use a modern web browser when using the application. Internet Explorer is not supported. Outdated browsers are not supported. Try any of
the following:

- Firefox (www.getfirefox.com)
- Safari (www.apple.com/safari)
- Chrome (www.google.com/chrome)

***

UPGRADING INSTRUCTIONS 2.4 - 2.5 : READ CAREFULLY!

1. Backup "config.inc.php" in the "assistants" folder.

2. Backup your current theme. Do this by finding the theme's folder in ../site/themes and downloading a copy to your computer.

3. If you have any custom plugins or modules, make sure to back them up as well.

4. Delete all files and folders in your Secretary folder, EXCEPT FOR THE "FILES" FOLDER. Alternatively, make a backup of the “files” folder.

5. Upload all the files and folders from the 2.2 download, EXCEPT FOR THE "FILES" FOLDER, to your Secretary folder. Your folder structure should look like this:

- [your_secretary_folder]
	- files
	- site
	- system
	index.php
	install.php
	login.php
	logout.php

6. Upload your backup of "config.inc.php" to the system/assistants folder.

7. If you have been using a custom theme, upload your backup to the site/themes/ folder.

8. After upgrading, login and double check that the various upload settings are correct, by clicking under all settings panels in the Settings menu tab.

9. Enjoy!

***

INSTALLATION INSTRUCTIONS

Before you begin installing The Secretary double-check that your host meets the requirements. Second, you must have the connection information to your MySQL
database (contact your webhost for this information if you do not have it). You will need the following information:

- database host
- database name
- database username
- database password

STEP 1

Connect to your server (website) with your FTP program. Create a new folder for The Secretary on your server.

For example, if you would like The Secretary to be in a folder called 'cms', create that folder and upload the files there. This is NOT the folder for your website - The Secretary is a separate application that manages the content on your website, and therefore should not be placed in the same folder. If you would like your website to be www.yourdomain.com then Secretary should reside in a sub-folder there.

STEP 2

Upload the contents of the Secretary download folder to this new folder.

STEP 3

Using your FTP program, set the "files" folder's (and all files and folders within it) permissions to 755. This is usually done by right clicking on the file name and choosing "Get Info" or "Properties", and editing what is called "File Permissions". Other FTP programs have an option to "Chmod" a file - this is the same function.

STEP 4

Now you are ready to complete the installation. Point your browser to [your site]/[secretary folder]/install.php and follow the instructions given.

If you uploaded the files to a folder called 'cms' in the root folder of your website, you would go to www.yourdomain.com/cms/install.php.

STEP 5

After a successful installation, a file named 'site.php' is created in the 'site' folder. Move this file to the folder where you would like your website to appear. DO NOT move it to the same folder as your Secretary installation. For example, if you have installed the application at www.yourdomain.com/cms/, do not move 'site.php' to the 'cms' folder. In most cases, you will want to move it to the root folder (www.yourdomain.com).

You may have to refresh the folder view in your FTP program to see the new file, if you have had it open during the entire installation process.

Rename the file to 'index.php'.

You should also delete the install.php file after installing.

STEP 6

Login and double check your upload settings. You can do this by clicking under all settings panels in the Settings menu, and verifying that the Upload Paths and Upload URLs are correct (so that you can upload images, audio and video and other files!).

STEP 7

Enjoy!

***

the-secretary's People

Contributors

bellizzij avatar maxfenton avatar mikaelstaer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

the-secretary's Issues

Won't install

The CMS won't install anymore, the secretary folder has permission 0755, I also tested with 0777.
When I hit submit on install.php the tables are created inside the database, but no files are created. No config or site.php. Also no error will be shown. Is it broken?

htaccess rewrite error

Got an error after a fresh install on a shared hosting (phpnet.org) and activated the clean URLs.

Replace :

RewriteEngine On
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

RewriteRule ^(.*)$ ./index.php?request=$1

By :

RewriteEngine On RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f

RewriteRule ^(.*)$ ./index.php?request=$1

In the .htaccess file

Portfolio broken

A client's portfolio site was not working, so we updated the PHP and to the most recent version of Secretary, but now the main portfolio page with thumbnails won't load.

This is how the portfolio/home page should look:
screenshot

My developer was trying to change a line of code in the template, but only one thumbnail loads (lol):
http://davidwongcreative.com/

Any help appreciated! Thanks

Error after install

Hi

After install, home page says:

Oops! Looks like your theme is missing the layout file, layout_default.php.

And there is no user in database.

The Secretary 2.4
PHP 5.6
MySQL 5.5

Clean URLs on Nginx

Hi,

I use nginx + php_fcgi to host a Secretary installation. I have tried to translate the Apache rewrite rules found in htaccess.txt to Nginx but I have had trouble making them actually work. I did get to a point where clean URLs almost worked. The css/html part did load, but nothing of the dynamic content did. My guess is that it applied the rewrite rules but didn't get to the part where it passed the content to the php backend (php_fcgi).

Do you/anyone have experience in hosting the Secretary under this setup?

Thanks!

install rce

my env:
Version 2.5
php 5.3.29
windows

At /install.php:90,user input was saved to /system/assistants/config.inc.php causing RCE
图片
图片

Create a new database named test";phpinfo();# and then visit /instll.php to install the website
图片
Then visit /system/assistants/config.inc.php
图片

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.