Closed ozett closed 4 years ago
Are you attempting to install a fresh instance or are you trying to upgrade an older instance? In addition does the user running the webserver have permission to write to both the folder codiad is installed in and the workspace directory?
Edit: In addition to the previous things could you make sure that the BASE_URL and BASE_PATH constants are defined correctly in your config.php?
hi, thanks for asking. i tried this on my qnap NAS with recent firmware.
1) drwxrwxrwx 4 admin administrators 4096 2020-03-02 09:57 ../ this is the user:group which can upload through smb-share the projectfiles.
2) if i run the install from the URL, i see a different user created files: -rw-rw---- 1 httpdusr administrators 0 2020-03-02 09:59 123
and the listed errors occurs.
i succesfully installed in the same environment icecoder.net, which looks like a working fork of codiad. i hat no error at all with this packet.
--edit: you asked: BASE_URL and BASE_PATH constants are defined correctly in your config.php? you mean before install - or after? toi do this manually is part of the install-routine?
The two variables are usually set automatically when installing. However, if for some reason PHP can not get the correct directory they may not be set with the correct values. So after you install can you check those constants?
my findings are, that the codiad-web-directory seems a symlink dir, but its somehow working with errors in vers 2.92. (i love to have a lightweight editor without mysql needs) ...
i cannot create files in the first projectfolder, but i can create another projectfolder
Could you change a couple lines in common.php.
On or around line 35, there should be a few lines like below:
Change:
$path = str_replace("index.php", "", $_SERVER['SCRIPT_FILENAME']);
To:
$path = getcwd() . '/';
And remove:
$path = substr($_SERVER['SCRIPT_FILENAME'],0, strpos($_SERVER['SCRIPT_FILENAME'], $folder));
After you do this could you let me know if any different errors show up?
i changed the code as you told me:
and got this:
Is there a folder named sessions under the data folder? Also can you do a var_dump( getcwd(), __DIR__ );
to see what it returns.
i will check in approx 2 hrs later from here. i will report...
YES, there is a sessions folder with a file. What now?
dont know exactly how to to this "getcwd".....need some help...
As in could you put
var_dump( getcwd(), __DIR__, $_SERVER["SCRIPT_FILENAME"] );
in common.php above the line where you put $path = getcwd() . '/';
It seems like from the messages on the home page the program is not able to load the config file with the correct paths. It uses a default path called absolute/path/to/codaid/ ... instead which doesn't exist.
i put the line. still path-errors...
on my webspace this path exist:
symlink: /share/Web/xevidos abs-path: /share/CACHEDEV2_DATA/Web/xevidos
but i dont know, where to put now/correct the full the absolut-path . common.php? config.php? sessions? could symlinks not be tested on install?
Okay,
Lets try a few different things.
i have done this 2 thing,
now the loging has no more errors - but does nothing
i did a fresh deployment of ver2.9.2.zip to a new directory. this is the fresh startscreen:
on the first run i created first project with the absolute path. this looks good. first project with absolute path was stored. i can create files and i can create new projects
i originally wanted to edit my files in the webroot, so i have to create a project with this path. that is still not possible from the web-gui.
editing the project.php by hand let me create this project with a path to the webroot.
Has editing it by hand allowed you to create, delete, and update files and folders?
editing by hand allowed my to have my webroot as a project. within this i can create files, folder and edit.
i could create also new projects (with relative path within the workspace) and could also create files, folders an edit this
the key was to create the first project with absolute path. the bug is: it dont work if you create a "normal" project (means without abs-path)
As this seems to be solved and storage on the filesystem has not been re added yet I am closing this issue.
old origianl codiad 2.8.x was installable on same plattform, but got issues with php. i tried today the development version but got errors. any hints?
---add: 1) qnap runs: PHP Version 7.3.7 2) i can install ver 2.88, but not login 2) i can install ver 2.90, but not login 2) i can install ver 2.91, but not login
--add (i read until 292 no mysql required, great!!):
with 2.92 i can install, but no file-creation nor upload. (project-folder creation works), maybe owner-errors?
with 2.92 i got these error on install-page: