joomla EC-2 install problem

Asked by Igor

Hi!
My name is Igor, I woold like to install joomla on Amazon EC-2 Ubuntu server free tier, but I could not do this.
After a week of probe and tests I deside to write you. This letter I send to Amazon and Ubuntu help.

All settings are from official ubuntu site.

What did I do:

1. Set up right settings for Shh port (If not to do this, connection will be first and last time)
   Link on instruction - https://help.ubuntu.com/lts/serverguide/openssh-server.html

sudo apt-get install openssh-client

sudo apt-get install openssh-server

chmod 600 .ssh/authorized_keys

2. Programs packages installing before joomla install
   Link on instruction - https://help.ubuntu.com/community/Joomla

sudo apt-get update

sudo apt-get upgrade

-----------------

sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server php5-json phpmyadmin php5-curl unzip

// New password for the MySQL "root" user // PASS_1

// Password of the database's administrative user // PASS_1

// MySQL application password for phpmyadmin // PASS_2

Failure, writes that:

Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
W: Operation was interrupted before it could finish

-----------------

So I deside to reinstall packages one by one.

Delete all packages:

sudo apt-get purge apache2 php5-mysql libapache2-mod-php5 mysql-server php5-json phpmyadmin php5-curl unzip

Install all packages one by one:

sudo apt-get install apache2

sudo apt-get install php5-mysql

sudo apt-get install libapache2-mod-php5

sudo apt-get install mysql-server

sudo apt-get install php5-json

sudo apt-get install phpmyadmin

// Password of the database's administrative user // PASS_1

// MySQL application password for phpmyadmin // PASS_2

sudo apt-get install php5-curl

sudo apt-get install unzip

Failure, that was before doesn't repeat.
So I go further.

3. Joomla install
   Link on instruction - https://help.ubuntu.com/community/Joomla

SOURCEPKG=Joomla_3.1.5-Stable-Full_Package.zip
SOURCEWWW=http://joomlacode.org/gf/download/frsrelease/18622/83487/Joomla_3.1.5-Stable-Full_Package.zip

mkdir joomla
cd joomla
wget $SOURCEWWW
unzip $SOURCEPKG
rm -f $SOURCEPKG

cd ..
sudo mv joomla /var/www/
cd /var/www/joomla
sudo chown -R www-data:www-data .

cd /var/www/joomla/
sudo find . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;

mysqladmin -u root -p create USER_1

// Password of the database's administrative user // PASS_1

mysql -u root -p

// Password of the database's administrative user // PASS_1

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON USER_1.* TO USER_2@IGOR_HOST IDENTIFIED BY 'password';

\q

Successes, go further.

4. Change joomla files.
   Link on instruction - https://help.ubuntu.com/community/Joomla

-----------------

sudo nano libraries/joomla/filter/input.php

Failure.
Nano opens file, but it's empty.
There is no text, only black background and commands in bottom part.

So I go another way.

-----------------

I change text in file through Filezilla.

I download file /joomla/filter/input.php
Find:

$source = preg_replace('/&#(\d+);/me', "utf8_encode(chr(\\1))", $source); // decimal notation
$source = preg_replace('/&#x([a-f0-9]+);/mei', "utf8_encode(chr(0x\\1))", $source); // hex notation

Chfnge on:

$source = preg_replace_callback('/&#x(\d+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source); // decimal notation
$source = preg_replace_callback('/&#x([a-f0-9]+);/mi', function($m){return utf8_encode(chr('0x'.$m[1]));}, $source); // hex notation

Allso I change folder rights for joomla folder to make downloads on server.

sudo find /var/www/joomla -type f -exec chmod 777 {} \;
sudo find /var/www/joomla -type d -exec chmod 777 {} \;

Download new file on server.
After that do everything as in insrtuction:

sudo service apache2 restart

Unfortunately after all this steps I do not see joomla site on this link
http://ec2-52-7-84-123.compute-1.amazonaws.com/joomla/installation/index.php

It writes:

Not Found
The requested URL /joomla/installation/index.php was not found on this server.
Apache/2.4.7 (Ubuntu) Server at 52.7.84.123 Port 80

I allso try:

sudo apt-get update

sudo apt-get upgrade

cd /var/www/joomla/
sudo find . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;

Does not help.

Please, help me to solve this problem with EC-2 Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-d05e75b8
As you can see I did everything as written on Ubuntu official site, but I have no result I hope to.
Wait for new suggestions from you.
Thanks.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.