Putting it all together August 21, 2007
Posted by webweaver64 in Drupal, WinXP, XAMPP.add a comment
Well I needed a few days off, but I thought I’d try an put this altogether into some sort of cohesiveness. I have successfully set up 5 drupal5 installation.
Set password in security area for root mysql.
xampp\phpMyAdmin\config.inc.php made sure it said cookie
xampp\apache\bin\php.ini removed the ; from the mcrypt.dll line
xampp\apache\conf\httpd.conf changed Listen 80 to Listen 127.0.0.1:80
Made sure Include conf/extra/httpd-vhosts.conf was unmasked
xampp\apache\conf\extra\httpd-vhosts.conf unmasked NameVirtualHost
and added:
<VirtualHost *:80>
ServerName fakesite.tst
DocumentRoot /www/drupal-5/
</VirtualHost>
In xampp/appache/conf/httpd.conf add:
<Directory “/www/drupal-5″>
Order allow,deny
Allow all
AllowOverride ALL (this was added to allow clean urls
</Directory>
In xampp/appache/conf/httpd.conf to allow clean urls:
uncomment LoadModule rewrite_module modules/mod_rewrite.so
Powered by ScribeFire.
Local Server & Drupal part Duex or maybe thrice August 19, 2007
Posted by webweaver64 in Drupal, Local Server, XAMPP.add a comment
The thing is you want something that is up-to-date, yet I also have seen where WAMP is a often used service for Drupal. I don’t have the cash right now to pay for support, so thought I’d go with the free supported XAMPP… had trouble installed WAMP however I then had trouble with WAMP. Decided to throw a few cards… sot see what they had to say about either XAMPP or WAMPP. I drew the 8 of Pentacles & 7 of Cups for XAMPP (8oP is my current 21Ways card), and for WAMP I drew, 4 of Swords, an 5 of Cups. I took it to mean with XAMPP I’d have work, but enjoyable work, and options. With WAMP I’d need a vacation when I was done and I’d feel like I lost or left something. So went with XAMPP.
Added a password to the mySQL, and then… changed the config.inc.php which I had never done in either previous installation. Although I went with the default for WAMP so I don’t know if this was my trouble or not.
I never did this: NameVirtualHost *:80 in the virtual host file. This may have been my problem the entire time. I also found where I needed to change something in the config.inc.php to cookie. That I think might be XAMPP only. I’ve change the document root as well to /www. I did get an installation of Drupal to run, but it wasn’t working correctly. I couldn’t access it via extreem.tst nor could I get back to XAMPP’s starting page. So… here we go for a 4th time.
xampp\apache\bin\php.ini removed the ; from the mcrypt.dll line
accessed security through XAMPP and added a password to root for MySQL
xampp\phpMyAdmin\config.inc.php made sure it said cookie
xampp\apache\conf\httpd.conf changed Listen 80 to Listen 127.0.0.1:80 & DocumentRoot to “/www” where I am locating my files (Drupal, WordPress). <Directory to “/www”> . Made sure Include conf/extra/httpd-vhosts.conf is unmasked. (Added install.php to DirectoryIndex.)
xampp\apache\conf\extra\httpd-vhosts.conf unmasked NameVirtualHost and made it 127.0.0.1:80(i’m using the 127.0.0.1 because I read somewhere that would make sure no one from the outside could access it, I’m not sure how true it is, but hey why not)
Going to 127.0.0.1 and it brings me to and index of www. this isn’t right.
Going to the security location I received accessed denied. I went into phpMyAdmin and entered a password into the MySQL Database and then click PHP Code
Stopped and Started everything. Got into the security place. But not xampp. Returned the root doc to xampp/htdocs and I can get there again. Now I can’t get apache to run..
Reinstall. Set password in security area for root mysql.
After setting up a virtual host I get accessed denied. sheessh!
Ok what was necessary was adding this to the xampp/apache/conf/httpd.conf
<Directory “/www/drupal-5″>
Order allow,deny
Allow all
AllowOverride ALL (this was added to allow clean urls
</Directory>
To get clean urls I needed to uncomment LoadModule rewrite_module modules/mod_rewrite.so, it also send to uncomment (node 15365) AddModule mod-rewrite.c I didn’t find that and when I added it apache wouldn’t load. so with just the 1st uncommented clean url’s did work.
Whew! Got there!!!! Now tomorrow I’ll try adding the other sites.
Installing Drupal locally August 17, 2007
Posted by webweaver64 in Drupal, Local Server, computers.add a comment
So I have my local server running and I’m ready to install Drupal. I will install it into a folder inside the XAMPP folder called drupal.
I extracted the files into the drupal folder and it created a drupal-5.2 folder which I will leave as I may be installing 6.0 at some point to play with.
I added to the folder sites/all a modules and themes folder as per node 53705. I will be adding the other folders it suggests as well. I’m creating 5 sites so will have 5 folders with a files, modules, themes, tmp, and settings.php in them.
Ok… don’t know what I just did. I went to start apache, and mysql and I clicked on Admin, and put in a user name and password, and mySQL quit. Unchecked service and restarted it.
Went to 127.0.0.1 in a brower and selected under tools. phpMyAdmin, had to log in with the root password.
before doing anything I read node 161975 so I decided to move my drupal sites to c:\sites for easy backup.
Ok I’m going to create my databases per my own instruction from node 120647#comment-207386
I am naming the database the same name as the site address I’ve set up.
I noticed a error in MyPHPAdmin. Cannot load mcrypt extention. I found some information that said to uncomment the mcrypt extension in the php.ini files. I’m going to try it. Logging out of myPHP. Opened up the php.ini file in xampp\apache\bin, searched for mcrypt, and removed the ; in front of it closed and saved. Stopping the MySql and Apache services and restarting. Ok restarted reaccessed, and I appear to be good to go.
Ran into total problems, and lost everything I had typed… now I’m going to go back to WAMP.
I installed without any of the extra stuff like drupal… I did the security things like changing listen 80, and the password. If I did it right from the command prompt
/
Now I’m going back to drupal I hope
Created all my databases again….
It was a no go. So I unstalled, and deleted and restored. Will have to start back at the beginning. I tried a ton of stuff to get access and nothing worked.
Getting back to Drupal installing a localhost server. August 17, 2007
Posted by webweaver64 in Drupal, Local Server.add a comment
Well I’m ready to get back to designing and launching www.tarotweaving.com. I need to move it to my new host, so need to get my computer back into action as a server after my hd issues.
I’ve decided to stick with WAMP and not go with XAMP because I know I got the former working before… so why mess with a working thing right? Although looking at the installation stuff again has me a bit nervous again. I know I figured it out before right?
So hear we go… I started the install, and I’m going with the full installation, leaving everything that was checked checked, except I’m unchecking all the Web-Framework Applications cuz they are old versions. Actually now that I’m thinking about this… I might just give XAMP a try. As their version is newer… don’t you just hate having to decide what to go with??? I know I do…. the forum at XAMP is free, but their documentation isn’t so goo. WAMP’s documentation is good, but you can’t post at the forum unless you pay for support. What to do what to do. Because of versions and the forum I’m changing my mind and going with XAMP…
Using 7-zip I exacted to c:\xampp
Ok it did what I didn’t want it to do which was create a xampp folder so I have c:\xampp\xampp. I’m going to move everything from there into just xampp and then delete the xtra xampp folder.
Now lets see if it starts. From the looks of what I read I need to run xampp-control.exe it opens a small application window, and I did get a warning for directory mismatch? not sure why. Well see if that causes trouble later. The status check is OK. I’m just going to start Apache at this point.
I received a warning message from XP and selected unblock. The control Panel says it’s running… so let’s check it out. I’m opening my browser and going to access http://localhost and see what happens. Bingo! I’m selecting English.
It suggests checking my status so I’m doing that now.
I have mySQL database as deactivated
php activated
https activated
CGI: Activated
SSI: Activated
SMTP: Deactivated
FTP: Deactivated
As I didn’t start mysql this makes sense. I’m not sure I want smtp or ftp at this point so they are ok too.
I’m going to start it and see what happens. I clicked back on the CP for XAMPP and am selecting start for MySQL. I again got a warning from XP and clicked unblock. Status check shows MySQL Activated.
As I am only running this locally. I don’t really need to worry about security, but I had read something for WAMP that suggested there were some changes I should make to secure this from someone accessing some files via an incoming attack. So I’m going to do some security steps.
I’m going to access the security. I’m changing the password for the superuser in mysql, and adding a user and password for the directory.
I need to restart MySQL for it to take effect. Stopped and restarted. I didn’t reboot so I’m not sure if it actually changed.
I’m also going to look at something I read from WAMP.
Under C:/www/Apache22/conf/httpd.conf, change ‘Listen 80′ to ‘Listen 127.0.0.1:80′
Under C:/www/Apache22/conf/extra/httpd-ssl.conf, change ‘Listen 443′ to ‘Listen 127.0.0.1:443′
Shutting everything down to take a look.
I made the above changes, and I’m going to reboot, just to make sure everything is accepted as changed.
I’m in and everything is active… Drupal install next time.
Links:
http://www.apachefriends.org/en/index.html
http://www.devside.net/


