close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

CMS Intall

Thread began 4/07/2010 3:24 pm by suthany403137 | Last modified 4/08/2010 11:33 am by Jason Byrnes | 908 views | 8 replies |

suthany403137

CMS Intall

Hello
I can not install CMS on my site. Can you help me?
Here's the link: CMS/

Thank you.

Sign in to reply to this post

shadow329043

You will have to be a bit clearer - what problem are you having?

Sign in to reply to this post

neilo

Hiya Ny403137,

The error on that page indicates that it can't find a folder and file that it needs to run to continue. It thinks that 'WA_SecurityAssist/Helper_PHP.php' is in a folder one level higher up than it actually is (i.e. - in your site's root directory)

As it seeme that your PowerCMS files and folders are in the correct places (i.e. - all in the 'CMS' directory) then check that the settings in your CMS/WA_Globals/WA_Globals.php file are correct.

They lines you should check are the 'localRoot' and 'remoteRoot' lines which for you should look like this:

<?php
$WAGLOBAL_Site_Name = "CMS Admin" ;

$WAGLOBAL_localRoot = "/CMS/ "; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/CMS/ "; //relative path to your PowerCMS files on your remote server.

// Admin Settings
$WAGLOBAL_Admin_UserName = "yuoradminusername" ;
$WAGLOBAL_Admin_Password = "youradminpassword" ;
?>



Check that these are correct on the CMS/WA_Globals/WA_Globals.php file that has been uploaded to your site.

Let us know how you get on.

Sign in to reply to this post

Ny403137

Ny403137. Thanks Neilo for your reply.

<?php
$WAGLOBAL_Site_Name = "http://www.marylingerie.com" ;

$WAGLOBAL_localRoot = "/CMS/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/CMS/"; //relative path to your PowerCMS files on your remote server.

// Admin Settings
$WAGLOBAL_Admin_UserName = "......" ; What is UserName Admin, in Database ?
$WAGLOBAL_Admin_Password = "......" ;
?>

Sign in to reply to this post

neilo

Hi Ny403137,

Not sure how far you have got with the installation, but the values below (in the WA_Globals.php file):

// Admin Settings
$WAGLOBAL_Admin_UserName = "yuoradminusername" ;
$WAGLOBAL_Admin_Password = "youradminpassword" ;

can be what ever you choose for your site's Admin area log-in and password. You can choose and insert these in to the globals file before you carry on with the install procedure, or change them afterwards if you want a different Admin log-in name and/or Password. When you want to change the content on the areas you have set up for content management editing on your site, you will need to log-in to the Admin area to make the changes using those details.

Where are you with the install at the moment? The first step will have been to set up a mySql database and created the tables using the .sql file included in the download (Database/CMS.sql).

