How to move Joomla 1.5? - php

I've read a lot on the internet about how to move Joomla. So, confident in myself, I've moved this old joomla 1.5 website to another machine.
I've copied files and database (data and user) as it were in the old machine on the new. Same folder name, same apache2 configuration, same .htaccess, same database configuration, name and data, same operative system, same php version...
Unfortunately, any page I'm trying to visit return a "404 component not found error" like it cannot find the page.
I cannot get what is happening. Mooving Joomla requires particular attentions, after copying files and database?

You have to change in configuration.php file the path of log and tmp directory, It's hard for you to have the same path in a different machine.
In the log file there are more details? Type what component.

Some things to check when a moved Joomla website is not working as expected:
the .htaccess file (in particular, check the RewriteBase /, Options +FollowSymLinks lines or any non-standard lines - compare with htaccess.txt for the default settings)
the configuration.php file, check tmp and logs paths are correct, try setting $live_site = ''; if it's not already
check for any php.ini files in the root folder and also in the /administrator folder - php.ini files are often not needed any more as you can configure PHP settings via cPanel or similar
try disabling URL Rewriting in Global Configuration

Related

Internal pages not found (404) after moving to new host - CodeIgniter

I have recently moved one website to new server. I have transferred everything properly including mysql database. But now the internal pages are not opening (sending 404 error). Homepage looks fine.
One thing to consider here is that, the website was on shared cpanel with another domain and residing in a folder. Now after moving, it is placed directly in public_html. I hope, this doesn't create any issue.
The website is: http://nepaltrekking.co.kr/
regards,
When hosting changes, we need to take care of the following steps for codeigniter:
Check required php and apache modules are installed and enabled.
If installation is not in root directory, you must change htaccess.
If domain is changed, you need to edit config file for new base_url.
Clear application cache if enabled. Give required write permision in cache directory.
If nothing works, then see error log and correct error accordingly.
Actually I resolved it. The issue was with .htaccess. I changed the permission to 666 and it started working. I think there was problem writing in the .htaccess file.

Installing Silverstripe 3.1 on subdomain

