Author Topic: 404 error  (Read 518 times)

casualx

  • Newbie
  • *
  • Posts: 0
404 error
« on: April 21, 2012, 08:53:03 PM »
hello there
I have reccently downloaded and uploaded phpmotion but cause im new to lamp server generally I need some help

after setting up the ubuntu base system I did those following commands and operations

Code: [Select]
#install apache2 with php
sudo -s #enable permanent root acces for the actual shell
apt-get install apache2
nano /etc/apache2/ports.conf #edited /etc/apache2/ports.conf that the server listen on 192.168.1.2 with "Listen 192.168.1.2:80"
apt-get install php5 libapache2-mod-php5sudo
service apache2 restart

#test php
echo "<?php phpinfo(); ?>" > /var/www/test.php #test was successfull

#install mysql
apt-get install mysql-server php5-mysql mysql-client

#install phpmyadmin
apt-get install libapache2-mod-auth-mysql phpmyadmin #all functions seem to work


now I started with installing phpmotion

Code: [Select]

#installing the dependencies
apt-get install mplayer
apt-get install mencoder
apt-get install flvtool2
apt-get install ubuntu-restricted-extras
apt-get install build-essential
apt-get install ffmpeg
apt-get install  php5-gd
apt-get install php5-curl
a2enmod rewrite
service apache2 force-reload
service apache2 resta01 sudo apt-get update

php shield installation

Code: [Select]
mkdir  /home/user/phpshield
cd   /home/user/phpshield
wget http://phpshield.com/loaders/ixed4.lin.x86-32.zip
unzip ixed4.lin.x86-32.zip

#testing which php I have
php -v #
output: PHP 5.3.2-1ubuntu4.14 with Suhosin-Patch (cli) (built: Feb 11 2012 06:50:46)

cp ixed.5.3.lin /usr/lib/php5/20090626+lfs

echo "extension=phpshield.5.2.lin" >> /etc/php5/apache2/php.ini
service apache2 restart

next step was registering here,download phpmotion for php5.3 and move to /var/www/phpmotion

edited /var/www/phpmotion/.htaccess and change line RewriteBase /phpmotion

edited /etc/php5/apache2/php.ini and change directive "enable_dl = On"

change permissions for root folder

Code: [Select]
chmod 777 -R /var/www/phpmotion

copied all files from /var/www/phpmotion/cgi-bin to /usr/lib/cgi-bin by issuing following command
cp -R /var/www/phpmotion/cgi-bin /usr/lib/cgi-bin

next step edit /var/www/phpmotion/cgi-bin/uu_default_config.pm

Code: [Select]
temp_dir                 => $ENV{'DOCUMENT_ROOT'} . '/phpmotion/temp/',
upload_dir               => $ENV{'DOCUMENT_ROOT'} . '/phpmotion/uploads$
redirect_url             => '/phpmotion/uploader_finished.php',
path_to_upload           => '/phpmotion/uploads/avi/',

next step created mysql database for phpmotion

Code: [Select]
mysql -u root -p<mypassword>
create database phpmotion;
grant all privileges on phpmotion.* to 'root'@'localhost';
quit;


so I did install with firefox which all went ok

finally remove the setup files by

Code: [Select]
mv /var/www/phpmotion/setup /var/www/phpmotion/old_setup


now I can acces the site but when click on a sectio I get the 404 error
whats wrong with this?

oac

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2415
Re: 404 error
« Reply #1 on: April 23, 2012, 11:36:17 AM »
You will need to enable mod_rewrite to fix this problem.

casualx

  • Newbie
  • *
  • Posts: 0
Re: 404 error
« Reply #2 on: April 24, 2012, 05:05:44 PM »
thx im gonna try this