TinyPortal

Development => Support => Installation => Topic started by: DenverMike on December 04, 2007, 06:26:47 AM

Title: Install path under "Action" is wrong...why?
Post by: DenverMike on December 04, 2007, 06:26:47 AM
I'm seeing this on three different hosts that I have. It's killing me because I REALLY don't want to do the manual edits. Despite people saying "it's not that hard", it's still time consuming and highly error prone. With that said...

Clean install of SMF 1.1.4. Nothing else done to it. No themes, no other packages, nada.
I go into the package manager, upload TP_0983.zip.
I go to apply the mod
It wants to change permissions - done.
Yet when I get to the install actions page, everything wants to install in "./" which is the root under my user name. The forum itself is at /home/<user>/domains/familyhost.org/public_html/immo and the FTP path is just /domains/familyhost.org/public_html/immo (which is what SMF wants, not the relative server path, no biggie).

So now, when the package manager goes to install TP, it puts it in /home/<user>/

Why? I've had this working before on earlier versions of TP (back in the 0.8 days).
Apache 2.2.6
PHP 5.2.5
MySQL 5.0.45

Any advice is greatly appreciated as I don't think the file edits (which again are error prone and time consuming) are really a reasonable approach.
Title: Re: Install path under "Action" is wrong...why?
Post by: DenverMike on December 04, 2007, 06:46:23 AM
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimmortalis.morrato.org%2Fsmf01.jpg&hash=3dadc9bb7246d86aac7d8c7da8c340acbf60363b)

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimmortalis.morrato.org%2Fsmf02.jpg&hash=c766ffb99ba80a82dac3b4e291a243e7ffdb3135)

Problem is, after this is done, my front page doesn't load (it does only there's code everywhere) and if I hit the admin panel, there is no "Tiny Portal" menu on the left. And each page load creates 21 pages of errors in the error log

Title: Re: Install path under "Action" is wrong...why?
Post by: Dragooon on December 04, 2007, 07:20:11 AM
You are missing a point here(The period ( . )).
It means the path till the root where your Index.php is, If it was Only a slash without the period then it was something wrong, but with the period it must be fine.
Title: Re: Install path under "Action" is wrong...why?
Post by: Zetan on December 04, 2007, 07:21:24 AM
Also you can check the correct path

Admin > Configuration/Server Settings

Title: Re: Install path under "Action" is wrong...why?
Post by: DenverMike on December 04, 2007, 08:22:03 AM
the SFM directory stuff in the admin CP is fine. I verified all that. It's only TinyPortal. As I said, everything is installing in the user root directory (the first directory you get to when you FTP in to the server) instead of where SMF is actually installed. So for example:

SMF is installed (and working just fine) at /home/<user>/domains/familyhost.org/public_html/immo   (this is the web root).

When TP goes to install, it installs in /home/<user>/
I can verify that because all the directories that TP wants to install gets installed there. Again, this is a brand new SMF install as in I installed SMF and the very next step is to upload the TP.zip file to the package manager and then hit install then apply.

The end result is a mangled forum home and an admin CP that lacks anything for TP and a slew of errors. This is across three different physical servers. I've been trying to migrate a few older SMF forums w/ TP that I've hosted for friends to my new servers. I'm thinking it's not going to happen, at least not w/ SMF and TP.  =\
Title: Re: Install path under "Action" is wrong...why?
Post by: Zetan on December 04, 2007, 09:09:17 AM
Have you tried any other packages?
Title: Re: Install path under "Action" is wrong...why?
Post by: Dragooon on December 04, 2007, 09:10:39 AM
Did you read my post? For everyone its like that and it should be fine.
When you install what happens? Do you get blank spaces? Also where are the files?
What language do you use?
How did you installed SMF?
Title: Re: Install path under "Action" is wrong...why?
Post by: DenverMike on December 04, 2007, 03:04:39 PM
yes I read your post and as I stated, when I install I get code snippets all over the forum home and there is no tiny portal box on the admin page. I also explicitly spelled out where the files were.

SMF files are installed (and SMF is working flawlessly) at /home/<user>/domains/familyhost.org/public_html/immo

When I hit install on TP, it installs its files at
/home/<user>/

I'm talking in relative paths on the file system. I'm using us english (everything is UTF-8) and i'm not sure what you mean by how did I install SMF. I installed SMF like I would a default install.

@ZTN, I installed some other mods after the fact and they went in just fine.
Title: Re: Install path under "Action" is wrong...why?
Post by: Zetan on December 04, 2007, 03:08:34 PM
I know you are frustrated, but we are trying to help you.

Can you confirm for me exactly which package you are downloading and provide the link?
Title: Re: Install path under "Action" is wrong...why?
Post by: G6Cad on December 04, 2007, 03:12:57 PM
What you say should not even be possible, when you click the install button in your paclage manager, the tree that checks where every thing is located and where files and changes will be made is correct, you would get errors from every single one of them during the check if the installer couldent find the files and tree directory it looks for.
So the explaining you do here is eather wrong, or you have another install of TP where you look and think it's actually the one giving you the issues you have.