First time asking a question here but I'm really stuck.
Basically I'm trying to install a Silverstripe 3.1 cms on a subdomain as a development site, on my main domain I already have a Silverstripe 2.4 site running.
The first thing that comes up is this error, "development" is the subdomain folder.
Warning: require_once(framework/dev/install/DatabaseConfigurationHelper.php): failed to open stream: No such file or directory in /home/usr/public_html/subdomain/framework/dev/install/install.php5 on line 39
I check if the file is there and it is, then I check if the filepath is wrong because the file that is calling require_once has a full path from home/ but that can't be it because I've been able to install Silverstripe on my localhost.
I google redirecting (I've had no experience with it before) and find stuff on htaccess related to Silverstripe but none were problems that I was having, i.e. there are .htaccess files in main directory and subdomain. Not too sure if they're conflicting but I have tried RewriteEngine Off on my subdomain. I mostly leave the default Silverstripe .htaccess files as they are.
Even declaring different suPHP_ConfigPath's i.e.
main website: home/usr/public_html/
subdomain: home/usr/public_html/subdomain
At this point I look back at the error and try hacking the require_once filepath, changing it to
$_SERVER["DOCUMENT_ROOT"] . '/framework/dev/install/DatabaseConfigurationHelper.php
It mostly works but the requirements check page is void of css and any fails to GET any images
I am able to check all the requirements though passing everything but the File Permissions check:
"Does the webserver know where files are stored?" failed. Showing me the filepath it tried being the absolute path of a file prepended with the path to the subdomain. Looking at the code my hack was never intended to work.
Did I miss something? I'm not very knowledgeable with servers but I've done everything I can think of, is there anything I can do?
Hey thanks for your suggestion but I think it was meant for addon domains? I only wanted a subdomain for testing purposes.
What I ended up doing was to avoid installing Silverstripe on the server and instead install it on my laptop and then upload that to the server. It worked fine after copying the appropriate database and fixing Silverstripe's BaseURL to '/'

After transferring Joomla site, I can't install extensions

I updated a Joomla website for a customer of mine. I did this in XAMPP. Now, when transferring it to the server, I have some problems. I can't install extensions anymore and I get the message:
JFolder::create: Infinite loop detected
Warning: Failed to move file!
After some reading I found out it's possibly caused by the log and tmp folder, but I don't know how to rename them to work. (The link to them in the config.php file)
public_html > tmp / log (both tmp and log are in the main directory of public_html)
How would I set them up to work? And is it definitely this that is causing this error?
You can actually edit those values using Joomla's back-end. Go to global configuration settings menu option, one of the text fields is in the Server tab and the other is in the System tab. If you can, put the full directory path of the server in for the values.

Joomla 3.2 - Turning Register Globals Off

Background: I downloaded Joomla 3.2 directly from Joomla's website, extracted the contents and uploaded everything to a subfolder within my /public_html via FTP; with the host being domain.com. I access the frontend via www.{my_address}.com/Joomla3. I have .htaccess and php.ini in /public_html and .htaccess in my Joomla3 folder. It should also be noted that my php version is 5.3.13 and that I am using Filezilla for FTP transfers.
Problem: I am having trouble getting past the Pre-Installation Check. Everything under Recommended Settings is green while all the required settings are green...except the red "No" next to "Register Globals Off".
Attempts: From my desperate search through Google, here's what I've found/tried.
*Register_globals is turned off in php.ini by default in PHP5* - Yet the pre-installation check shows otherwise. Perhaps the host keeps it on?
Put register_globals = Off in php.ini - I placed it in /public_html/php.ini; No change. Also, I had to create php.ini myself. Perhaps it could be in the wrong location?
Place php_flag register_globals off in .htaccess - I placed it in /public_html/.htaccess; I receive a 500 Internal Server Error on both www.{my_address}.com and www.{my_address}.com/Joomla3. When I place the line in /public_html/Joomla3/.htaccess, www.{my_address}.com/Joomla3, I receive Error 500 on just www.{my_address}.com/Joomla3.
Go to Software/Services in HostGator Cpanel and click "php.ini QuickConfig" - Though I know it's for a different host, I tried looking for a similar option/tool on Domain.com's control panel (whatever it may be called), but couldn't find one. Perhaps I overlooked it?
*Put php.ini in /public_html/yourserver/administrator/* - Copied the aforementioned php.ini file into /public_html/Joomla3/administrator; No change. I copied the same file into /public_html/Joomla3/installation; I receive Error 500 yet again.
If you are running PHP5, name your initialization file php5.ini - I changed php.ini to php5.ini; No change. I moved php5.ini to /administrator and /installation.
Those are all the attempts I can think of so far. Please let me know how to solve this. I appreciate all the help I can get. I've been working with Joomla 2.5 and I'd like to experience 3.2.
Note: I don't know what's with the formatting mishap in the 1st and 5th points. Please disregard the asterisks that were meant to italicize.
Create php.ini and .htaccess files outside of your document root.
I will assume your document root is /home/yourusername/public_html then do the following:
Create php.ini file outside of the document root: /home/yourusername/php.ini.
Inside your php.ini file turn register_globals OFF:
register_globals = Off
Create .htaccess file outside of the document root: /home/yourusername/.htaccess.
Inside your .htaccess file put:
SetEnv PHPRC /home/yourusername/php.ini
Create a phpinfo.php file inside your document root: /home/yourusername/public_html/phpinfo.php
Inside your phpinfo.php file put this inside php tags: phpinfo();
Visit phpinfo.php and check the Loaded Configuration File - it should point to the new file.
In the end, I submitted a ticket to Domain.com's support staff with the request to turn Register_Globals off. They responded later that night after doing just that. I wish I could provide more details, but they hadn't provided any (even though I asked).
So, problem solved. Thanks anyways to those who provided ideas to try.

Redirect Loop on Drupal 6 after moving website

I posted a question earlier today asking which files needed to be changed to move drupal to MAMP successfully.
I've now moved it all over and connected it to the database, however, I'm stuck in a redirect loop whilst trying to view the website. As far as I can gather, the redirect loop is stuck between index.php and install.php
How do I fix this? What would cause a redirect loop?
I read somewhere that there was a redirect file in a tmp directory and removing it will solve the issue, but for me the file doesn't exist.
Check if your web server has read permissions for settings.php.
Also check if the database is set up properly. As always, drush is your friend.
Sounds like an .htaccess issue, this happens sometimes when you're moving the site from a root path (ie. example.com/) to a subfolder (ie. localhost:8888/drupal/).
Try changing the RewriteBase in the .htaccess file to:
RewriteBase /drupal/
Where drupal is the name of the subfolder Drupal is installed in.
Due to my own in-experience with Drupal, I failed to recognise that the site in question was a Drupal Multi-site. The sites folder contained 'all' and 'example.com' There was no 'default' folder.
There was two solutions to my issue.
Set up MAMP as a Virtual Host (so example.com would direct to my mamp installation and so tick all the boxes for the files redirection)
Change the folder name to 'localhost' and not 'example.com'
The second solution did leave me with one or two issues, but as I'm only needing this installation for the theme I decided a botched solution would be least time consuming.

Categories