You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Mark,
First things first, would like to thank you for maintaining the mosaico-php-backend.
I have a xampp setup on Windows 7 and I have copied the mosaico files under a folder named moss under xampp/htdocs. I don't have Node running at present. I just copied the entire build files that were created after successfully building mosaico under xampp/htdocs. I tested mosaico with node and I could upload images, list them etc. It worked perfectly.
The set up looks like this - xampp/htdocs/moss
I copied the contents of mosaico-php-backend under moss and ended up with directories dl, upload and img. The .htaccess files have been left unchanged.
I copied backend-php as is under xampp/htdocs/moss and this is what it looks like - xampp/htdocs/moss/backend-php
Should I leave config.php under backend-php or should I move it to the application root folder, ie, xampp/htdocs/moss?
I think I haven't quite understood how config.php should be edited. I am copy pasting the entire contents of my config.php here. Would be grateful if you can direct me in the right way to setting the respective paths.
/* note that all _URL and _DIR configurations below must end with a forward slash (/) /
$config = [
/ Url for image serving in final download /
SERVE_URL => "http://localhost/moss/img/",
/ Base Url for accessing Mosaco */
BASE_URL => "http://localhost/moss/",
/* local file system base path to where image directories are located */
//BASE_DIR => "/var/www/mosaico/",
BASE_DIR => "file:///d:/xampp/htdocs/moss/",
/* url to the uploads folder (relative to BASE_URL) */
UPLOADS_URL => "uploads/",
/* local file system path to the uploads folder (relative to BASE_DIR) */
//UPLOADS_DIR => "uploads/",
UPLOADS_DIR => "file:///d:/xampp/htdocs/moss/uploads/",
/* url to the static images folder (relative to SERVE_URL) */
STATIC_URL => "media/newsletter/static/",
/* local file system path to the static images folder (relative to BASE_DIR) */
//STATIC_DIR => "uploads/static/",
STATIC_DIR => "file:///d:/xampp/htdocs/moss/uploads/static/",
/* url to the thumbnail images folder (relative to BASE_URL */
THUMBNAILS_URL => "uploads/thumbnail/",
/* local file system path to the thumbnail images folder (relative to BASE_DIR) */
//THUMBNAILS_DIR => "uploads/thumbnail/",
THUMBNAILS_DIR => "file:///d:/xampp/htdocs/moss/uploads/thumbnail/",
/* width and height of generated thumbnails */
THUMBNAIL_WIDTH => 90,
THUMBNAIL_HEIGHT => 90
];
I haven't quite understood what SERVE_URL points to.
Aside, the Console flashes error message each time I try to add a block to the designer & image upload/add fails with the following response message - Notice: Use of undefined constant SERVE_URL - assumed 'SERVE_URL' in D:\xampp\htdocs\moss\backend-php\config.php on line 5
I have noticed that there is no SERVE_URL in index.php. The rest of the variables used in config.php have been assigned an index value in index.php though.
I still don't know what SERVE_URL should point to. An example suited for windows would really help.
Thank you & Regards!
The text was updated successfully, but these errors were encountered:
vencoder
changed the title
Not able to work with image - Mosaico+PHP(Xampp)
Not able to work with images - Mosaico+PHP(Xampp)
Sep 28, 2017
Hello Mark,
First things first, would like to thank you for maintaining the mosaico-php-backend.
I have a xampp setup on Windows 7 and I have copied the mosaico files under a folder named moss under xampp/htdocs. I don't have Node running at present. I just copied the entire build files that were created after successfully building mosaico under xampp/htdocs. I tested mosaico with node and I could upload images, list them etc. It worked perfectly.
The set up looks like this - xampp/htdocs/moss
I copied the contents of mosaico-php-backend under moss and ended up with directories dl, upload and img. The .htaccess files have been left unchanged.
I copied backend-php as is under xampp/htdocs/moss and this is what it looks like - xampp/htdocs/moss/backend-php
Should I leave config.php under backend-php or should I move it to the application root folder, ie, xampp/htdocs/moss?
I think I haven't quite understood how config.php should be edited. I am copy pasting the entire contents of my config.php here. Would be grateful if you can direct me in the right way to setting the respective paths.
/* note that all _URL and _DIR configurations below must end with a forward slash (/) /
$config = [
/ Url for image serving in final download /
SERVE_URL => "http://localhost/moss/img/",
/ Base Url for accessing Mosaco */
BASE_URL => "http://localhost/moss/",
];
I haven't quite understood what SERVE_URL points to.
Aside, the Console flashes error message each time I try to add a block to the designer & image upload/add fails with the following response message -
Notice: Use of undefined constant SERVE_URL - assumed 'SERVE_URL' in D:\xampp\htdocs\moss\backend-php\config.php on line 5
I have noticed that there is no SERVE_URL in index.php. The rest of the variables used in config.php have been assigned an index value in index.php though.
I still don't know what SERVE_URL should point to. An example suited for windows would really help.
Thank you & Regards!
The text was updated successfully, but these errors were encountered: