Chriger Posted January 14, 2017 Report Share Posted January 14, 2017 (edited) Good Afternoon Everyone, I'm trying to install phpVMS 5.5.2 on my website, which is currently running PHP version 5.6. I have run the PHP Checker: Install Check phpVMS Build Number: simpilot 5.5.2 Checking PHP version[OK] PHP version is 5.6.29.xASP Tags[OK] ASP-style tags are disabledChecking connectivity...[OK] Can contact outside serversChecking for SimpleXML module...[OK] SimpleXML module exists! When I go to the default directory, it returns this: Notice: The template file "/home/yand/public_html/flight//lib/skins/crystal/header.php" doesn't exist in /home/coreyand/public_html/flight/core/classes/TemplateSet.class.php on line 231 Welcome to phpVMS! Posted by phpVMS Installer on 01/14/2017 Thanks for installing and using phpVMS! Check out the docs for help and information on getting started on your VA. This is just a starter skin - customize yours completely. This is just a basic, barebones example of what a skin is and how it works. Check out the crystal folder in the lib/skins directory. Make your own copy and fiddle around. For help, check out the forum, and skinning docs. Also, be sure to check out the skinning tutorials for a quick primer. The forums are also filled with plenty of helpful people for any questions you may have. Good luck! Activity Feed LXA0001 has just joined, welcome aboard! View Profile Recent Reports No reports have been filed Newest Pilots LXA0001 Users Online There have been 0 user(s), and 0 guest(s) online in the past 20 minutes. Notice: The template file "/home/yand/public_html/flight//lib/skins/crystal/footer.php" doesn't exist in /home/coreyand/public_html/flight/core/classes/TemplateSet.class.php on line 231 Going to /admin returns this: Warning: opendir(/home/yand/public_htl/flight//admin/modules): failed to open dir: No such file or directory in /home/coreyand/public_html/flight/core/classes/MainController.class.php on line 68Warning: readdir() expects parameter 1 to be resource, boolean given in /home/coreyand/public_html/flight/core/classes/MainController.class.php on line 70Warning: readdir() expects parameter 1 to be resource, boolean given in /home/coreyand/public_html/flight/core/classes/MainController.class.php on line 70Warning: readdir() expects parameter 1 to be resource, boolean given in /home/coreyand/public_html/flight/core/classes/MainController.class.php on line 70 I have tried googling at least 10 other support threads or websites, with no results in solving to fix this. Does anyone here have any suggestions? I have attempted reinstalling this 5-6 times now. Edited January 23, 2017 by Chriger Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted January 14, 2017 Moderators Report Share Posted January 14, 2017 Can you try redownloading the phpVMS from github and reuploading and reinstalling it? Also, a url would be very useful. Quote Link to comment Share on other sites More sharing options...
Chriger Posted January 14, 2017 Author Report Share Posted January 14, 2017 (edited) Sure, URL is http://flight.coreyandrews.ca My concern is " /home/yand/flight//lib/skins/crystal/header.php " isnt a valid directory, and I don't know where the website is pulling this URL from. Also, I dont know if the double // has any impact either. But again, I dont know where it pulls this URL, so I can't even correct it, if thats the issue. Edited January 14, 2017 by Chriger Quote Link to comment Share on other sites More sharing options...
Chriger Posted January 14, 2017 Author Report Share Posted January 14, 2017 Ok, So the admin panel also gives me an incorrect URL. "/home/yand/flight/ " The correct directory is /home/coreyand/flight not yand. Where does it pull the URL so I can corrrect it? Quote Link to comment Share on other sites More sharing options...
Chriger Posted January 14, 2017 Author Report Share Posted January 14, 2017 Solution: Don't have "Core" in your username or as a directory name. Otherwise everything gets messed up! Somewhere in the script, it renames/removes "Core" thus not allowing me to run this correctly. Just my odds that my firstname is Corey... Quote Link to comment Share on other sites More sharing options...
Chriger Posted January 14, 2017 Author Report Share Posted January 14, 2017 (edited) phpvms_5.5.x\core\codeon.config removes part of my directory name /home/"core"yand/... and makes it /home/yand/... define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', str_replace('core', '', dirname(__FILE__))); define('CORE_PATH', dirname(__FILE__) ); So I am not sure if there is a fix, or if this is the first time this issue has arisen. There is also core in the SQL name as well. I have tried installing this on the exact same server, but with a different cpanel account/different domain, and had no problems. So I'm assuming this has to do with my cpanel account name. Edited January 14, 2017 by Chriger Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted January 14, 2017 Administrators Report Share Posted January 14, 2017 I think there is a URL issue. In each notice or warning it shows on the --- First line: /home/yand/public....... Second line: /home/coreyand/public..... What's the base URL set to in local.config.php? As Servetas stated, a url to your site may be useful. Quote Link to comment Share on other sites More sharing options...
Chriger Posted January 17, 2017 Author Report Share Posted January 17, 2017 I've added new details above, comments took a while to be approved... Let me know if you have any thoughts... Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted January 17, 2017 Administrators Report Share Posted January 17, 2017 (edited) What is the base url set to in local.config.php? What directory is phpvms (the actual phpvms files) installed in - /flight, /flight/core, /flight/phpvms, or?? Edited January 17, 2017 by ProAvia Quote Link to comment Share on other sites More sharing options...
Chriger Posted January 17, 2017 Author Report Share Posted January 17, 2017 (edited) I relocated the folder inside the Public_HTML, new location is http://coreyandrews.ca/flight. Listed in local.config.php define('SITE_URL', 'http://coreyandrews.ca/flight'); All of files and folders, admin, core, lib, +files are located in /flight... So /flight/admin or /flight/core... Error message remains... :/ Edited January 17, 2017 by Chriger Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted January 17, 2017 Administrators Report Share Posted January 17, 2017 (edited) Certainly strange..... I'm assuming all your VA stuff is going to be under '.../flight/'. If that's the case, try a totally new install of phpVMS and place all the files/folders in '...flight/phpvms/'. create a new DB and install. Don't change anything or copy anything from the present 'errored' install until after you report back here. List any errors, etc you may get. Maybe we can get a clue from there. I'm not sure putting phpVMS in the 'phpvms' folder will solve anything, but may be worth a try. Is there anything else in the '.../flght/' folder other than phpVMS files/folders? EDIT: Verify the default 'crystal' skin is located in '.../lib/skins/' - NOT '.../core/lib/skins/'. Edited January 17, 2017 by ProAvia Quote Link to comment Share on other sites More sharing options...
Chriger Posted January 17, 2017 Author Report Share Posted January 17, 2017 (edited) Capture 1 - Fresh Install - Coreyandrews.ca/flight/phpvms Capture 2 - Fresh Install - Coreyandrews.ca/flight/phpvms/install/checkinstall.php Capture 3 - Installing Capture 4 - After Install - Coreyandrews.ca/flight/phpvms Capture 5 - Directory Layout P.S. Sorry I accidently deleted my old setup, I totally misread your comment! Oops... Edit: At the end of the day, I still really think that because my cpanel account for hosting: coreyand, it will continue to remove "core", and then it probably screws up the installation somewhere. I just don't know, because I'm not well versed with how this whole platform was made. As you can see, the URLs after a fresh install are wrong again. But the URL is correct in the local.config.php file. Edited January 17, 2017 by Chriger Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted January 17, 2017 Administrators Report Share Posted January 17, 2017 Certainly weird. My intent on a new install was to be sure we were all on the same page... virgin, unedited install. The errors you see on the check install page are very similar to what I saw on mine. I think the check install routine and/or the checksums aren't up to date - not in your install, just that they were never updated. See the reference to '.tpl' files? I think you're right about the 'coreyand' and 'core' issue. Hopefully someone with more knowlege comes along soon with a possible solution. Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted January 17, 2017 Administrators Report Share Posted January 17, 2017 (edited) This is just a wild a$$ guess - In '/core/codon.config.php', comment out the 'define ('SITE_ROOT.........' line. Below it, enter: define ('SITE_ROOT', str_replace('phpvms/core', 'phpvms', dirname(__FILE__))); OR define ('SITE_ROOT', str_replace('phpvms'DS.'core', 'phpvms', dirname(__FILE__))); OR Some other combination of the above. I have absolutely NO CLUE if this will work, but may be worth a try. Edited January 17, 2017 by ProAvia Quote Link to comment Share on other sites More sharing options...
Chriger Posted January 18, 2017 Author Report Share Posted January 18, 2017 Fixed it! I'll write up the solution tomorrow, but it has to do with the codon.config file we are both talking about at the end... Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted January 18, 2017 Administrators Report Share Posted January 18, 2017 Nice! Looking forward to see the solution. Quote Link to comment Share on other sites More sharing options...
Chriger Posted January 23, 2017 Author Report Share Posted January 23, 2017 (edited) Solution: In the codon.config.php file located in /core, edit lines 45-47. Old define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', str_replace('core', '', dirname(__FILE__))); define('CORE_PATH', dirname(__FILE__) ); Replace: (If you have it in a directory folder, www.airline.com/airline). Edit --> '/Add your directory name here' and make it '/airline/' or whatever your directory is called. define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . '/Add your directory name here/' ); define('CORE_PATH', dirname(__FILE__) ); Replace: (If you have it in your main www(public_html) directory. define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . '' ); define('CORE_PATH', dirname(__FILE__) ); This should solve any issues with having the word "core" in your URL, directory name, or cpanel account name. Edited January 23, 2017 by Chriger Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted January 23, 2017 Administrators Report Share Posted January 23, 2017 Thanks for posting your solution. While I'd bet there are very few like you with 'core' elsewhere, it's good to know there is a way to make it work anyway. Quote Link to comment Share on other sites More sharing options...
Curshad Posted July 21, 2020 Report Share Posted July 21, 2020 On 1/23/2017 at 6:30 AM, Chriger said: Solution: In the codon.config.php file located in /core, edit lines 45-47. Old define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', str_replace('core', '', dirname(__FILE__))); define('CORE_PATH', dirname(__FILE__) ); Replace: (If you have it in a directory folder, www.airline.com/airline). Edit --> '/Add your directory name here' and make it '/airline/' or whatever your directory is called. define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . '/Add your directory name here/' ); define('CORE_PATH', dirname(__FILE__) ); Replace: (If you have it in your main www(public_html) directory. define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . '' ); define('CORE_PATH', dirname(__FILE__) ); This should solve any issues with having the word "core" in your URL, directory name, or cpanel account name. Mannnnnnnnnnnn help me out here... i must be a complete dunce. WHAT? I literally have the same issues as you. Correct version of phpvms and everything. Quote Replace: (If you have it in a directory folder, www.airline.com/airline). Edit --> '/Add your directory name here' and make it '/airline/' or whatever your directory is called. If u have what? sooo www.silverairwaysvirtual.com/whatairline? you mean "public_html" ? or what it's called in the cpanel? I've been at this for sometime now so I'm a little frustrated here apologies in advance, it's been years since getting back into this all over again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.