PHP FORAY: on virtual win7 machine, setup: xampp, eclipse, svn, php, zend, debugging, xdebug | 4.8 






added on May 27, 2012 | permalink
On virtual win7 machine, setup: xampp, eclipse, svn, php, zend, debugging, xdebug
- copy virtualbox machine (win7); finished
- started virtual box
- cloned general win7 to "windows7_zend", reinitialized mac addresses, full clone
- didn't ask me where it is putting it
- it's taking about 20 minutes and the machine seems a bit slow, thunderbird took a long time to open
- hmm, actually it was finished while it said "13 minutes to go", ok
- started virtual box, the rp password
- getting online
- installing xampp;finished
- went to http://www.apachefriends.org/en/xampp-windows.html
- downloading: 81 MB Installer, xampp-win32-1.7.7-VC9-installer
- executed
- got this error:

- installing in default c:\xampp
- installed apache adn mysql as service (not ftp)
- started copying at 2012-06-26 14:41:13
- clicked finish, checking ports...got this error

- allowed access on both
- it says finished
- says successful, start xamp control panel now, yes.
- it's running:

- testing
- typed: localhost in firefox, take over 30 seconds to find it
- restarting the machine, things are too slow
- powered off and on
- now faster
- localhost works
- giving mysql a password
- in cmd, went to c:\xampp\mysql\bin
- mysql -h localhost -u root
- set password for root@localhost = password('THEPASSWORD');
- then got error in phpmyadmin
- in config.inc.php changed auth_type to cookie:

- now you have to log in
- works but trying to set up a user didn't work, ok I found the answer, you have to delete the two "any" users OR set "edward" to localhost, otherwise the "any" users will overright his rights

- also, to hide the information_schema table from users, add this to the config.inc.php: $cfg['Servers'][$i]['hide_db'] = 'information_schema';
- restarted machine after windows updates and now apache server doesn't start, tried to uncheck as service, just checked itself again
- trying to restart again in services, worked
- virtual machine is very slow however
- click on "install guest additions", took awhile but finally reacted, installing
- it is a lot faster now, nice
- installing zend;finished
- reading: http://framework.zend.com/wiki/display/ZFDEV/Installing+Zend+Framework+on+Windows
- getting latest release here: http://framework.zend.com/download/latest
- chose: Zend Server Community Edition (CE)
- downloaded: Zend Server CE (PHP 5.3) (ZendServer-CE-php-5.3.9-5.6.0-SP1-Windows_x86.exe)
- installing
- typical (e.g. no dojo)
- says it is going to install apache:

- choose defaults: web server port: 8080 (had to change since 80 was occupied), zend port: 10081
- opened browser to: http://localhost:10081/ZendServer/Login#1340801331395
- accepted license, entered password (tp...)
- http://localhost:10081/ZendServer comes up with admin console
- localhost still goes to xampp
- localhost:8080 goes to a "Zend Server Test Page"
- turned on .htaccess file since "Without this redirection, the application does not work."
- ok, in both the xampp and zend apaches, the line "LoadModule rewrite_module modules/mod_rewrite.so" was uncommented
- also repalced all "AllowOverride None" with "AllowOverride All" in conf file
- restarted apache zend
- localhost:8080 and localhost:10081 work again
- setting up zend website;finished
- typed "zf show version", got "zend monitor ui is disabled in cli/cgi run"
- went into http://localhost:10081/ZendServer/ but don't see where to enable zend monitor ui:

- ok, but it says version 1.11.11
- typed "zf create project APACHE_HOME/htdocs/edwardtest"
- said it couldn't find directory
- typed "zf create project C:\Program Files\Zend\Apache2\htdocs\edwardtest" worked.
- said web project was created but not phpunit
- however, no directory has been created at zf create project C:\Program Files\Zend\Apache2\htdocs\edwardt
- ok, it says it created it at "C:\Program" hence space is probably issue
- typed: zf create project "C:\Program Files\Zend\Apache2\htdocs\edwardtest"
- opened cmd as administrator, it worked;solution
- interesting, as administrator it doesn't give zend monitor ui error;$learned=when zend/win7 command line always as administrator
- looking through new application
- can access it here: http://localhost:8080/edwardtest/public/

- configs
- application.ini, nice: staging, etc.
- controllers
- errorcontroller: bootstrap...
- models
- empty
-
(no image found with Id-Code = "win7zend")
[] check mysql