TinyPortal

Development => Support => Older SMF versions => Topic started by: MartinM on June 26, 2006, 11:47:13 PM

Title: Index permission problem during install (and it got: chmod 777)
Post by: MartinM on June 26, 2006, 11:47:13 PM
Got: SMF 1.0.7
Got TP: newest. (downloaded today 26 July 2006)

I have used the package manager.
I had to manually copy some files with my ftp client, got some copy errors...

Now everything works fine, and it goes all the way to the end, where you get
the option to "restart your forum".

But it displays this error:

An Error Has Occurred!
2: copy(/home/martin/domains/domain.name/public_html/index.php~): failed to open stream: Permission denied
File: /home/martin/domains/domain.name/public_html/Sources/Subs-Package.php Line: 1307 

My question, what do i need to do to fix this problem? I have set the chmod to 777 on everything i got, and double checked it several times....

Anyone?

Edit: I have removed my domain name from the path and inserted "domain.name"...
Title: Re: Index permission problem during install (and it got: chmod 777)
Post by: Techdomain on June 27, 2006, 12:48:05 AM
you might have some settings wrong - it is unusual for  a .com to appear in a server path.
Title: Re: Index permission problem during install (and it got: chmod 777)
Post by: IchBin on June 27, 2006, 01:18:34 AM
I've seen hosting companies name their customers home folder the domain name so I don't think that is the issue. But permission denied makes me think that the hosts PHP settings are limiting you.
Title: Re: Index permission problem during install (and it got: chmod 777)
Post by: G6Cad on June 27, 2006, 09:23:54 AM
Edit and put the code for the index.php file in manually.
Read the manual installation text file and paste thecode in manually.

Also, you can run the manual db setup file to, just to be sure all the db tables is there.
Title: Re: Index permission problem during install (and it got: chmod 777)
Post by: gerrymo on June 27, 2006, 11:02:31 AM
That may not work. If its the Apache ownership that is the problem, then you wont be able to upload a new copy of the file. It will be rejected. Check the file ownership is yours, and not the server's.
Title: Re: Index permission problem during install (and it got: chmod 777)
Post by: MartinM on June 28, 2006, 12:44:16 PM
I fixed the problem...

Here it is: When asked for the path (at the FTP settings screen) i wrote the whole path, with my servername and everything. If you only write /public_html/ it works.

I also got some install bugs when I tried to install TP in a SMF forum on my root domain (www.yourdomain.com), but if you install it in a directory like youdomain.com/smf/  (www.yourdomain.com/smf) then you will have no problems.

I made a little "how to install" for TinyPortal 0.86 on SMF 1.0.7 myself. I was looking around in you FAQ's and install articles and i couldn't find a guide that matched with my needs. Some of them was allmost correct, but still i made this for you. Hope it will come in handy for some other tinyportal users.
(English is not my main language, so watch out for typos).

HOW TO INSTALL Tinyportal0_86.zip on SMF 1.0.7.

1. Install SMF
2. CHMOD everything to 777 (with the help of a FTP client or the WEBADMIN for your domain)
3. Install TP

How to install TP:

Admin -> Package Manager -> Install options

FTP Server: Localhost Port:21
Username: (your ftp user name)

Admin -> Package Manager -> Download New Packages

Find the "Upload Package" (field)

Choose the Tinyportal0_86.zip file at the "browse" button for "Package to Upload".

Click Upload.

Click Apply Mod.

You will see this:

1.    Extract Tree    ./Themes    
2.    Extract Tree    ./Sources    
3.    Extract Tree    ./wysiwyg    
4.    Extract Tree    ./tp-downloads    
5.    Execute Code    tp_install.php    
6.    Execute Modification    ./index.php             Success
7.    Execute Modification    ./Sources/Load.php          Success
8.    Execute Modification    ./Themes/default/index.template.php    Success
9.    Execute Modification    ./Sources/Subs.php          Success
10.    Execute Modification    ./Sources/ManagePermissions.php    Success
11.    Execute Modification    ./Sources/Security.php          Success

Click Proceed

FTP server: Localhost port: 21
Username: (your root ftp username)
Password: (the one that matches the username)
Path: /public_html/smf (this was my path, if you have installed SMF in a /smf directory like SMF has as default)

Known error:
If you write the whole path like ./domains/domainname.gov/public_html/smf the TinyPortal install will get
permission faults.

If someting goes wrong, install SMF and TP again. (I had to do it 2 times before it worked for me, even with the correct settings).

Title: Re: Index permission problem during install (and it got: chmod 777)
Post by: Techdomain on July 02, 2006, 12:37:55 AM
Quote
FTP server: Localhost port: 21
Username: (your root ftp username)
Password: (the one that matches the username)
Path: /public_html/smf (this was my path, if you have installed SMF in a /smf directory like SMF has as default)
this is based on the level that your FTP will log in as. for example, not many webhosts will give you ftp access to /home/... hence only needing /public_html/...

if you only have ftp access to /smf for example, then you would only put in /

hope that makes sense.