LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-01-2011, 11:05 AM   #1
ScorchPipe
Member
 
Registered: Sep 2010
Posts: 38

Rep: Reputation: 0
Change Op5 web interface directory


Hi

I installed Op5 Beta (free) on my CentOS-machine yesterday. This machine is the only one it will monitor for the time being (stupid I know but Im doing it just for fun)


After the installation was done I couldnt reach my regular website running on this server anymore. I figured it might have something to do with Op5s default webpage so I moved everything placed in /var/www/html by the Op5 installation to a subdirectory.
Still nothing.

I can't find anyone having this issue and Op5s support is only open to paying customers.

What I reallt want to do is to reach the Op5 web interface by entering mywebsite.com/op5. But now I cant even reach the usual one.

Any ideas how to fix this?
 
Old 12-01-2011, 11:32 AM   #2
hvulin
LQ Newbie
 
Registered: Sep 2009
Location: Velika Gorica, Croatia
Distribution: Debian
Posts: 15

Rep: Reputation: 0
You probably just broke your apache configuration. I don't use centos but I think it shouldn't matter. My debian apache2 has it's config in: /etc/apache2/ directory. Look under sites-enabled/ directory for what is enabled (debian default has 000-default file) or if it doesn't exist look directly in /etc/apache2/httpd.conf or /etc/apache2/apache2.conf.
Line you are looking for is DocumentRoot /var/www (or probably something else now) - it points to web root directory under which you should put your web site. Op5 probably changed this to its own directory so your original website is note showing any more.

If your op5 website is under /usr/op5/www (I don't know the real directory) you could just link it to the real directory (without copying):
ln -s /usr/op5/www /var/www/op5
 
Old 12-01-2011, 11:41 AM   #3
ScorchPipe
Member
 
Registered: Sep 2010
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hvulin View Post
You probably just broke your apache configuration. I don't use centos but I think it shouldn't matter. My debian apache2 has it's config in: /etc/apache2/ directory. Look under sites-enabled/ directory for what is enabled (debian default has 000-default file) or if it doesn't exist look directly in /etc/apache2/httpd.conf or /etc/apache2/apache2.conf.
Line you are looking for is DocumentRoot /var/www (or probably something else now) - it points to web root directory under which you should put your web site. Op5 probably changed this to its own directory so your original website is note showing any more.

If your op5 website is under /usr/op5/www (I don't know the real directory) you could just link it to the real directory (without copying):
ln -s /usr/op5/www /var/www/op5
That doesn't seem to be the problem. Documentroot in httpd.conf is /var/www/html just as it should be.
The problem is that neither of them is working. Not op5s site and not mine
 
Old 12-01-2011, 02:09 PM   #4
ScorchPipe
Member
 
Registered: Sep 2010
Posts: 38

Original Poster
Rep: Reputation: 0
Ok I'm on to something here


If I remove all of Op5s conf-files in /etc/httpd/conf.d my own website starts working again. If I then enter the Op5 subdirectory (mywebsite.com/op5) I get the Op5 front page.

However I cant get anywhere from that point. If I click on the "Monitor"-button which usually leads to the login-page, I get 404 and so on. So I figured all the paths must be wrong now since I moved all the op5 items to a subdirectory.

So I restored the conf-files that was in /etc/httpd/conf.d and edited all of the paths in them to match the new path. When I restarted httpd though, nothing worked (same as before)

Also tried editing the Op5 index.php without any success
 
  


Reply

Tags
centos, directory, interface, monitor


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I change change the home directory to be owned by me and not root? Slackware theif519 Linux - Newbie 4 06-24-2011 12:21 PM
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
Dynamic change of iptables rules using web interface OgeeN Linux - Security 1 09-07-2007 06:03 PM
LXer: How to change Linux /UNIX system password-using a web based PHP script user interface LXer Syndicated Linux News 0 08-05-2006 08:33 PM
Uploaded files via web interface get a 600 permissions - how can I change this? muskiediver Linux - Newbie 0 07-21-2006 09:11 AM


All times are GMT -5. The time now is 09:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration