Deploy a ScriptCase application instance in Ubuntu

Source: Internet
Author: User
Applications developed using ScriptCase are completely open-source PHP code, which has nothing to do with ScriptCase. To facilitate deployment, SC provides a deployment configuration interface. 1. install Apache, PHP, and MySQL in Ubuntu: For detailed tutorials, see idea (if all are packaged in

Applications developed using ScriptCase are completely open-source PHP code, which has nothing to do with ScriptCase. To facilitate deployment, SC provides a deployment configuration interface.

1. install Apache, PHP, and MySQL In Ubuntu. For more information, see http://www.linuxidc.com/Linux/2011-06/37823.htm;

2. Use the SC deployment tool to package the program and package it into a zip file (if all the files are packed in, more than 60 MB, which is indeed quite large );

3. Upload the file to Ubuntu using FTP and decompress it to the directory to be installed using unzip. (You can create an empty directory and copy the compressed file to it );

4. More importantly: Open the _ lib directory permission with the command sudo chmod 777 _ lib-R

5. Enter the address in the browser for configuration (generally, you only need to reconfigure the MySQl database connection );

ScriptCase is installed on the Windows platform and needs to be deployed in the Ubuntu environment. During the test, it is found that a function cannot take effect in any way. The Code is as follows:

// Check for record
$ Check_ SQL = "SELECT islocked"
. "FROM tt"
. "Where id = '{ID }'";
SC _lookup (rs, $ check_ SQL );
If ({rs} = false ){
} Else {
If ({rs [0] [0] }== 1 ){
SC _field_readonly ({Title}, 'on ');
SC _field_readonly ({filename}, 'on ');
SC _field_readonly ({Comment}, 'on ');
SC _field_display ({description}, 'off ');

SC _btn_display ('new', 'off ');
SC _btn_display ('delete', 'off ');
SC _btn_display ('update', 'off ');
}

In fact, this is a very simple function. If it is locked, users are not allowed to create, delete, or update. It works normally in Windows, but cannot run successfully in Ubuntu. I found that when defining data table fields, islocked is defined as bit type. bit storage is different for Windows and Linux, which leads to a fault. If you need to judge bit, the correct method should be as follows:

If (ord ({rs [0] [0]}) = 1) | ({rs [0] [0]} = 1 )){

In this way, you can determine the bit field in both Windows and Linux.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

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.