Version of Operating system? Windows Ultimate 7 64bit
Version of Wamp Server installed? 2.5 32bit
Version of Apache you are running? 2.4.9
Version of MySQL you are running? 5.6.17
Version of PHP you are running? 5.5.12
What colour is your WampManager icon? Green
Host file localhost 127.0.0.1
Hello All & Greetings, this is my first post
I am using Aptana as my IDE. To be able to preview PHP projects from my usual workspace I did change the DocumentRoot in httpd.conf to "D:/WEB WORK/Aptana Workspace/" as well as <Directory "D:/WEB WORK/Aptana Workspace/">.
This enables my to keep my Aptana workspace as is and I can preview the projects inside Aptana as well as in browsers from URL /localhost/{here is my project name}/
So this is working all fine.
However when I now simply go to /localhost/ in the browser I get the error "Unable to open WampServer's config file, please change path in index.php file".
I looked inside the index.php file residing on c:/wamp/www/ and found this.
$server_dir = "../";
//Fonctionne à condition d'avoir ServerSignature On et ServerTokens Full dans httpd.conf
$server_software = $_SERVER['SERVER_SOFTWARE'];
$wampConfFile = $server_dir.'wampmanager.conf';
//chemin jusqu'aux fichiers alias
$aliasDir = $server_dir.'alias/';
// on charge le fichier de conf locale
if (!is_file($wampConfFile))
die ('Unable to open WampServer\'s config file, please change path in index.php file');
$fp = fopen($wampConfFile,'r');
$wampConfFileContents = fread ($fp, filesize ($wampConfFile));
fclose ($fp);
I think I need to change the line $wampConfFile = $server_dir.'wampmanager.conf'; but I do not know to what I should change it.
I only changed the Document Root and nothing else in the http.conf file. Do I need to change that line to the new Document Root as well?
Note that /localhost/phpmyadmin/ is working just fine. I can see the phpmyadmin panel perfectly.
The only thing missing is to link the wampmanager.conf to the correct path but I would not know to where since the server root did not change only the document root.
Please note these are my first 30 minutes with WAMP so please forgive any obvious mistakes. Would be very happy to get that neat localhost menu back that was there before I changed the Document Root to be my Aptana Workspace.
Thanks for any help.
Best
Frank
Edited 3 time(s). Last edit at 10/16/2014 03:05PM by funkyfrank.