That step and all the subsequent steps (or links to the necessary info) are in the 'Getting Started Guide' (although the bit about the setting Globals is referring to outdated documentation and is yet to be updated, but we've sorted that here!).

You may have already sorted all of that, - apologies if so. Let us know if you need any help with any of this.

Sign in to reply to this post

Ny403137

Hi Neilo (Ny403137)

I already put the Database/CMS.sql in my Database name : marylingerie
admin/
Here is the new message :
You don't have permission to access /CMS/admin/ on this server.

Can I give you my password FTP to looking for ?

<?php
$WAGLOBAL_Site_Name = "http://marylingerie.com" ;

$WAGLOBAL_localRoot = "/marylingerie/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/marylingerie/"; //relative path to your PowerCMS files on your remote server.

// Admin Settings
$WAGLOBAL_Admin_UserName = ".........." ;
$WAGLOBAL_Admin_Password = "........" ;
?>

Waiting for your Help, Thanks !

Sign in to reply to this post

neilo

Hi there Ny,

There's no need for Password FTPs yet, and if there is, it should go to one of the WebAssist techs. If that time comes, then they will open a ticket so you can exchange details in private.

BUT:

In the meantime, let's look at the error and the messages we get.

The first one (your link, - 'http://www.marylingerie.com/CMS/admin/') which says,

  "Forbidden, You don't have permission to access /CMS/admin/ on this server."  

is the response you get from just trying to browse a folder without specifying a particular file, UNLESS that folder contains a designated default type of 'main' page, which is usually called 'index.php', 'index.html' or 'default.html' or default.php etc.That folder should contain your CMS/admin/index.php, which should have opened.

So to test it, I typed in, 'http://www.marylingerie.com/CMS/admin/index.php' (same as your link but with the 'index.php' added), and I get the message,

  "Not Found. The requested URL /CMS/admin/index.php was not found on this server."  



As a final test, I looked for another file that I know should be in the CMS/admin folder, 'http://www.marylingerie.com/CMS/admin/help.php' This time, I get a couple of warning/information messages, which both amount to something like,

  "we couldn't open ../Connections/localhost.php which is being requested by line 3 of your CMS/admin/help.php page".  



Sorry about the abuse of the quote line, but the meaning is the same, which is that it looked inside your CMS folder for a folder called 'Connections' containing a file called 'localhost.php', and couldn't find it. I couldn't find the Connections folder anywhere on your site. (Root Dir, CMS, Admin).

So I think there is a problem with missing or misplaced files and folders - they may not have uploaded correctly. What I would suggest, is removing all the CMS files and folders from your remote site, and starting from scratch (sorry!).

This time, just upload the entire (preferably freshly) downloaded WebAssist 'CMS102' solution folder after renaming it to just 'CMS' and then upload the whole freshly-named 'CMS' folder 'as-is' to your remote site's root directory. Don't forget to change the WA_Globals.php file to contain details as previously described,

<?php
$WAGLOBAL_Site_Name = "CMS Admin" ;

$WAGLOBAL_localRoot = "/CMS/ "; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/CMS/ "; //relative path to your PowerCMS files on your remote server.

// Admin Settings
$WAGLOBAL_Admin_UserName = "yuoradminusername" ;
$WAGLOBAL_Admin_Password = "youradminpassword" ;
?>



Put in a username and password that you will remember during the install process.

Sorry about this, but it will eliminate any doubts about wrong paths, missing files, and wonky structure. It will also probably be quicker to do, than it was to read this.

Post back with how you get on. I may be gone for a bit as it's almost eleven in the morning here and I haven't been to bed yet. I keep odd hours.

AH! Edit: Also, make sure to update the settings in your Connections/localhost.php file with the correct database connection details for your remote database:

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "YourDatabaseName";
$username_localhost = "YourDatabaseUsername";
$password_localhost = "YourDatabaseUserPassword";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>



Cheers

Sign in to reply to this post

Ny France

Hi Neilo (Ny France)

I still have same problem.
index.php

Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/clients/www/marylingerie.com/www/CMS/Connections/localhost.php on line 9

Fatal error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/clients/www/marylingerie.com/www/CMS/Connections/localhost.php on line 9

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "marylingerie";
$username_localhost = "root";
$password_localhost = "....";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>


<?php
$WAGLOBAL_Site_Name = "CMS Admin" ;

$WAGLOBAL_localRoot = "/CMS/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/CMS/"; //relative path to your PowerCMS files on your remote server.

// Admin Settings
$WAGLOBAL_Admin_UserName = "......." ;
$WAGLOBAL_Admin_Password = "...." ;
?>

Cordially

Sign in to reply to this post

Jason ByrnesWebAssist

the error:
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/clients/www/marylingerie.com/www/CMS/Connections/localhost.php on line 9


means that the SQL Server name you provided is not correct.


try changing:
$hostname_localhost = "localhost";

to;
$hostname_localhost = "127.0.0.1";


if that still does not work, you will need to contact your host for the correct MySQL server name to use in the connection file.



Neilo, thanks for your help in getting this far.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...