The actuall SMF install, open your adminpanel and check the server settings and check the paths there, that will be the path where you find TP installed to.
Title: Re: Install path under "Action" is wrong...why?
Post by: DenverMike on December 04, 2007, 03:43:24 PM
For SMF, I downloaded the current 1.1.4 package.

For TP, I downloaded http://www.tinyportal.net/index.php?action=tpmod;dl=item745

@G6 - As I said before, SMF is installed and working just fine. The paths are right. I've been working with SMF for over 2.5 years across a dozen or so boards so this is not foreign to me. I've used TP plenty in the past but I never updated it. These three servers I'm installing it on have NO OTHER web sites on them. They are brand spanking shiny new servers.

For giggles and grins I uploaded some static pages and they're all working fine. The plain install of SMF 1.1.4 is working just fine. Adding some random mods for SMF also appear to be working fine. But when I install TP 0.983, the file edits are made but the SMF files (wysiwyg, tp-downloads, etc) all get installed in the /home/<user> directory instead of the /home/<user>/domains/familyhost.org/public_html/immo directory where SMF is installed and running.

The webroot itself is /home/<user>/domains/familyhost.org/public_html
SMF is installed in /home/<user>/domains/familyhost.org/public_html/immo
again, TP, after I hit the install button, makes the appropriate file edits (I'm assuming the file edits are made) but copies the files in the package to the FTP root, not the web root. Big difference.

Title: Re: Install path under "Action" is wrong...why?
Post by: DenverMike on December 04, 2007, 03:51:41 PM
if it's any help, I get the following errors in the forum log when I go to install TP:

2: fclose(): supplied argument is not a valid stream resource
2: fopen(/home/<user>/domains/familyhost.org/public_html/immo/SSI.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied    (I set ssi.php to 777 to be safe however so it shouldn't be a file permission issue).

and there are 4 pages of those. As for my PHP, safe_mode is off, open_basedir is on, register_globals is off (you all don't care about that) and I do not have any blocked commands however, I do have the following:

Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies
    with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project        <------------
    with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies

perhaps the TP install is being borked/mangled by suhosin? I was just thinking about that.
Title: Re: Install path under "Action" is wrong...why?
Post by: Zetan on December 04, 2007, 04:07:20 PM
It does seem to be a server configuration issue, but I'm no guru on servers.
I know you are reluctant to use the manual install, and with 3 sites, I can understand that.. but you wouldn't be the first that has had to.

One of the Admin may have other advice as they have more experience with servers than I do.
Title: Re: Install path under "Action" is wrong...why?
Post by: DenverMike on December 04, 2007, 04:12:26 PM
actually, for fun, I removed the site and dropped all the tables in the database, I commented out Suhosin from my php.ini and tried again. It works fine now. That's bad actually. Suhosin stops known bad PHP scripting (not any particular scripts, but scripts that perform sub-optimal operations or possible security issues). Once I re-enable it, the site still works fine so there's a workaround.
Title: Re: Install path under "Action" is wrong...why?
Post by: Zetan on December 04, 2007, 04:15:41 PM
Hmm.. well, I'm pleased you are getting somewhere with it  :up:
Title: Re: Install path under "Action" is wrong...why?
Post by: Ianedres on December 05, 2007, 06:23:13 AM
Quote from: DenverMike on December 04, 2007, 03:04:39 PMI'm talking in relative paths on the file system. I'm using us english (everything is UTF-8) and i'm not sure what you mean by how did I install SMF. I installed SMF like I would a default install.

I see you got the installation going, and know you will enjoy the many benefits of TP. Not a support member here, but can't sleep tonight... but I digress.

I thought there was a known issue with UTF-8 English, as described here (http://www.tinyportal.net/index.php?topic=16356.0). I don't know if you're installing via Fantastico/CPanel, but may be something related- just for future reference.
Title: Re: Install path under "Action" is wrong...why?
Post by: DenverMike on December 05, 2007, 05:45:34 PM
Quote from: Ianedres on December 05, 2007, 06:23:13 AM
Quote from: DenverMike on December 04, 2007, 03:04:39 PMI'm talking in relative paths on the file system. I'm using us english (everything is UTF-8) and i'm not sure what you mean by how did I install SMF. I installed SMF like I would a default install.

I see you got the installation going, and know you will enjoy the many benefits of TP. Not a support member here, but can't sleep tonight... but I digress.

I thought there was a known issue with UTF-8 English, as described here (http://www.tinyportal.net/index.php?topic=16356.0). I don't know if you're installing via Fantastico/CPanel, but may be something related- just for future reference.

I've had TP running before, older versions, so it's not that it was new to me and GOD NO, I refuse to touch cPanel and the rootkit-made-easy tool known as Fantastico.
Title: Re: Install path under "Action" is wrong...why?
Post by: Zetan on December 11, 2007, 01:14:25 PM
I'm assuming this topic is now solved? I have marked it solved. Feel free to change it if not.