3434 Posts in 1026 Topics by 866 members
Page: 1 2
|Go to End||Next >|
27 March 2012 at 1:09pm
I went through the online tutorial and I tried to follow the steps on creating your own page type.
I encountered the instructions that require me to run this url link.
to rebuild my database.
But on my own local machine's environment, my SilverStripe web access setup is
Thus I thought my database rebuild link would be as follows.
I tried that and I encountered a 404 error page. Could somebody please tell me what should I do to resolve this issue?
27 March 2012 at 2:26pm Last edited: 27 March 2012 2:34pm
If you have index.php showing it means your search engine friendly URLs aren't working.
You need to check mod_rewrite is enabled in your PHP config. ( Google phpinfo() )
Then you need to check your .htaccess file is appropriately configured.
Once you have overcome these issues, you will then be able to run dev/build
27 March 2012 at 3:38pm
Thanks for coming back so quickly on this.
I checked the settings as per your suggestion. They're all fine except for the htaccess file part.
I forgot to mention that I'm using MS Windows XP 3 environment (not linux) as my main development work. Right now, I still could not overcome these issues.
I followed the installation link - it recommended I should use WAMPServer software that comes with all the preconfigured Apache, MySQL, PHP packages with their latest versions.
However, I've already installed these independently and they come with different software version numbers. ie PHP 5.2 instead of 5.3, Apache 2.0 instead of 2.2.1 and MySQL5.5.
Do I really need WAMPServer's software bundle to make silverstripe work? Surely the ones I installed previously would be fine to use...
27 March 2012 at 3:49pm
I would definitely use WAMP, this will solve your issues
27 March 2012 at 6:11pm
Okay. I followed your advice. ie I reinstalled Silverstripe along with the complete installation of WAMP.
And tried running this url.
Still comes up saying 404 error encountered.
The requested URL /dev/build was not found on this server.
And I followed this instruction. http://doc.silverstripe.org/sapphire/en/installation/windows-wamp
Towards the last step, my silverstripe access would be
If that's the case, shouldn't my rebuild link would be http://localhost/silverstripe/dev/build?flush=1 ?
I tried the latter and it said
"This page is secured and you need administrator rights to access it. Enter your credentials below and we will send you right along.
You're logged in as Default Admin."
Does that mean this page no longer exist again?
28 March 2012 at 4:49pm
Never mind. I fixed it.
Apparently, my WAMP reinstallation wasn't done properly as I had two mysql instances running on the same machine, thus cause the confusion, which prevented the database rebuild function call from being executed properly.
26 October 2012 at 5:53pm
Guys just type http://localhost/yourhostname/index.php/dev/build into your browser where yourhostname is the directory in htdocs or www (if using WAMP) where silverstripe is installed.
28 March 2014 at 5:46pm
Getting the following error while accessing "http://localhost:8080/rtbi/v1/db/build?flush=1"
The requested URL /rtbi/v1/db/build was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Page: 1 2
|Go to Top||Next >|