Installed successfully, however get 404 error trying to load page

Discussion in 'Installation/Configuration' started by kyferez, Jan 2, 2017.

  1. kyferez

    kyferez Member

    So I went thru the config to install ISP config successfully on my existing web server with sites already created. I edited the default port to 8443 and added a firewall rule and reloaded the firewall. I was getting the default Apache welcome page so I edited the 000-ispconfig.vhost virt host to this and left everything else in there at default:
    <VirtualHost *:8443>
    ServerName isp.mysite.com
    DocumentRoot /var/www/ispconfig/

    When I access my url (isp.mysite.com:8443 using https) I get this:
    The requested URL /cgi-bin/php5/index.php was not found on this server.

    In logs, I see these two entries each time I load the page:
    in /var/log/httpd/error_log:
    [Mon Jan 02 17:04:51.007932 2017] [cgi:error] [pid 4826] [client my_ip:57594] script not found or unable to stat: /var/www/cgi-bin/php5

    in /var/log/ispconfig/httpd/isp.mysite.com/access.log
    my_ip - - [02/Jan/2017:17:04:51 -0500] "GET / HTTP/1.1" 404 523 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"

    The only place I see ScriptAlias in my configs is (using grep -ri ScriptAlias /etc/httpd):
    /etc/httpd/conf/httpd.conf: ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
    /etc/httpd/conf.d/awstats.conf: ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"

    Any help is appreciated, thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I won't install a hosting control panel (no matter if you use ispconfig, plesk or whatever) on a server that hosts already sites as the setup will either break or not fully work as your manual setup is never 100% compatble with the setup of the chosen control panel. Did you go trough the whole perfect server guide and installed all packages mentioned there before you installed ispconfig?
     
  3. kyferez

    kyferez Member

    Till, would this happen if I hadn't compiled suphp? I can't remember if I did or not. I installed all that a few months ago, and used a perfect server build guide back then but a few things simply didn't work (ftp would not accept user logins, would not send mail) and so piece mealed from several guides and got it all working in the end. It was not as straightforward as the guides make out...

    Then I wanted a database driven DNS so removed bind and installed PowerDns.

    All working for a bit and decided to install ISPconfig to make life easier... and here I am :)

    I have a snapshot and the server is live with only dev sites so I wasn't concerned if stuff broke during the install; it did but was minor to fix. Screwed up some of my vhosts is all.
     
    Last edited: Jan 6, 2017
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No, you can leave out suphp as long as you don't use it in websites in ispconfig.

    I install serers every few days by using the perfect server guides, simpky copy/paste iof the commands without any changes and the resulting servers do always fully work, so there are no issues in the guides. If it did not work on your system this way, then you either missed a step or your system was not clean, a controlpanel installation requires an empty and clean system like i mentioned above.
     
  5. BharatG

    BharatG New Member

    So in case I manually install apache2, php7 etc etc and configure them to act as my server on ubuntu16.04, the Control Panel will not function well or not function all together?
    I guess that's why I cannot get ISPConfig3 working for me since 4 days xD

    Please do reply to clarify
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Correct, like any software, ispconfig will not work if your server does not provide the system requirements and these requirements are described in the perfect server tutorials.

    You can find the ISPConfig installation instructions here:

    http://www.ispconfig.org/documentation/

    The Ubuntu 16.04 installation tutorial that is listed there is this one for apche:

    https://www.howtoforge.com/tutorial...l-pureftpd-bind-postfix-doveot-and-ispconfig/

    and this one for nginx:

    https://www.howtoforge.com/tutorial/perfect-server-ubuntu-16-04-nginx-bind-dovecot-and-ispconfig-3/

    These tutorials describe the system requirements for an ispconfig server, so with each package that you leave out, a function in ISPConfig or the whole panel will stop working.

    Then open one of the above-mentioned tutorials and follow it from start to end to install ISPConfig.
     
  7. BharatG

    BharatG New Member



    Then open one of the above-mentioned tutorials and follow it from start to end to install ISPConfig.[/QUOTE]
    Hi,

    I was able to get ispconfig running, thank you for the tips on the fresh installation.
    Id have been stuck forever if did not land up here

    Thanks a ton!
     

Share This Page