logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: lamp server migration debian
Author
vincentcarton



Joined: 09 Aug 2016
Posts: 2

PostPosted: Tue 09 Aug '16 10:53    Post subject: lamp server migration debian Reply with quote

Hi everyone,

i'm a noob in apache but i'm working to learn it. I'm an intern in a enterprise as intern technician in audiovisual and there is no it for the moment. We think about migrate our intranet, who is on a server lamp on a debian 6, on a debian 8.5. I 've installed debian and the lamp server successfully. But when i copy the content of the /var/www (debian6) into the /var/www/html (debian Cool and i refresh the page of the browser, i have a blank page. Do you have an idea of the problem?

Kind regards,

Vincent
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 10 Aug '16 11:24    Post subject: Reply with quote

find out where the document root is in your httpd.conf or apache2.conf
if there is a default vhost in the sites-enabled your have to look into that file.
A blank page can also indicate an error like php hasn't been executed or with an error.
Back to top
vincentcarton



Joined: 09 Aug 2016
Posts: 2

PostPosted: Wed 10 Aug '16 13:53    Post subject: post subject Reply with quote

HI,

thank you already. there is nothing in httpd.con but i have something in apache2.conf

In sites-enable i have this:

Code:
root@intranet:/etc/apache2/sites-enabled# ls
000-default
root@intranet:/etc/apache2/sites-enabled# cat 000-default
<VirtualHost *:80>
   ServerAdmin webmaster@localhost

   DocumentRoot /var/www
   <Directory />
      Options FollowSymLinks
      AllowOverride None
   </Directory>
   <Directory /var/www/>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride None
      Order allow,deny
      allow from all
   </Directory>

   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
   <Directory "/usr/lib/cgi-bin">
      AllowOverride None
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all
   </Directory>

   ErrorLog ${APACHE_LOG_DIR}/error.log

   # Possible values include: debug, info, notice, warn, error, crit,
   # alert, emerg.
   LogLevel warn

   CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


For the error, it's weird because it's working on the debian 6. Or this is normal?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 10 Aug '16 15:11    Post subject: Reply with quote

You can see that the document root is

/var/www/ not /var/www/html/

if your site requires PHP for example did you enable it? Do you need a database connection?
Back to top


Reply to topic   Topic: lamp server migration debian View previous topic :: View next topic
Post new topic   Forum Index -> Apache