News:

Wondering if this will always be free?  See why free is better.

Main Menu

Installation shouldn't be this difficult

Started by Siirist, June 23, 2017, 11:10:14 AM

Previous topic - Next topic

Siirist

Hello All,
Well, it has been a couple weeks and I decided to give this another go (try installing SMF, again).

Went to Online Manual, Installing SMF and created a database asanc695_forum2 (see "cPanel-MySQLDatabases" attachment)

Then added a MySQL database user with all privileges (see "cPanel-MySQLDatabases" attachment)

Then extracted the SMF ver2.11 zip (known to be stable and I will upgrade after installation) and
uploaded the files to the forum2 folder using binary mode with Core FTP (see "Uploaded" attachment)

Then made sure the folder and file permissions were correct (see "cPanelFileManager-forum2" attachment)

Then attempted to run install.php and got the following error "You have chosen to open install.php" (see "InstallError" attachment)

Obviously, something is not right.

Thanks are given in advance for your thoughts on this.

Kindly, Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

br360

To actually install, you would need to type in your browser yoursite.com/install.php

Change yoursite.com to the actual name of your site and folder/directory you put it in.

Sir Osis of Liver

Does your server have a /public_html directory?  Did you upload forum files to that directory?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Siirist

Thank you br360 and Sir:

Quote from: br360 on June 23, 2017, 11:18:56 AM
To actually install, you would need to type in your browser yoursite.com/install.php

Change yoursite.com to the actual name of your site and folder/directory you put it in.

Hi br360,
I typed in yoursite.com/forum2/install.php and got the InstallationError
I just now typed in yoursite.com/install.php and got a 404 error.

Quote from: Sir Osis of Liver on June 23, 2017, 01:29:31 PM
Does your server have a /public_html directory?  Did you upload forum files to that directory?

Hello Sir,
As shown in my attachments, I uploaded to public_html/forum2

Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

br360

Can you PM me the name of your forum as well as the exact name of the file it's in, and I will see what I can do

LiroyvH

Does your website even process any php at all or does it offer any .php file for download...?
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Siirist

Quote from: CoreISP on June 23, 2017, 04:03:43 PM
Does your website even process any php at all or does it offer any .php file for download...?

Hey Core  :)

Not sure what you mean so I am attaching Server Information.

Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

LiroyvH

Yeah that doesn't help much. :)
Say you create a file in the forum directory named "phpinfo.php" and you put this inside of it:

<?php
phpinfo
();
?>



Then you visit that file (eg: https://a-sanctuary.org/smf/phpinfo.php (of course you change this accordingly to where the file actually is :))).
Does it show you all kinds of information about your server, such as the PHP version: or does it try to download/open that file as well?
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Siirist

Quote from: CoreISP on June 23, 2017, 09:13:58 PM
Yeah that doesn't help much. :)
Say you create a file in the forum directory named "phpinfo.php" and you put this inside of it:

<?php
phpinfo
();
?>



Then you visit that file (eg: https://a-sanctuary.org/smf/phpinfo.php (of course you change this accordingly to where the file actually is :))).
Does it show you all kinds of information about your server, such as the PHP version: or does it try to download/open that file as well?

Tried to download/open that file as well.

PS- I removed the install.php so anyone following the path wouldn't be able to install the forum.
As a result, here is the path to that file (which you can test by clicking on it.
https://a-sanctuary.org/forum2/phpinfo.php

How odd.

Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

LiroyvH

Ah, so PHP doesn't work at all. That explains things. :P
Either the server is misconfigured, or there is something in your .htaccess file(s) that screws things up; such as a bad AddHandler that's not supposed to be in there.

You need to check that file and/or (otherwise) ask your hosting provider for assistance to get PHP working. :)
If I had to guess, it's something bad in a .htaccess file; as that's the most common issue. (Check that file in public_html and/or in your forum directory itself)
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Siirist

Okay,

So br360 is working with me as well and he was thinking the same, so I am going to place my .htaccess here.

NOTE: For now I am installing ver 2.0.11, AND forum2 folder does NOT have a .htaccess file


# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
Options -Indexes
RewriteEngine On
RewriteCond %{HTTP_HOST} ^a-sanctuary\.org [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.a-sanctuary.org/$1 [R,L]
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# CSS
ExpiresByType text/css "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
</IfModule>


Here is my .htaccess-Simple

RewriteEngine On
RewriteCond %{HTTP_HOST} ^a-sanctuary\.org [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.a-sanctuary.org/$1 [R,L]


I await your thoughts.

Did I say thanks?

Kindly,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Sir Osis of Liver

Last I looked, you had successfully installed two scratch forums at the new domain.  What happened to them?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

LiroyvH

From .htaccess, hash out this line (put a # in front of it):
AddHandler application/x-httpd-php54 .php

Also, why SMF 2.0.11? o0
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Siirist

Quote from: Sir Osis of Liver on June 23, 2017, 10:10:59 PM
Last I looked, you had successfully installed two scratch forums at the new domain.  What happened to them?

Dear Sir,

I removed them in efforts to start again.  DOH

???

Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Siirist

Quote from: CoreISP on June 23, 2017, 10:11:52 PM
From .htaccess, hash out this line (put a # in front of it):
AddHandler application/x-httpd-php54 .php

Also, why SMF 2.0.11? o0

Did that just now.

:) :) :) :) :) :) :) :)
FIXED!!
:) :) :) :) :) :) :) :)

Great catch Core ISP!

I KNOW it is stable and it is what the forums that are on the current host are running.
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Sir Osis of Liver

All you had to do was upload the forum files from your old domain to the new install, then import the database into new database, run repair_settings.php, and you'd have been done.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

2.0.11 is not stable..  it is outdated and insecure...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Siirist

Quote from: Sir Osis of Liver on June 23, 2017, 10:15:52 PM
All you had to do was upload the forum files from your old domain to the new install, then import the database into new database, run repair_settings.php, and you'd have been done.

*nods*

Um, what is my table prefix?  is it was is in front of my database name?


Kindred  ;) ;)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

LiroyvH

Quote from: Siirist on June 23, 2017, 10:16:09 PM
Did that just now.

:) :) :) :) :) :) :) :)
FIXED!!
:) :) :) :) :) :) :) :)

Great catch Core ISP!

Glad to hear it and you're welcome :)

Quote from: Siirist on June 23, 2017, 10:16:09 PM
I KNOW it is stable and it is what the forums that are on the current host are running.

As are the other versions. :)
Sounds like it's time for an update then if they're all on 2.0.11! ;) A variety of (security) issues have been fixed in the meantime, and you have PHP 5.5.
At most, it may happen that for 2.0.14 you have to modify a custom theme (if you have any) manually (like, one little piece of code); that's it. But of course just make a backup to be safe, cPanel has great tools for that. (Like the full backup option)

As you're toying around with new installations anyway, sounds like now is the time to get up to date :)
Lagging behind on updates is generally a rather bad idea.
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Siirist

Um, what is my table prefix?  is it was is in front of my database name?

I remember when SMF ver1.0 was the deal and ver 1.0.1 was Beta
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Advertisement: