apache2-php4-joomla-mysql

Discussion in 'Server Operation' started by gabrix, Dec 4, 2006.

  1. gabrix

    gabrix New Member

    I'm trying to restore a backed up site .I have all i need basically the mysqldata.sql backupfile and the DocumentRoot dir.First question is this all i need ?
    Second question the DocumentRoot is set,the php4 module is 'a2enmoded' when i connect to the the site the dowload window show up asking me where i want to download a t2sn3zyo.phtml file .... :confused: what's happening ???
    Thanks !!
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I think so.

    Can you post the vhost configuration here?
     
  3. gabrix

    gabrix New Member

    <VirtualHost tor.gabrix.ath.cx:80>
    ServerName tor.gabrix.ath.cx
    ServerAlias tor.gabrix.ath.cx
    ServerAdmin [email protected]
    DocumentRoot /var/www/torgab
    ErrorLog /var/log/apache2/tor_error.log
    TransferLog /var/log/apache2/tor_access.log
    </VirtualHost>
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Try this instead:

    Code:
    <VirtualHost tor.gabrix.ath.cx:80>
         ServerName tor.gabrix.ath.cx
         ServerAlias tor.gabrix.ath.cx
         ServerAdmin [email][email protected][/email]
         DocumentRoot /var/www/torgab
         ErrorLog /var/log/apache2/tor_error.log
         TransferLog /var/log/apache2/tor_access.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode On
    php_admin_value open_basedir /var/www/torgab/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/torgab/phptmp/
    php_admin_value session.save_path /var/www/torgab/phptmp/
    </VirtualHost>
    and run
    Code:
    mkdir /var/www/torgab/phptmp/
    chmod 777 /var/www/torgab/phptmp/
     
  5. gabrix

    gabrix New Member

    Why this new dir for ???Most of this are commands you find in /etc/php4/apache2/php.ini isn't it ?Could you please tell me a bit more than just try this,sorry but i don't like to copy and paste blindly !thanks!
     
    Last edited: Dec 6, 2006
  6. falko

    falko Super Moderator Howtoforge Staff

    The directory is for PHP sessions and file uploads. If you don't like it, you can try without.
     
  7. gabrix

    gabrix New Member

    File uploads ... uhm!! ?? What file uploads ?? Sorry i don't see your point!I tried and doesn't work,could you please explain a bit more, you don't have to,offcourse,but would be nice to make understand me and maybe other people,don't you think?I know you are buried of posts of any kind and you are one of the few persons keeping howtoforge up,and still making a great job,but i like understand what i do ,as you do,and maybe give also my part,isn't right?? !!!!
     
  8. falko

    falko Super Moderator Howtoforge Staff

    For example if you have a php page with a form to upload images, etc. But this is getting off-topic now.
     

Share This Page