Install eyeos on Ubuntu

Source: Internet
Author: User
Tags php source code eyeos

Install eyeos on Ubuntu


Eyeos is a cool online OS, and its interface is very beautiful. However, there are a lot of online OS, but one of the most important reasons I chose eyeos is that it fully developed the source code! Ah, open source is really great!


Stickers:



Note that this is all in the browser ~~



The following describes how to install eyeos locally:

1.

First, download the latest version of eyeosat http://www.eyeos.org/open-source/download /.

2.

Start Apache, decompress eyeos2.5, and put it in the Apache web directory. my options are/usr/local/apache2/htdocs.

Note: In the following operations, restart Apache at sudo apachectl restart to make the configuration take effect!


3.

Web Browser: http: // localhost/eyeos-2.5/index. php

In general, the following errors may occur:

Error: Fatal error: Call to undefined function mb_strlen ()
Solution: Re-compile the PHP source code, add -- enable-mbstring = all to configure, and restart Apache: sudo apachectl restart.



However, another problem occurs:

There is an error in this eyeos installation, please contact
The system administrator

Don't worry, solve it slowly:



Now, create the required databases and tables in MySQL:


First, go to MySQL and create a database:
Create Database myeyeos;

Then, exit MySQL and execute the following commands in sequence (the-D parameter indicates the specified database ):
Mysql-D myeyeos-u root-P </usr/local/apache2/htdocs/eyeos-2.5/eyeos/extras/eyeosumsql. SQL

Mysql-D myeyeos-u root-P </usr/local/apache2/htdocs/eyeos-2.5/eyeos/extras/eyeoseventsnotificationsql/eyeoseventnotification. SQL

Mysql-D myeyeos-u root-P </usr/local/apache2/htdocs/eyeos-2.5/eyeos/extras/eyeospeoplesql.

Mysql-D myeyeos-u root-P </usr/local/apache2/htdocs/eyeos-2.5/eyeos/extras/calendarsql/calendar. SQL

Mysql-D myeyeos-u root-P </usr/local/apache2/htdocs/eyeos-2.5/eyeos/extras/mailapplicationsql. SQL

Then, set the database connection host, user name, and password in settings. php under the eyeos root directory:
1. Search for "SQL _connectionstring" and change the host to localhost. (If dbname is not the first database myeyeos, change it to myeyeos)

Note: Define ('SQL _ connectionstring', 'mysql: dbname = myeyeos; host ='. SQL _host); this statement uses the PHP syntax and the point number indicates the connection string! Be sure to pay attention here!
2. Search for "SQL _username" and change it to the user name used to connect to the database.
3. Search for "SQL _password" and change it to the password used to connect to the database.

Then modify the permissions of the entire eyeos root directory:
Chmod 777-r eyeos-2.5/



Then enter: http: // localhost/eyeos-2.5/index. php In the browser to see the problem mentioned above:There
Is an error in this eyeos installation, please contact the system administrator





Open the eyeos-2.5/index. php and find "there is an error in this eyeos installation, please
Contact the system administrato, found it in a try-Catch Block, followedEcho
$ E-> getmessage ();

Statement, and then an error will be displayed during running:


[Function. Date]:
It is not safe to rely on the system's timezone settings. you are * required * to use the date. timezone setting or the date_default_timezone_set () function. in case you used any of those methods and you are still getting this warning, you most likely misspelled
The timezone identifier. We selected 'Asia/Chongqing 'For 'cst/8.0/No DST' instead




Solution:

Find the php. ini file in PHP (you can find-name PHP. ini if you cannot find it, my file is in/usr/local/PhP5/lib/PHP. INI) and find
"; Date. timezone =", and then remove the semicolon (that is, cancel the comment ).Date. timezone = Asia/ShanghaiAnd then open the eyeos-2.5/index. php In index. php under the root directory of eyeos and add"Date_default_timezone_set ('Asia/Shanghai ');(I added the second line of the entire file. The first line is <? PHP)



Then enter: http: // localhost/eyeos-2.5/index. php In the browser!


Stickers:



However, an error occurs when you click "create an account", as shown below (I do not know how to solve this problem so far ???) :





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.