@ falko,
Now I'm getting:
Code:
Warning: include(/home/rbjamie/public_html/zbblock/zbblock.php) [function.include]: failed to open stream: No such file or directory in /var/www/index.php on line 1
Warning: include() [function.include]: Failed opening '/home/rbjamie/public_html/zbblock/zbblock.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/index.php on line 1
Warning: Cannot modify header information - headers already sent by (output started at /var/www/index.php:1) in /var/www/libraries/joomla/factory.php on line 566
Database Error: Unable to connect to the database:Could not connect to MySQL
First of all, "zbblock" is the security software I use on my LIVE site. But more importantly, I think that first "Warning" line is because the path on line one in index.php does NOT exist on my local machine. Which is why I'm thinking to try and use Akeeba because maybe it will adjust those paths.
In the alternative, I guess I could just as well go in there and edit the index.php with my IDE. But then I'd have to do that on my LIVE site everytime I uploaded my content modifications.
The second warning seems to be the same.
The third warning I'm not too sure about, except I see there's that damn " . . . could not connect to MySQL" nonsense again.
I thought I had solved that whole problem when I just flat out reset the MySQL password with the sequence:
Code:
sudo /etc/init.d/mysql stop
sudo mysqld --skip-grant-tables &
mysql -u root mysql
And then at the MySQL prompt:
Code:
UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
And then I was using my own "testme.php" file:
Code:
<?php
/**********************************************************************
START editing here...
**********************************************************************/
$mysql_host = 'localhost';
$mysql_username = 'root';
$mysql_password = '';
$mysql_database = '';
/**********************************************************************
STOP editing here...
**********************************************************************/
echo('<p>Trying to connect to MySQL on server <strong>'.$mysql_host.'</strong> as user <strong>'.$mysql_username.'</strong> with password <strong>'.$mysql_password.'</strong>.</p>');
$db=mysql_connect($mysql_host,$mysql_username,$mysql_password);
if(!is_resource($db)) {
echo('<p style="color:#c00">FAILED</p>');
echo('<p>Debug - '.mysql_errno($db) . ':' . mysql_error($db). '</p>');
exit();
} else {
echo('<p style="color:#0c0">SUCCESS</p>');
}
echo('<hr />');
mysql_query('SET CHARACTER SET \'utf8\';',$db);
mysql_query('SET NAMES \'utf8\' COLLATE \'utf8_general_ci\';',$db);
echo('<p>Trying to talk to database <strong>'.$mysql_database.'</strong>.</p>');
if(!mysql_select_db($mysql_database,$db)) {
echo('<p style="color:#c00">FAILED</p>');
echo('<p>Debug - '.mysql_errno($db) . ':' . mysql_error($db). '</p>');
exit();
} else {
echo('<p style="color:#0c0">SUCCESS</p>');
exit('<p>Thank God! Now it's time for that cigar...</p>');
}
mysql_close($db);
?>
to see if it worked. The indication was "
Success" when I plugged in the LIVE site db name and reset password. (BTW, haven't divulged any passwords or user names here because in the php script above, the default user is "root" and the default password is nothing (""). I just plugged in the actual db name and new password.)
But I think the configuration.php file from my LIVE site, plus some other imported files, needs to be edited also.
The paths are all screwed up.
Bottom line, again this was why I was thinking of using Akeeba to avoid all this hassle . . . which it advertises it will do.
Another problem is that I know just enough to be dangerous, and I was hoping maybe Akeeba would help me not to shoot myself in the foot, which I often end up doing when I try to do things myself.
I get it "half-right" and screw myself up with the other half that is absolutely wrong.
Which is another reason why I need to get my site on my local machine for edits. I've been lucky so far, but sooner or later if I keep editing the LIVE site, the law of averages is going to catch up with me and I'm going to bork the LIVE site.
Fortunately I just renamed the Apache index.htm file to "indexold.htm" and was able to recover to at least where I was getting the apache "working" message, which essentially puts me back to square one.
I've got to be missing something real simple because I know a lot of people have this kind of setup for test editing and they can't be going through the tedious cycle of resetting paths every time they go from local to live and then have to adjust the paths on live.
So what am I missing?
(BTW, thanks for taking out that spam).
Recent comments
2 days 14 hours ago
2 days 23 hours ago
3 days 2 hours ago
3 days 3 hours ago
3 days 4 hours ago
3 days 6 hours ago
3 days 7 hours ago
3 days 9 hours ago
4 days 1 hour ago
4 days 1 hour ago