• Welcome to Simple Machines Community Forum. Please login or sign up.
November 28, 2021, 09:17:19 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


I need some help, really hard. Any help is welcomed!!

Started by kizko, December 10, 2009, 10:40:52 AM

Previous topic - Next topic

kizko

I`ve change my host. I had SMF 2.0 RC1.2
I had some theme error and mods, What to install to have a clean SMF 2.0 RC1.2?

I`ve overwrite the SMF 2.0 RC1.2 upgrade... But packege manager doesn`t work.
Why ? and what is the best way to make a new RC 1.2 install?

Matthew K.

You probably are having issues because the file paths and URL's are wrong in the Settings, if you are comfortable editing PHP, edit Settings.php and change the settings to match your current host.

If not look at What is Repair_Settings.php?

kizko


Matthew K.

Don't post the contents of Settings.php, but open it in a text editor and make sure the settings match your current host.

Matthew K.

If you want to start a clean install of SMF 2.0 RC2, either click here or download my attachment (which is a fresh install of SMF 2.0 RC2.) and upload it to your desired forum path (make sure there are no other SMF files or folders in that path from previous installations, or just make a new folder for the new installation.) then un-zip the download and run the install.php file by going to it in your browser (http://www.yourdomain.com/forumpath/install.php).

That should work for you. (Also make sure, if you're using the same database as another SMF install you change the new installations DB prefix from smf_ to something new.)

kizko

Quote from: Labradoodle-360 on December 10, 2009, 11:45:50 AM
If you want to start a clean install of SMF 2.0 RC2, either click here or download my attachment (which is a fresh install of SMF 2.0 RC2.) and upload it to your desired forum path (make sure there are no other SMF files or folders in that path from previous installations, or just make a new folder for the new installation.) then un-zip the download and run the install.php file by going to it in your browser (http://www.yourdomain.com/forumpath/install.php).

That should work for you. (Also make sure, if you're using the same database as another SMF install you change the new installations DB prefix from smf_ to something new.)

I`ve started a clean SMF 2.0 RC1.2, but it says that i still have thooose packages isntaled, and i can`t isntal pther becouse it says the package directory is not writable although it have 777 permision (all files and folders from it)

Matthew K.

So you uploaded a clean copy of SMF 2.0 RC2 and it's still saying they're packages installed?

Arantor

As of 2.0, all the package data is stored in a table in the database, so you will also need to purge the log_packages table.
No good deed goes unpunished
All helpful urges should be circumvented

kizko

Quote from: Arantor on December 11, 2009, 09:00:57 AM
As of 2.0, all the package data is stored in a table in the database, so you will also need to purge the log_packages table.

You meen to delete it ?

Arantor

No, I mean empty it. Deleting it will break the package manager.
No good deed goes unpunished
All helpful urges should be circumvented

kizko

But why it always say that the folder Package is not writeble?

Arantor

No good deed goes unpunished
All helpful urges should be circumvented

kizko

I`ve empty the table. It`s ok with "installed" old package.


The folder permision are 777 (and al files in it have 777).

QuoteYou cannot download or install new packages because the Packages directory or one of the files in it are not writable!

kizko

 Apply Filter: Only show the error messages of this URL  http://forum.psp-fanatik.ro/index.php?action=admin;area=packages;sa=install;package=prettyurls-1-0RCb.tar.gz
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Subs-Package.php
Line: 2424

http://forum.psp-fanatik.ro/index.php?action=admin;area=packages;sa=install;package=prettyurls-1-0RCb.tar.gz
Apply Filter: Only show the errors with the same message
2: fopen(/var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/ManageBoards.template.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Subs-Package.php
Line: 2417



Apply Filter: Only show the error messages of this URL  http://forum.psp-fanatik.ro/index.php?action=admin;area=packages;sa=install;package=prettyurls-1-0RCb.tar.gz
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Subs-Package.php
Line: 2424

Apply Filter: Only show the error messages of this URL  http://forum.psp-fanatik.ro/index.php?action=admin;area=packages;sa=install;package=prettyurls-1-0RCb.tar.gz
Apply Filter: Only show the errors with the same message
2: fopen(/var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/languages/Modifications.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Subs-Package.php
Line: 2417


Apply Filter: Only show the error messages of this URL  http://forum.psp-fanatik.ro/index.php?action=admin;area=packages;sa=install;package=prettyurls-1-0RCb.tar.gz
Apply Filter: Only show the errors with the same message
2: fopen(/var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/languages/Modifications.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Subs-Package.php
Line: 2417

Some errors

Arantor

The rest of the files also need to be writable - the package manager physically modifies SMF files when installing mods.
No good deed goes unpunished
All helpful urges should be circumvented

kizko


Arantor

What about the Sources and Themes folders? Those are the files physically altered during package installation and as per the errors in your error log... Themes/default/languages/Modifications.english.php and Themes/default/ManageBoards.template.php at least are not writable.
No good deed goes unpunished
All helpful urges should be circumvented

kizko

Modifications.english.php and ManageBoards.template.php wasn`t writable.

The source and Theme folder are writeble (only the directory)

Arantor

Correct. And the mod modifies them so they need to be, just as the error message says:

Quotefopen(/var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/languages/Modifications.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
No good deed goes unpunished
All helpful urges should be circumvented

kizko

Still the same problem... all files from Sources need to be writable?


You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

Advertisement: